wok diff bzip2/receipt @ rev 13618
Add gtk-recordmydesktop (frontend to recordmydesktop
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Nov 13 10:17:54 2012 +0100 (2012-11-13) |
parents | 8bfd4fcfb42a |
children | c5285953bed2 |
line diff
1.1 --- a/bzip2/receipt Thu Jan 27 00:20:49 2011 +0100 1.2 +++ b/bzip2/receipt Tue Nov 13 10:17:54 2012 +0100 1.3 @@ -8,24 +8,34 @@ 1.4 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.5 WEB_SITE="http://www.bzip.org/" 1.6 WGET_URL="http://www.bzip.org/$VERSION/$TARBALL" 1.7 +TAGS="compression archive" 1.8 +HOST_ARCH="i486 arm" 1.9 + 1.10 DEPENDS="bzlib" 1.11 -BUILD_DEPENDS="gcc" 1.12 -TAGS="compression archive" 1.13 - 1.14 -# Rules to compile & install the temporary toolchain. 1.15 -cook_tmp_toolchain() 1.16 -{ 1.17 - cd $src 1.18 - make && make PREFIX=/tools install 1.19 -} 1.20 +BUILD_DEPENDS="" 1.21 1.22 # Rules to configure and make the package. 1.23 compile_rules() 1.24 { 1.25 cd $src 1.26 - make -f Makefile-libbz2_so && 1.27 - make clean && 1.28 - make 1.29 + # Disable the tests since they won't work on a multi-architecture build 1.30 + cp Makefile Makefile.orig 1.31 + sed -e "/^all:/s/ test//" Makefile.orig > Makefile 1.32 + # No configure script, we must used CC, AR and RANLIB set by cook. 1.33 + case "$ARCH" in 1.34 + arm) 1.35 + make -f Makefile-libbz2_so CC=${CC} AR=${AR} RANLIB=${RANLIB} && 1.36 + make clean && make CC=${CC} AR=${AR} RANLIB=${RANLIB} ;; 1.37 + *) 1.38 + make -f Makefile-libbz2_so && 1.39 + make clean && make ;; 1.40 + esac 1.41 +} 1.42 + 1.43 +# Just to be sure when cross-compiling. 1.44 +testsuite() 1.45 +{ 1.46 + readelf -h $src/bzip2-shared 1.47 } 1.48 1.49 # Rules to gen a SliTaz package suitable for Tazpkg. 1.50 @@ -42,12 +52,10 @@ 1.51 # Remove Busybox symlinks before installing 1.52 pre_install() 1.53 { 1.54 - local root 1.55 - root=$1 1.56 - echo "Processing post-install commands..." 1.57 - rm -f $root/usr/bin/bunzip2 1.58 - rm -f $root/usr/bin/bzcat 1.59 -# rm -f $root/usr/bin/bzip2 1.60 + echo "Processing post-install commands..." 1.61 + rm -f $root/usr/bin/bunzip2 1.62 + rm -f $root/usr/bin/bzcat 1.63 + #rm -f $root/usr/bin/bzip2 1.64 } 1.65 1.66 # Restore Busybox symlinks upon removal 1.67 @@ -55,5 +63,5 @@ 1.68 { 1.69 ln -s /bin/busybox /usr/bin/bunzip2 1.70 ln -s /bin/busybox /usr/bin/bzcat 1.71 -# ln -s /bin/busybox /usr/bin/bzip2 1.72 + #ln -s /bin/busybox /usr/bin/bzip2 1.73 }