wok-6.x view mingw32-runtime/receipt @ rev 3823
Fix: encfs cook with gcc 4.4 serie
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Aug 06 15:53:40 2009 +0200 (2009-08-06) |
parents | |
children | 05b5a901936b |
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_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} -I/usr/$MINGW32_TARGET/include" 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/$MINGW32_TARGET
41 cp -a $_pkg/usr/bin $fs/usr/$MINGW32_TARGET
42 cp -a $_pkg/usr/include $fs/usr/$MINGW32_TARGET
43 cp -a $_pkg/usr/lib $fs/usr/$MINGW32_TARGET
44 }
46 # Rules to setup after installation
47 post_install()
48 {
49 # Archives get stripped during packaging; need to run ranlib
50 local root
51 root=$1
52 find $root/usr/$MINGW32_TARGET/lib/ -name *.a -exec $MINGW32_TARGET-ranlib {} \;
53 }
55 # Rules to clean the package
56 clean_wok()
57 {
58 rm -r $SOURCE-$VERSION-build
59 }