wok-next diff mingw32-gcc-c/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | da5256dcf31a |
children |
line diff
1.1 --- a/mingw32-gcc-c/receipt Tue Nov 07 11:30:40 2017 +0100 1.2 +++ b/mingw32-gcc-c/receipt Fri Nov 02 14:15:08 2018 +0200 1.3 @@ -4,8 +4,8 @@ 1.4 SOURCE="gcc-core" 1.5 VERSION="3.4.5-20060117-2" 1.6 CATEGORY="development" 1.7 -SHORT_DESC="MinGW32 gcc, for the C language only." 1.8 -MAINTAINER="rcx@zoominternet.net" 1.9 +SHORT_DESC="MinGW32 gcc, for the C language only" 1.10 +MAINTAINER="devel@slitaz.org" 1.11 LICENSE="GPL2" 1.12 TARBALL="$SOURCE-$VERSION-src.tar.gz" 1.13 WEB_SITE="http://www.mingw.org/" 1.14 @@ -18,15 +18,13 @@ 1.15 BUILD_DEPENDS="slitaz-toolchain bison flex mingw32-binutils mingw32-runtime-headers mingw32-w32api-headers" 1.16 1.17 # Configuration only needs included if we're in the build/wok environment 1.18 -if [ -e $WOK/mingw32-toolchain/stuff/mingw32.conf ] ; then 1.19 +if [ -e $WOK/mingw32-toolchain/stuff/mingw32.conf ]; then 1.20 . $WOK/mingw32-toolchain/stuff/mingw32.conf 1.21 fi 1.22 1.23 -# Rules to configure and make the package. 1.24 -compile_rules() 1.25 -{ 1.26 - mkdir -p $DESTDIR/usr/share/man/man1 $DESTDIR/usr/share/man/man7 1.27 - if [ "$MINGW32_ID" != "$MINGW32_TARGET" ] ; then 1.28 +compile_rules() { 1.29 + mkdir -p $install/usr/share/man/man1 $install/usr/share/man/man7 1.30 + if [ "$MINGW32_ID" != "$MINGW32_TARGET" ]; then 1.31 echo "ERROR: Conf 'TARGET' string differs from Receipt 'ID' string" 1.32 return 1 1.33 fi 1.34 @@ -48,13 +46,11 @@ 1.35 --disable-win32-registry \ 1.36 --enable-sjlj-exceptions \ 1.37 $CONFIGURE_ARGS && 1.38 - make CFLAGS="-O2 -fomit-frame-pointer" LDFLAGS="-s" && 1.39 - make DESTDIR=$DESTDIR install 2>&1 | grep -v fixinc/fixincl 1.40 + make CFLAGS="-O2 -fomit-frame-pointer" LDFLAGS="-s" && 1.41 + make DESTDIR=$install install 1.42 } 1.43 1.44 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.45 -genpkg_rules() 1.46 -{ 1.47 +genpkg_rules() { 1.48 mkdir -p $fs/usr 1.49 cp -a $install/usr/bin $fs/usr 1.50 # do not need to copy lib/libiberty.a 1.51 @@ -62,16 +58,8 @@ 1.52 cp -a $install/usr/lib/gcc $fs/usr/lib 1.53 } 1.54 1.55 -# Rules to setup after installation 1.56 -post_install() 1.57 -{ 1.58 +post_install() { 1.59 MINGW32_ID="i586-pc-mingw32" 1.60 # Archives get stripped during packaging; need to run ranlib 1.61 chroot "$1/" find "/usr/lib/gcc/$MINGW32_ID/" -name *.a -exec $MINGW32_ID-ranlib {} \; 1.62 } 1.63 - 1.64 -# Rules to clean the package 1.65 -clean_wok() 1.66 -{ 1.67 - rm -r $SOURCE-$VERSION-build 1.68 -}