wok annotate pkg-config/receipt @ rev 21292
updated libsdl-net and libsdl-net-dev (1.2.7 -> 1.2.8)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Apr 16 17:40:27 2019 +0100 (2019-04-16) |
parents | d118cd6b4ebf |
children | 61f0ea8f6b70 |
rev | line source |
---|---|
pankso@28 | 1 # SliTaz package receipt. |
pankso@28 | 2 |
pankso@28 | 3 PACKAGE="pkg-config" |
pankso@15983 | 4 VERSION="0.28" |
pankso@200 | 5 CATEGORY="development" |
pankso@28 | 6 SHORT_DESC="Free desktop packages manager." |
pankso@28 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
pankso@28 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@28 | 10 WEB_SITE="http://pkgconfig.freedesktop.org/wiki/" |
pankso@28 | 11 WGET_URL="http://pkgconfig.freedesktop.org/releases/$TARBALL" |
pankso@16465 | 12 HOST_ARCH="i486 arm" |
pankso@28 | 13 |
slaxemulator@10425 | 14 DEPENDS="glibc-base" |
pascal@15262 | 15 BUILD_DEPENDS="gcc libtool" |
slaxemulator@10425 | 16 |
pankso@15983 | 17 # Handle cross compilation. |
pankso@15983 | 18 case "$ARCH" in |
pankso@15983 | 19 arm) BUILD_DEPENDS="" ;; |
pankso@15983 | 20 esac |
pankso@15983 | 21 |
pankso@28 | 22 # Rules to configure and make the package. |
pankso@28 | 23 compile_rules() |
pankso@28 | 24 { |
slaxemulator@9700 | 25 patch -p1 < $stuff/autoconf-2.66.patch |
pascal@16010 | 26 sed -i 's/\$(LN) pkg-config\$(EXEEXT) \$(host_tool)/echo \1/' Makefile* |
pankso@15983 | 27 case "$ARCH" in |
pankso@15983 | 28 arm) |
pankso@15983 | 29 ./configure \ |
pankso@15983 | 30 --program-prefix=$TOOLPREFIX \ |
pankso@15983 | 31 --build=i486-slitaz-linux \ |
pankso@15983 | 32 --host=arm-slitaz-linux-gnueabi \ |
pankso@15983 | 33 --cache-file=arm-linux.cache ;; |
pankso@15983 | 34 *) |
pankso@15983 | 35 ./configure \ |
pankso@15983 | 36 --program-prefix=$TOOLPREFIX \ |
pankso@15983 | 37 --build=$HOST_SYSTEM \ |
pankso@15983 | 38 --host=$HOST_SYSTEM 2>&1 | \ |
pankso@15983 | 39 grep -v './libtool: No such file' ;; |
pankso@15983 | 40 esac && |
pankso@10303 | 41 make && make install |
pankso@28 | 42 } |
pankso@28 | 43 |
pankso@28 | 44 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@28 | 45 genpkg_rules() |
pankso@28 | 46 { |
pankso@28 | 47 mkdir -p $fs/usr/share |
pascal@15000 | 48 cp -a $install/usr/bin $fs/usr |
pascal@15000 | 49 cp -a $install/usr/share/aclocal $fs/usr/share |
pankso@10303 | 50 # This is the default pkg-config so make a symling for package that dont |
pankso@10303 | 51 # cross compile or search for /usr/bin/pkg-config. |
pankso@10303 | 52 cd $fs/usr/bin && ln -s ${TOOLPREFIX}pkg-config pkg-config |
pankso@28 | 53 } |