wok-next annotate mingw32-w32api/receipt @ rev 10512
libmpeg2: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 25 15:48:01 2011 +0200 (2011-05-25) |
parents | d1768332cee0 |
children |
rev | line source |
---|---|
rcx@3561 | 1 # SliTaz package receipt. |
rcx@3561 | 2 |
rcx@3561 | 3 PACKAGE="mingw32-w32api" |
rcx@3561 | 4 SOURCE="w32api" |
rcx@3561 | 5 VERSION="3.13-mingw32" |
rcx@3561 | 6 CATEGORY="development" |
rcx@3561 | 7 SHORT_DESC="MinGW32 w32api." |
rcx@3561 | 8 MAINTAINER="rcx@zoominternet.net" |
rcx@3561 | 9 DEPENDS="" |
rcx@3561 | 10 BUILD_DEPENDS="slitaz-toolchain mingw32-binutils mingw32-runtime-headers mingw32-w32api-headers mingw32-gcc-c" |
rcx@3561 | 11 TARBALL="$SOURCE-$VERSION-src.tar.gz" |
rcx@3561 | 12 WEB_SITE="http://www.mingw.org/" |
rcx@3561 | 13 WGET_URL="$SF_MIRROR/mingw/$TARBALL" |
rcx@4036 | 14 MINGW32_ID="i586-pc-mingw32" |
rcx@4036 | 15 |
rcx@4036 | 16 # Configuration only needs included if we're in the build/wok environment |
slaxemulator@9701 | 17 if [ -e $WOK/mingw32-toolchain/stuff/mingw32.conf ] ; then |
slaxemulator@9701 | 18 . $WOK/mingw32-toolchain/stuff/mingw32.conf |
rcx@4036 | 19 fi |
rcx@3561 | 20 |
rcx@3561 | 21 # Rules to configure and make the package. |
rcx@3561 | 22 compile_rules() |
rcx@3561 | 23 { |
rcx@4036 | 24 if [ "$MINGW32_ID" != "$MINGW32_TARGET" ] ; then |
rcx@4036 | 25 echo "ERROR: Conf 'TARGET' string differs from Receipt 'ID' string" |
gokhlayeh@8615 | 26 return 1 |
rcx@3561 | 27 fi |
rcx@3561 | 28 |
rcx@3561 | 29 rm -f -r $src/binutils |
rcx@3561 | 30 mkdir -p $SOURCE-$VERSION-build |
rcx@3561 | 31 cd $SOURCE-$VERSION-build |
rcx@3561 | 32 |
rcx@3561 | 33 # NOTE: DESTDIR not handled correctly; have to fudge --prefix |
rcx@3561 | 34 $src/configure \ |
rcx@3561 | 35 --prefix=$src/_pkg/usr \ |
rcx@3561 | 36 --host=$MINGW32_TARGET \ |
rcx@3561 | 37 --build=$BUILD_HOST && |
rcx@3561 | 38 make CFLAGS="-O2 -mms-bitfields -march=${TARGET_CPU-i386}" LDFLAGS="-s" && |
rcx@3561 | 39 make DESTDIR=$src/_pkg install |
rcx@3561 | 40 } |
rcx@3561 | 41 |
rcx@3561 | 42 # Rules to gen a SliTaz package suitable for Tazpkg. |
rcx@3561 | 43 genpkg_rules() |
rcx@3561 | 44 { |
rcx@4036 | 45 mkdir -p $fs$MINGW32_ROOT |
rcx@4036 | 46 cp -a $_pkg/usr/lib $fs$MINGW32_ROOT |
rcx@3561 | 47 } |
rcx@3561 | 48 |
rcx@3561 | 49 # Rules to setup after installation |
rcx@3561 | 50 post_install() |
rcx@3561 | 51 { |
rcx@3561 | 52 # Archives get stripped during packaging; need to run ranlib |
rcx@3561 | 53 local root |
rcx@3561 | 54 root=$1 |
rcx@4036 | 55 find $root/usr/$MINGW32_ID/lib/ -name *.a -exec $MINGW32_ID-ranlib {} \; |
rcx@3561 | 56 } |
rcx@3561 | 57 |
rcx@3561 | 58 # Rules to clean the package |
rcx@3561 | 59 clean_wok() |
rcx@3561 | 60 { |
rcx@3561 | 61 rm -r $SOURCE-$VERSION-build |
rcx@3561 | 62 } |