wok-undigest diff mingw32-w32api/receipt @ rev 418
collectd-bind: fix compile_rules ?
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Aug 31 14:55:34 2011 +0200 (2011-08-31) |
parents | |
children | 7fb1fcf86f13 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/mingw32-w32api/receipt Wed Aug 31 14:55:34 2011 +0200 1.3 @@ -0,0 +1,62 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="mingw32-w32api" 1.7 +SOURCE="w32api" 1.8 +VERSION="3.13-mingw32" 1.9 +CATEGORY="development" 1.10 +SHORT_DESC="MinGW32 w32api." 1.11 +MAINTAINER="rcx@zoominternet.net" 1.12 +DEPENDS="" 1.13 +BUILD_DEPENDS="slitaz-toolchain mingw32-binutils mingw32-runtime-headers mingw32-w32api-headers mingw32-gcc-c" 1.14 +TARBALL="$SOURCE-$VERSION-src.tar.gz" 1.15 +WEB_SITE="http://www.mingw.org/" 1.16 +WGET_URL="$SF_MIRROR/mingw/$TARBALL" 1.17 +MINGW32_ID="i586-pc-mingw32" 1.18 + 1.19 +# Configuration only needs included if we're in the build/wok environment 1.20 +if [ -e $WOK/mingw32-toolchain/stuff/mingw32.conf ] ; then 1.21 + . $WOK/mingw32-toolchain/stuff/mingw32.conf 1.22 +fi 1.23 + 1.24 +# Rules to configure and make the package. 1.25 +compile_rules() 1.26 +{ 1.27 + if [ "$MINGW32_ID" != "$MINGW32_TARGET" ] ; then 1.28 + echo "ERROR: Conf 'TARGET' string differs from Receipt 'ID' string" 1.29 + return 1 1.30 + fi 1.31 + 1.32 + rm -f -r $src/binutils 1.33 + mkdir -p $SOURCE-$VERSION-build 1.34 + cd $SOURCE-$VERSION-build 1.35 + 1.36 + # NOTE: DESTDIR not handled correctly; have to fudge --prefix 1.37 + $src/configure \ 1.38 + --prefix=$src/_pkg/usr \ 1.39 + --host=$MINGW32_TARGET \ 1.40 + --build=$BUILD_HOST && 1.41 + make CFLAGS="-O2 -mms-bitfields -march=${TARGET_CPU-i386}" LDFLAGS="-s" && 1.42 + make DESTDIR=$src/_pkg install 1.43 +} 1.44 + 1.45 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.46 +genpkg_rules() 1.47 +{ 1.48 + mkdir -p $fs$MINGW32_ROOT 1.49 + cp -a $_pkg/usr/lib $fs$MINGW32_ROOT 1.50 +} 1.51 + 1.52 +# Rules to setup after installation 1.53 +post_install() 1.54 +{ 1.55 + # Archives get stripped during packaging; need to run ranlib 1.56 + local root 1.57 + root=$1 1.58 + find $root/usr/$MINGW32_ID/lib/ -name *.a -exec $MINGW32_ID-ranlib {} \; 1.59 +} 1.60 + 1.61 +# Rules to clean the package 1.62 +clean_wok() 1.63 +{ 1.64 + rm -r $SOURCE-$VERSION-build 1.65 +}