wok view mingw32-w32api/receipt @ rev 16276
Up libfm/pcmanfm and aff to ARM arch
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Apr 05 23:47:33 2014 +0200 (2014-04-05) |
parents | 42924af752bc |
children | 9e01bc6321ea |
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 LICENSE="PublicDomain"
10 TARBALL="$SOURCE-$VERSION-src.tar.gz"
11 WEB_SITE="http://www.mingw.org/"
12 WGET_URL="$SF_MIRROR/mingw/$TARBALL"
13 MINGW32_ID="i586-pc-mingw32"
15 DEPENDS=""
16 BUILD_DEPENDS="slitaz-toolchain mingw32-binutils mingw32-runtime-headers mingw32-w32api-headers mingw32-gcc-c"
18 # Configuration only needs included if we're in the build/wok environment
19 if [ -e $WOK/mingw32-toolchain/stuff/mingw32.conf ] ; then
20 . $WOK/mingw32-toolchain/stuff/mingw32.conf
21 fi
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 if [ "$MINGW32_ID" != "$MINGW32_TARGET" ] ; then
27 echo "ERROR: Conf 'TARGET' string differs from Receipt 'ID' string"
28 return 1
29 fi
31 find $src -name 'Makefile*' | xargs sed -i "s|^inst_.*:= *|&$DESTDIR/|"
32 rm -f -r $src/binutils
33 mkdir -p $SOURCE-$VERSION-build $DESTDIR/usr/lib
34 cd $SOURCE-$VERSION-build
36 # NOTE: DESTDIR not handled correctly; have to fudge --prefix
37 $src/configure \
38 --prefix=/usr/$MINGW32_TARGET \
39 --host=$MINGW32_TARGET \
40 --build=$BUILD_HOST &&
41 make CFLAGS="-O2 -mms-bitfields -march=${TARGET_CPU-i386}" LDFLAGS="-s" &&
42 make install
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs$MINGW32_ROOT
49 cp -a $install/usr/lib $fs$MINGW32_ROOT
50 chown -R root.root $fs
51 }
53 # Rules to setup after installation
54 post_install()
55 {
56 # Archives get stripped during packaging; need to run ranlib
57 local root
58 root=$1
59 find $root/usr/$MINGW32_ID/lib/ -name *.a -exec $MINGW32_ID-ranlib {} \;
60 }
62 # Rules to clean the package
63 clean_wok()
64 {
65 rm -r $SOURCE-$VERSION-build
66 }