wok-4.x rev 5915
icedtea6-jdk: do not use busybox find or awk
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jul 27 19:04:36 2010 +0200 (2010-07-27) |
parents | 782eb7d921f3 |
children | 5d3baa991b43 |
files | icedtea6-jdk/receipt |
line diff
1.1 --- a/icedtea6-jdk/receipt Tue Jul 27 14:27:30 2010 +0200 1.2 +++ b/icedtea6-jdk/receipt Tue Jul 27 19:04:36 2010 +0200 1.3 @@ -7,7 +7,7 @@ 1.4 SHORT_DESC="A Free Software harness for OpenJDK." 1.5 MAINTAINER="rcx@zoominternet.net" 1.6 DEPENDS="icedtea6-jre glibc-base zlib xorg-libX11 xorg-libXau xorg-libXdmcp" 1.7 -BUILD_DEPENDS="gcc+gcj slitaz-toolchain autoconf automake m4 \ 1.8 +BUILD_DEPENDS="gcc+gcj slitaz-toolchain autoconf automake m4 diffutils gawk \ 1.9 coreutils-file-special coreutils-file-summarize alsa-lib-dev cups-dev \ 1.10 gawk file patch findutils perl zip unzip bzip2 tar cpio glib-dev zlib-dev \ 1.11 fastjar rhino ecj apache-ant xalan-xerces-j \ 1.12 @@ -28,10 +28,13 @@ 1.13 # NOTE: This build does not seem to work with ECJ 3.5 1.14 1.15 cd $src 1.16 + [ -L /usr/bin/diff ] && tazpkg get-install diffutils --forced 1.17 + [ -L /usr/bin/awk ] && tazpkg get-install gawk --forced 1.18 + mem=$(free | awk '/Mem:/ { printf "%d\n",$2/1024 }') 1.19 cat > slitaz.sh <<EOT 1.20 # Busybox compatibility 1.21 find -name Sanity.gmk | xargs sed -i 's/--sync -kP/-k/' Makefile 1.22 -find -name Platform.gmk | xargs sed -i 's@MB_OF_MEMORY :=.*@MB_OF_MEMORY := \$(shell free | awk '"'"'/Mem:/ { printf "%d\\\\n",\\\$2/1024 }'"'"')@' Makefile 1.23 +find -name Platform.gmk | xargs sed -i "s@MB_OF_MEMORY :=.*@MB_OF_MEMORY := $mem@" Makefile 1.24 EOT 1.25 sed -i -e 's|touch stamps/extract.stamp|&\n\tsh slitaz.sh|' \ 1.26 -e 's|touch stamps/download.stamp|&\n\tsh slitaz.sh|' \