wok-next view mingw32-runtime/receipt @ rev 7112
Fixed mesa to only have one libdrm in depends.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu Nov 04 00:12:07 2010 +0000 (2010-11-04) |
parents | 05b5a901936b |
children | 0b4cf0d9e1b5 |
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 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} -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 }