wok view mingw32-binutils/receipt @ rev 4022

Fix: PolicyKit FSH --localstatedir=/var and genpkg_rules
author Christophe Lincoln <pankso@slitaz.org>
date Fri Sep 04 12:12:41 2009 +0200 (2009-09-04)
parents 1aa4817e0aff
children d437e141264c
line source
1 # SliTaz package receipt.
3 PACKAGE="mingw32-binutils"
4 SOURCE="binutils"
5 VERSION="2.19.1"
6 CATEGORY="development"
7 SHORT_DESC="MinGW32 binutils."
8 MAINTAINER="rcx@zoominternet.net"
9 DEPENDS="glibc-base zlib"
10 BUILD_DEPENDS="slitaz-toolchain bison flex"
11 TARBALL="$SOURCE-$VERSION-src.tar.gz"
12 WEB_SITE="http://www.mingw.org/"
13 WGET_URL="$SF_MIRROR/mingw/$TARBALL"
14 MINGW32_TARGET="i586-pc-mingw32"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 ./configure \
21 --prefix=/usr \
22 --infodir=/usr/share/info \
23 --mandir=/usr/share/man \
24 --with-sysroot=/usr/lib/$MINGW32_TARGET \
25 --disable-shared \
26 --disable-debug \
27 --target=$MINGW32_TARGET \
28 $CONFIGURE_ARGS &&
29 make CFLAGS="-O2 -fno-exceptions" LDFLAGS="-s" &&
30 make DESTDIR=$PWD/_pkg install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/lib
37 cp -a $_pkg/usr/bin $fs/usr
38 cp -a $_pkg/usr/lib/$MINGW32_TARGET $fs/usr/lib
39 # do not need to copy lib/libiberty.a
41 #Create a symlink for --with-sysroot
42 ( cd $fs/usr/lib/$MINGW32_TARGET && ln -s . usr )
43 }