wok-6.x annotate pkg-config/receipt @ rev 22833

Add webgames
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 08 18:41:54 2020 +0100 (2020-02-08)
parents b903447f62f3
children 241fb98cab1c
rev   line source
pankso@28 1 # SliTaz package receipt.
pankso@28 2
pankso@28 3 PACKAGE="pkg-config"
pascal@22507 4 VERSION="0.29.2"
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 {
pascal@22541 25 sed -i 's/\$(LN).*pkg-config\$(EXEEXT) \$(host_tool)/echo \1/' Makefile*
pankso@15983 26 case "$ARCH" in
pankso@15983 27 arm)
pankso@15983 28 ./configure \
pankso@15983 29 --program-prefix=$TOOLPREFIX \
pankso@15983 30 --build=i486-slitaz-linux \
pankso@15983 31 --host=arm-slitaz-linux-gnueabi \
pankso@15983 32 --cache-file=arm-linux.cache ;;
pankso@15983 33 *)
pankso@15983 34 ./configure \
pankso@15983 35 --program-prefix=$TOOLPREFIX \
pankso@15983 36 --build=$HOST_SYSTEM \
pascal@22512 37 --host=$HOST_SYSTEM ;;
pankso@15983 38 esac &&
pankso@10303 39 make && make install
pankso@28 40 }
pankso@28 41
pankso@28 42 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@28 43 genpkg_rules()
pankso@28 44 {
pankso@28 45 mkdir -p $fs/usr/share
pascal@15000 46 cp -a $install/usr/bin $fs/usr
pascal@15000 47 cp -a $install/usr/share/aclocal $fs/usr/share
pankso@10303 48 # This is the default pkg-config so make a symling for package that dont
pankso@10303 49 # cross compile or search for /usr/bin/pkg-config.
pankso@10303 50 cd $fs/usr/bin && ln -s ${TOOLPREFIX}pkg-config pkg-config
pankso@28 51 }