wok-undigest diff mingw32-runtime/receipt @ rev 604
Move matchbox-panel-2 to wok
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Dec 25 15:20:37 2011 +0100 (2011-12-25) |
parents | |
children | 160aac08c1aa |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/mingw32-runtime/receipt Sun Dec 25 15:20:37 2011 +0100 1.3 @@ -0,0 +1,63 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="mingw32-runtime" 1.7 +SOURCE="mingwrt" 1.8 +VERSION="3.15.2-mingw32" 1.9 +CATEGORY="development" 1.10 +SHORT_DESC="MinGW32 runtime." 1.11 +MAINTAINER="rcx@zoominternet.net" 1.12 +DEPENDS="mingw32-w32api" 1.13 +BUILD_DEPENDS="slitaz-toolchain mingw32-binutils mingw32-runtime-headers mingw32-w32api-headers mingw32-gcc-c mingw32-w32api" 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_ID="i586-pc-mingw32" 1.18 + 1.19 +# Configuration only needs included if we're in the build/wok environment 1.20 +if [ -e $WOK/mingw32-toolchain/stuff/mingw32.conf ] ; then 1.21 + . $WOK/mingw32-toolchain/stuff/mingw32.conf 1.22 +fi 1.23 + 1.24 +# Rules to configure and make the package. 1.25 +compile_rules() 1.26 +{ 1.27 + if [ "$MINGW32_ID" != "$MINGW32_TARGET" ] ; then 1.28 + echo "ERROR: Conf 'TARGET' string differs from Receipt 'ID' string" 1.29 + return 1 1.30 + fi 1.31 + 1.32 + rm -f -r $src/binutils 1.33 + mkdir -p $SOURCE-$VERSION-build 1.34 + cd $SOURCE-$VERSION-build 1.35 + 1.36 + # NOTE: DESTDIR not handled correctly; have to fudge --prefix 1.37 + $src/configure \ 1.38 + --prefix=$src/_pkg/usr \ 1.39 + --host=$MINGW32_TARGET \ 1.40 + --build=$BUILD_HOST && 1.41 + make CFLAGS="-O2 -mms-bitfields -march=${TARGET_CPU-i386} -I$MINGW32_ROOT/include" LDFLAGS="-s" && 1.42 + make DESTDIR=$src/_pkg install 1.43 +} 1.44 + 1.45 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.46 +genpkg_rules() 1.47 +{ 1.48 + mkdir -p $fs$MINGW32_ROOT 1.49 + cp -a $_pkg/usr/bin $fs$MINGW32_ROOT 1.50 + cp -a $_pkg/usr/lib $fs$MINGW32_ROOT 1.51 +} 1.52 + 1.53 +# Rules to setup after installation 1.54 +post_install() 1.55 +{ 1.56 + # Archives get stripped during packaging; need to run ranlib 1.57 + local root 1.58 + root=$1 1.59 + find $root/usr/$MINGW32_ID/lib/ -name *.a -exec $MINGW32_ID-ranlib {} \; 1.60 +} 1.61 + 1.62 +# Rules to clean the package 1.63 +clean_wok() 1.64 +{ 1.65 + rm -r $SOURCE-$VERSION-build 1.66 +}