wok view mingw32-runtime/receipt @ rev 8615

Fix: replace exit 1 by return 1 in receipts (exit broke cook-list function)
author Antoine Bodin <gokhlayeh@slitaz.org>
date Mon Feb 14 19:09:46 2011 +0100 (2011-02-14)
parents d437e141264c
children d1768332cee0
line source
1 # SliTaz package receipt.
3 PACKAGE="mingw32-runtime"
4 SOURCE="mingwrt"
5 VERSION="3.15.2-mingw32"
6 CATEGORY="development"
7 SHORT_DESC="MinGW32 runtime."
8 MAINTAINER="rcx@zoominternet.net"
9 DEPENDS="mingw32-w32api"
10 BUILD_DEPENDS="slitaz-toolchain mingw32-binutils mingw32-runtime-headers mingw32-w32api-headers mingw32-gcc-c mingw32-w32api"
11 TARBALL="$SOURCE-$VERSION-src.tar.gz"
12 WEB_SITE="http://www.mingw.org/"
13 WGET_URL="$SF_MIRROR/mingw/$TARBALL"
14 MINGW32_ID="i586-pc-mingw32"
16 # Configuration only needs included if we're in the build/wok environment
17 if [ -e $WOK/mingw32-toolchain/stuff/mingw32.conf ] ; then
18 . $WOK/mingw32-toolchain/stuff/mingw32.conf
19 fi
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 if [ "$MINGW32_ID" != "$MINGW32_TARGET" ] ; then
25 echo "ERROR: Conf 'TARGET' string differs from Receipt 'ID' string"
26 return 1
27 fi
29 rm -f -r $src/binutils
30 mkdir -p $SOURCE-$VERSION-build
31 cd $SOURCE-$VERSION-build
33 # NOTE: DESTDIR not handled correctly; have to fudge --prefix
34 $src/configure \
35 --prefix=$src/_pkg/usr \
36 --host=$MINGW32_TARGET \
37 --build=$BUILD_HOST &&
38 make CFLAGS="-O2 -mms-bitfields -march=${TARGET_CPU-i386} -I$MINGW32_ROOT/include" LDFLAGS="-s" &&
39 make DESTDIR=$src/_pkg install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs$MINGW32_ROOT
46 cp -a $_pkg/usr/bin $fs$MINGW32_ROOT
47 cp -a $_pkg/usr/lib $fs$MINGW32_ROOT
48 }
50 # Rules to setup after installation
51 post_install()
52 {
53 # Archives get stripped during packaging; need to run ranlib
54 local root
55 root=$1
56 find $root/usr/$MINGW32_ID/lib/ -name *.a -exec $MINGW32_ID-ranlib {} \;
57 }
59 # Rules to clean the package
60 clean_wok()
61 {
62 rm -r $SOURCE-$VERSION-build
63 }