wok-current diff mingw32-w32api/receipt @ rev 3561
Add: mingw32
author | Matthew Sheets <rcx@zoominternet.net> |
---|---|
date | Wed Jun 24 10:32:56 2009 +0000 (2009-06-24) |
parents | |
children | 05b5a901936b |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/mingw32-w32api/receipt Wed Jun 24 10:32:56 2009 +0000 1.3 @@ -0,0 +1,57 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="mingw32-w32api" 1.7 +SOURCE="w32api" 1.8 +VERSION="3.13-mingw32" 1.9 +CATEGORY="development" 1.10 +SHORT_DESC="MinGW32 w32api." 1.11 +MAINTAINER="rcx@zoominternet.net" 1.12 +DEPENDS="" 1.13 +BUILD_DEPENDS="slitaz-toolchain mingw32-binutils mingw32-runtime-headers mingw32-w32api-headers mingw32-gcc-c" 1.14 +TARBALL="$SOURCE-$VERSION-src.tar.gz" 1.15 +WEB_SITE="http://www.mingw.org/" 1.16 +WGET_URL="$SF_MIRROR/mingw/$TARBALL" 1.17 +MINGW32_TARGET="i586-pc-mingw32" 1.18 + 1.19 +# Rules to configure and make the package. 1.20 +compile_rules() 1.21 +{ 1.22 + # Set a default value for BUILD_HOST if it is not defined in tazwok.conf as it should be 1.23 + if [ -z "$BUILD_HOST" ] ; then 1.24 + BUILD_HOST=i486-pc-linux-gnu 1.25 + fi 1.26 + 1.27 + rm -f -r $src/binutils 1.28 + mkdir -p $SOURCE-$VERSION-build 1.29 + cd $SOURCE-$VERSION-build 1.30 + 1.31 + # NOTE: DESTDIR not handled correctly; have to fudge --prefix 1.32 + $src/configure \ 1.33 + --prefix=$src/_pkg/usr \ 1.34 + --host=$MINGW32_TARGET \ 1.35 + --build=$BUILD_HOST && 1.36 + make CFLAGS="-O2 -mms-bitfields -march=${TARGET_CPU-i386}" LDFLAGS="-s" && 1.37 + make DESTDIR=$src/_pkg install 1.38 +} 1.39 + 1.40 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.41 +genpkg_rules() 1.42 +{ 1.43 + mkdir -p $fs/usr/$MINGW32_TARGET 1.44 + cp -a $_pkg/usr/lib $fs/usr/$MINGW32_TARGET 1.45 +} 1.46 + 1.47 +# Rules to setup after installation 1.48 +post_install() 1.49 +{ 1.50 + # Archives get stripped during packaging; need to run ranlib 1.51 + local root 1.52 + root=$1 1.53 + find $root/usr/$MINGW32_TARGET/lib/ -name *.a -exec $MINGW32_TARGET-ranlib {} \; 1.54 +} 1.55 + 1.56 +# Rules to clean the package 1.57 +clean_wok() 1.58 +{ 1.59 + rm -r $SOURCE-$VERSION-build 1.60 +}