wok-next view mingw32-gcc-c/receipt @ rev 4028
mingw32-gcc-c: typo in FSH fix
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Sep 05 13:24:03 2009 +0200 (2009-09-05) |
parents | 05b5a901936b |
children | d437e141264c |
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 --libexecdir=/usr/lib \
26 --infodir=/usr/share/info \
27 --mandir=/usr/share/man \
28 --with-sysroot=/usr/lib/$MINGW32_TARGET \
29 --disable-shared \
30 --disable-debug \
31 --target=$MINGW32_TARGET \
32 --enable-languages=c \
33 --enable-threads=win32 \
34 --disable-win32-registry \
35 --enable-sjlj-exceptions \
36 $CONFIGURE_ARGS &&
37 make CFLAGS="-O2 -fomit-frame-pointer" LDFLAGS="-s" &&
38 $MINGW32_TARGET-ranlib gcc/*.a &&
39 make DESTDIR=$src/_pkg install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr
46 cp -a $_pkg/usr/bin $fs/usr
47 # do not need to copy lib/libiberty.a
48 mkdir -p $fs/usr/lib
49 cp -a $_pkg/usr/lib/gcc $fs/usr/lib
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 }