wok annotate pkg-config/receipt @ rev 15983
arm: add some Xorg proto pkgs and prepare pkg-config/receipt
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Mar 01 23:51:38 2014 +0100 (2014-03-01) |
parents | b034cb9d7f7c |
children | d118cd6b4ebf |
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@15983 | 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 |
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 \ |
pankso@15983 | 37 --host=$HOST_SYSTEM 2>&1 | \ |
pankso@15983 | 38 grep -v './libtool: No such file' ;; |
pankso@15983 | 39 esac && |
pankso@10303 | 40 make && make install |
pankso@28 | 41 } |
pankso@28 | 42 |
pankso@28 | 43 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@28 | 44 genpkg_rules() |
pankso@28 | 45 { |
pankso@28 | 46 mkdir -p $fs/usr/share |
pascal@15000 | 47 cp -a $install/usr/bin $fs/usr |
pascal@15000 | 48 cp -a $install/usr/share/aclocal $fs/usr/share |
pankso@10303 | 49 # This is the default pkg-config so make a symling for package that dont |
pankso@10303 | 50 # cross compile or search for /usr/bin/pkg-config. |
pankso@10303 | 51 cd $fs/usr/bin && ln -s ${TOOLPREFIX}pkg-config pkg-config |
pankso@28 | 52 } |