wok annotate mingw32-binutils/receipt @ rev 23285

updated pdf2djvu (0.9.12 -> 0.9.17)
author Hans-G?nter Theisgen
date Sun Mar 29 10:50:45 2020 +0100 (2020-03-29)
parents 4c16797dce28
children afae00265386
rev   line source
pascal@12905 1 # SliTaz package receipt.
pascal@12905 2
pascal@12905 3 PACKAGE="mingw32-binutils"
pascal@12905 4 SOURCE="binutils"
pascal@12905 5 VERSION="2.19.1"
pascal@12905 6 CATEGORY="development"
pascal@12905 7 SHORT_DESC="MinGW32 binutils."
pascal@12905 8 MAINTAINER="rcx@zoominternet.net"
pascal@15000 9 LICENSE="GPL2"
pascal@12905 10 TARBALL="$SOURCE-$VERSION-src.tar.gz"
pascal@12905 11 WEB_SITE="http://www.mingw.org/"
pascal@12905 12 WGET_URL="$SF_MIRROR/mingw/$TARBALL"
pascal@13033 13 TAGS="assembler linker"
pascal@12905 14
pascal@15000 15 DEPENDS="glibc-base zlib"
pascal@15000 16 BUILD_DEPENDS="slitaz-toolchain bison flex"
pascal@15000 17
pascal@12905 18 # Configuration only needs included if we're in the build/wok environment
pascal@12905 19 if [ -e $WOK/mingw32-toolchain/stuff/mingw32.conf ] ; then
pascal@12905 20 . $WOK/mingw32-toolchain/stuff/mingw32.conf
pascal@12905 21 fi
pascal@12905 22
pascal@12905 23 # Rules to configure and make the package.
pascal@12905 24 compile_rules()
pascal@12905 25 {
pascal@12905 26 cd $src
pascal@12905 27 ./configure \
pascal@12905 28 --prefix=/usr \
pascal@12905 29 --infodir=/usr/share/info \
pascal@12905 30 --mandir=/usr/share/man \
pascal@12905 31 --with-sysroot=$MINGW32_ROOT \
pascal@12905 32 --disable-shared \
pascal@12905 33 --disable-debug \
pascal@12905 34 --target=$MINGW32_TARGET \
pascal@12905 35 $CONFIGURE_ARGS &&
pascal@12905 36 make CFLAGS="-O2 -fno-exceptions -Wno-error=unused-but-set-variable" LDFLAGS="-s" &&
pascal@12905 37 make DESTDIR=$DESTDIR install
pascal@12905 38 }
pascal@12905 39
pascal@12905 40 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@12905 41 genpkg_rules()
pascal@12905 42 {
pascal@12905 43 mkdir -p $fs/usr/lib $fs$MINGW32_ROOT
pascal@15000 44 cp -a $install/usr/bin $fs/usr
pascal@15000 45 cp -a $install$MINGW32_ROOT/* $fs$MINGW32_ROOT
pascal@12905 46 # do not need to copy lib/libiberty.a
pascal@12905 47
pascal@12905 48 strip -s $fs$MINGW32_ROOT/bin/*
pascal@12905 49
pascal@12905 50 #Create a symlink for --with-sysroot
pascal@12905 51 ln -s . $fs$MINGW32_ROOT/usr
pascal@12905 52 }