wok view mingw32-gcc-c/receipt @ rev 3941

zile: fix dependencies.
author Dominique Corbex <domcox@users.sourceforge.net>
date Sat Aug 22 12:57:45 2009 +0200 (2009-08-22)
parents
children 05b5a901936b
line source
1 # SliTaz package receipt.
3 PACKAGE="mingw32-gcc-c"
4 SOURCE="gcc"
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-core-$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_TARGET="i586-pc-mingw32"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 rm -f -r $src/binutils
21 mkdir -p $SOURCE-$VERSION-build
22 cd $SOURCE-$VERSION-build
23 $src/configure \
24 --prefix=/usr \
25 --infodir=/usr/share/info \
26 --mandir=/usr/share/man \
27 --with-sysroot=/usr/$MINGW32_TARGET \
28 --disable-shared \
29 --disable-debug \
30 --target=$MINGW32_TARGET \
31 --enable-languages=c \
32 --enable-threads=win32 \
33 --disable-win32-registry \
34 --enable-sjlj-exceptions \
35 $CONFIGURE_ARGS &&
36 make CFLAGS="-O2 -fomit-frame-pointer" LDFLAGS="-s" &&
37 $MINGW32_TARGET-ranlib gcc/*.a &&
38 make DESTDIR=$src/_pkg install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr
45 cp -a $_pkg/usr/bin $fs/usr
46 # do not need to copy lib/libiberty.a
47 mkdir -p $fs/usr/lib
48 cp -a $_pkg/usr/lib/gcc $fs/usr/lib
49 cp -a $_pkg/usr/libexec $fs/usr
50 }
52 # Rules to setup after installation
53 post_install()
54 {
55 # Archives get stripped during packaging; need to run ranlib
56 local root
57 root=$1
58 find $root/usr/lib/gcc/$MINGW32_TARGET/ -name *.a -exec $MINGW32_TARGET-ranlib {} \;
59 }
61 # Rules to clean the package
62 clean_wok()
63 {
64 rm -r $SOURCE-$VERSION-build
65 }