# HG changeset patch # User Christophe Lincoln # Date 1335440317 -7200 # Node ID f73ab8941355076739d156f00a20fc066205928b # Parent 8cb2ce74ff6b7344fc39eceb5ec11b53e17301f3 pcmanfm: Fix build with binutils 2.22 (use LDFLAGS) diff -r 8cb2ce74ff6b -r f73ab8941355 pcmanfm/receipt --- a/pcmanfm/receipt Thu Apr 26 13:37:41 2012 +0200 +++ b/pcmanfm/receipt Thu Apr 26 13:38:37 2012 +0200 @@ -5,6 +5,10 @@ CATEGORY="system-tools" SHORT_DESC="Light and easy to use file manager." MAINTAINER="pankso@slitaz.org" +TARBALL="$PACKAGE-$VERSION.tar.bz2" +WEB_SITE="http://pcmanfm.sourceforge.net/" +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" + DEPENDS="glibc-base glib libgio util-linux-uuid libxcb xcb-util expat \ zlib fontconfig freetype gtk+ atk cairo pango pixman libpng gamin \ startup-notification dbus dbus-glib hal xorg-libICE xorg-libSM xorg-libX11 \ @@ -13,14 +17,14 @@ hicolor-icon-theme" BUILD_DEPENDS="gtk+-dev gamin-dev gamin shared-mime-info intltool hal-dev \ dbus-glib-dev dbus-dev startup-notification-dev libxcb-dev xcb-util-dev \ -xcb-util startup-notification" -TARBALL="$PACKAGE-$VERSION.tar.bz2" -WEB_SITE="http://pcmanfm.sourceforge.net/" -WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" +xcb-util" # Rules to configure and make the package. compile_rules() { + # Binutils 2.22 break many packages build without LDFLAGS set correctly. + export LDFLAGS="-Wl,--copy-dt-needed-entries -lXt" + cd $src for i in $stuff/*.patch do @@ -34,21 +38,18 @@ cp $stuff/fr.po $src/po ./configure \ - --prefix=/usr \ - --mandir=/usr/share/man \ --enable-hal \ $CONFIGURE_ARGS && - make && - make -j1 DESTDIR=$PWD/_pkg install + make && make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/share/applications - cp -a $_pkg/usr/bin $fs/usr - cp -a $_pkg/usr/share/mime $fs/usr/share - cp -a $_pkg/usr/share/pcmanfm $fs/usr/share + cp -a $install/usr/bin $fs/usr + cp -a $install/usr/share/mime $fs/usr/share + cp -a $install/usr/share/pcmanfm $fs/usr/share rm -rf $fs/usr/share/pcmanfm/icons }