wok view mingw32-gcc-c/receipt @ rev 13608
get-flash-player: add flash-player-properties
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Nov 11 09:23:58 2012 +0100 (2012-11-11) |
parents | 42924af752bc |
children | 380ffe05937a |
line source
1 # SliTaz package receipt.
3 PACKAGE="mingw32-gcc-c"
4 SOURCE="gcc-core"
5 VERSION="3.4.5-20060117-2"
6 CATEGORY="development"
7 SHORT_DESC="MinGW32 gcc, for the C language only."
8 MAINTAINER="rcx@zoominternet.net"
9 DEPENDS="glibc-base mingw32-binutils mingw32-w32api-headers mingw32-runtime-headers"
10 BUILD_DEPENDS="slitaz-toolchain bison flex mingw32-binutils mingw32-runtime-headers mingw32-w32api-headers"
11 TARBALL="$SOURCE-$VERSION-src.tar.gz"
12 WEB_SITE="http://www.mingw.org/"
13 MINGW32_URL="$SF_MIRROR/mingw"
14 WGET_URL="$MINGW32_URL/$TARBALL"
15 MINGW32_ID="i586-pc-mingw32"
16 TAGS="compiler C"
18 # Configuration only needs included if we're in the build/wok environment
19 if [ -e $WOK/mingw32-toolchain/stuff/mingw32.conf ] ; then
20 . $WOK/mingw32-toolchain/stuff/mingw32.conf
21 fi
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 if [ "$MINGW32_ID" != "$MINGW32_TARGET" ] ; then
27 echo "ERROR: Conf 'TARGET' string differs from Receipt 'ID' string"
28 return 1
29 fi
31 rm -f -r $src/binutils
32 mkdir -p $SOURCE-$VERSION-build
33 cd $SOURCE-$VERSION-build
34 $src/configure \
35 --prefix=/usr \
36 --libexecdir=/usr/lib \
37 --infodir=/usr/share/info \
38 --mandir=/usr/share/man \
39 --with-sysroot=$MINGW32_ROOT \
40 --disable-shared \
41 --disable-debug \
42 --target=$MINGW32_TARGET \
43 --enable-languages=c \
44 --enable-threads=win32 \
45 --disable-win32-registry \
46 --enable-sjlj-exceptions \
47 $CONFIGURE_ARGS &&
48 make CFLAGS="-O2 -fomit-frame-pointer" LDFLAGS="-s" &&
49 make DESTDIR=$src/_pkg install
50 }
52 # Rules to gen a SliTaz package suitable for Tazpkg.
53 genpkg_rules()
54 {
55 mkdir -p $fs/usr
56 cp -a $_pkg/usr/bin $fs/usr
57 # do not need to copy lib/libiberty.a
58 mkdir -p $fs/usr/lib
59 cp -a $_pkg/usr/lib/gcc $fs/usr/lib
60 }
62 # Rules to setup after installation
63 post_install()
64 {
65 # Archives get stripped during packaging; need to run ranlib
66 local root
67 root=$1
68 find $root/usr/lib/gcc/$MINGW32_ID/ -name *.a -exec $MINGW32_ID-ranlib {} \;
69 }
71 # Rules to clean the package
72 clean_wok()
73 {
74 rm -r $SOURCE-$VERSION-build
75 }