wok view mingw32-w32api/receipt @ rev 5431
Up: libgiomm, libgiomm-dev (2.24.2)
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Wed May 05 02:02:54 2010 +0000 (2010-05-05) |
parents | 05b5a901936b |
children | 0b4cf0d9e1b5 |
line source
1 # SliTaz package receipt.
3 PACKAGE="mingw32-w32api"
4 SOURCE="w32api"
5 VERSION="3.13-mingw32"
6 CATEGORY="development"
7 SHORT_DESC="MinGW32 w32api."
8 MAINTAINER="rcx@zoominternet.net"
9 DEPENDS=""
10 BUILD_DEPENDS="slitaz-toolchain mingw32-binutils mingw32-runtime-headers mingw32-w32api-headers mingw32-gcc-c"
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 exit 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}" 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/lib $fs$MINGW32_ROOT
47 }
49 # Rules to setup after installation
50 post_install()
51 {
52 # Archives get stripped during packaging; need to run ranlib
53 local root
54 root=$1
55 find $root/usr/$MINGW32_ID/lib/ -name *.a -exec $MINGW32_ID-ranlib {} \;
56 }
58 # Rules to clean the package
59 clean_wok()
60 {
61 rm -r $SOURCE-$VERSION-build
62 }