wok-next annotate mingw32-w32api/receipt @ rev 21360

guacamole: inserted fix libtool
author Hans-G?nter Theisgen
date Mon Apr 13 06:41:39 2020 +0100 (2020-04-13)
parents d5aab818505e
children
rev   line source
pascal@12905 1 # SliTaz package receipt.
pascal@12905 2
pascal@12905 3 PACKAGE="mingw32-w32api"
pascal@12905 4 SOURCE="w32api"
pascal@12905 5 VERSION="3.13-mingw32"
pascal@12905 6 CATEGORY="development"
al@21020 7 SHORT_DESC="MinGW32 w32api"
al@21020 8 MAINTAINER="devel@slitaz.org"
pascal@15583 9 LICENSE="PublicDomain"
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@12905 13 MINGW32_ID="i586-pc-mingw32"
pascal@12905 14
al@21094 15 COOKOPTS="force-arch" # different .a
al@21094 16
pascal@15583 17 BUILD_DEPENDS="slitaz-toolchain mingw32-binutils mingw32-runtime-headers mingw32-w32api-headers mingw32-gcc-c"
pascal@15583 18
pascal@12905 19 # Configuration only needs included if we're in the build/wok environment
al@21020 20 if [ -e $WOK/mingw32-toolchain/stuff/mingw32.conf ]; then
pascal@12905 21 . $WOK/mingw32-toolchain/stuff/mingw32.conf
pascal@12905 22 fi
pascal@12905 23
al@21020 24 compile_rules() {
al@21020 25 if [ "$MINGW32_ID" != "$MINGW32_TARGET" ]; then
pascal@12905 26 echo "ERROR: Conf 'TARGET' string differs from Receipt 'ID' string"
pascal@12905 27 return 1
pascal@12905 28 fi
pascal@12905 29
al@21020 30 find $src -name 'Makefile*' | xargs sed -i "s|^inst_.*:= *|&$install/|"
pascal@12905 31 rm -f -r $src/binutils
al@21020 32 mkdir -p $SOURCE-$VERSION-build $install/usr/lib
pascal@12905 33 cd $SOURCE-$VERSION-build
al@21020 34
pascal@12905 35 # NOTE: DESTDIR not handled correctly; have to fudge --prefix
pascal@12905 36 $src/configure \
pascal@12905 37 --prefix=/usr/$MINGW32_TARGET \
pascal@12905 38 --host=$MINGW32_TARGET \
pascal@12905 39 --build=$BUILD_HOST &&
pascal@12905 40 make CFLAGS="-O2 -mms-bitfields -march=${TARGET_CPU-i386}" LDFLAGS="-s" &&
pascal@12905 41 make install
pascal@12905 42 }
pascal@12905 43
al@21020 44 genpkg_rules() {
pascal@12905 45 mkdir -p $fs$MINGW32_ROOT
pascal@15583 46 cp -a $install/usr/lib $fs$MINGW32_ROOT
pascal@12905 47 chown -R root.root $fs
pascal@12905 48 }
pascal@12905 49
al@21020 50 post_install() {
pascal@20248 51 MINGW32_ID="i586-pc-mingw32"
pascal@12905 52 # Archives get stripped during packaging; need to run ranlib
pascal@18732 53 chroot "$1/" find "/usr/$MINGW32_ID/lib/" -name *.a -exec $MINGW32_ID-ranlib {} \;
pascal@12905 54 }