wok-next rev 12544
pcmanfm: Fix build with binutils 2.22 (use LDFLAGS)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Apr 26 13:38:37 2012 +0200 (2012-04-26) |
parents | 8cb2ce74ff6b |
children | f14bfaef9634 |
files | pcmanfm/receipt |
line diff
1.1 --- a/pcmanfm/receipt Thu Apr 26 13:37:41 2012 +0200 1.2 +++ b/pcmanfm/receipt Thu Apr 26 13:38:37 2012 +0200 1.3 @@ -5,6 +5,10 @@ 1.4 CATEGORY="system-tools" 1.5 SHORT_DESC="Light and easy to use file manager." 1.6 MAINTAINER="pankso@slitaz.org" 1.7 +TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.8 +WEB_SITE="http://pcmanfm.sourceforge.net/" 1.9 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 1.10 + 1.11 DEPENDS="glibc-base glib libgio util-linux-uuid libxcb xcb-util expat \ 1.12 zlib fontconfig freetype gtk+ atk cairo pango pixman libpng gamin \ 1.13 startup-notification dbus dbus-glib hal xorg-libICE xorg-libSM xorg-libX11 \ 1.14 @@ -13,14 +17,14 @@ 1.15 hicolor-icon-theme" 1.16 BUILD_DEPENDS="gtk+-dev gamin-dev gamin shared-mime-info intltool hal-dev \ 1.17 dbus-glib-dev dbus-dev startup-notification-dev libxcb-dev xcb-util-dev \ 1.18 -xcb-util startup-notification" 1.19 -TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.20 -WEB_SITE="http://pcmanfm.sourceforge.net/" 1.21 -WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 1.22 +xcb-util" 1.23 1.24 # Rules to configure and make the package. 1.25 compile_rules() 1.26 { 1.27 + # Binutils 2.22 break many packages build without LDFLAGS set correctly. 1.28 + export LDFLAGS="-Wl,--copy-dt-needed-entries -lXt" 1.29 + 1.30 cd $src 1.31 for i in $stuff/*.patch 1.32 do 1.33 @@ -34,21 +38,18 @@ 1.34 cp $stuff/fr.po $src/po 1.35 1.36 ./configure \ 1.37 - --prefix=/usr \ 1.38 - --mandir=/usr/share/man \ 1.39 --enable-hal \ 1.40 $CONFIGURE_ARGS && 1.41 - make && 1.42 - make -j1 DESTDIR=$PWD/_pkg install 1.43 + make && make install 1.44 } 1.45 1.46 # Rules to gen a SliTaz package suitable for Tazpkg. 1.47 genpkg_rules() 1.48 { 1.49 mkdir -p $fs/usr/share/applications 1.50 - cp -a $_pkg/usr/bin $fs/usr 1.51 - cp -a $_pkg/usr/share/mime $fs/usr/share 1.52 - cp -a $_pkg/usr/share/pcmanfm $fs/usr/share 1.53 + cp -a $install/usr/bin $fs/usr 1.54 + cp -a $install/usr/share/mime $fs/usr/share 1.55 + cp -a $install/usr/share/pcmanfm $fs/usr/share 1.56 rm -rf $fs/usr/share/pcmanfm/icons 1.57 } 1.58