wok-4.x annotate mingw32-runtime/receipt @ rev 10150

Up: util-linux-ng to 2.19.1.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri May 20 19:25:36 2011 +0000 (2011-05-20)
parents d1768332cee0
children
rev   line source
rcx@3561 1 # SliTaz package receipt.
rcx@3561 2
rcx@3561 3 PACKAGE="mingw32-runtime"
rcx@3561 4 SOURCE="mingwrt"
rcx@3561 5 VERSION="3.15.2-mingw32"
rcx@3561 6 CATEGORY="development"
rcx@3561 7 SHORT_DESC="MinGW32 runtime."
rcx@3561 8 MAINTAINER="rcx@zoominternet.net"
rcx@3561 9 DEPENDS="mingw32-w32api"
rcx@3561 10 BUILD_DEPENDS="slitaz-toolchain mingw32-binutils mingw32-runtime-headers mingw32-w32api-headers mingw32-gcc-c mingw32-w32api"
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@4036 38 make CFLAGS="-O2 -mms-bitfields -march=${TARGET_CPU-i386} -I$MINGW32_ROOT/include" 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/bin $fs$MINGW32_ROOT
rcx@4036 47 cp -a $_pkg/usr/lib $fs$MINGW32_ROOT
rcx@3561 48 }
rcx@3561 49
rcx@3561 50 # Rules to setup after installation
rcx@3561 51 post_install()
rcx@3561 52 {
rcx@3561 53 # Archives get stripped during packaging; need to run ranlib
rcx@3561 54 local root
rcx@3561 55 root=$1
rcx@4036 56 find $root/usr/$MINGW32_ID/lib/ -name *.a -exec $MINGW32_ID-ranlib {} \;
rcx@3561 57 }
rcx@3561 58
rcx@3561 59 # Rules to clean the package
rcx@3561 60 clean_wok()
rcx@3561 61 {
rcx@3561 62 rm -r $SOURCE-$VERSION-build
rcx@3561 63 }