wok view mingw32-w32api/receipt @ rev 4029
Update: h8300-gcc3 (add PROVIDE)
author | Matthew Sheets <rcx@zoominternet.net> |
---|---|
date | Sat Sep 05 15:03:56 2009 +0000 (2009-09-05) |
parents | 1aa4817e0aff |
children | d437e141264c |
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_TARGET="i586-pc-mingw32"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 # Set a default value for BUILD_HOST if it is not defined in tazwok.conf as it should be
20 if [ -z "$BUILD_HOST" ] ; then
21 BUILD_HOST=i486-pc-linux-gnu
22 fi
24 rm -f -r $src/binutils
25 mkdir -p $SOURCE-$VERSION-build
26 cd $SOURCE-$VERSION-build
28 # NOTE: DESTDIR not handled correctly; have to fudge --prefix
29 $src/configure \
30 --prefix=$src/_pkg/usr \
31 --host=$MINGW32_TARGET \
32 --build=$BUILD_HOST &&
33 make CFLAGS="-O2 -mms-bitfields -march=${TARGET_CPU-i386}" LDFLAGS="-s" &&
34 make DESTDIR=$src/_pkg install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/lib/$MINGW32_TARGET
41 cp -a $_pkg/usr/lib $fs/usr/lib/$MINGW32_TARGET
42 }
44 # Rules to setup after installation
45 post_install()
46 {
47 # Archives get stripped during packaging; need to run ranlib
48 local root
49 root=$1
50 find $root/usr/lib/$MINGW32_TARGET/lib/ -name *.a -exec $MINGW32_TARGET-ranlib {} \;
51 }
53 # Rules to clean the package
54 clean_wok()
55 {
56 rm -r $SOURCE-$VERSION-build
57 }