wok-next annotate pkg-config/receipt @ rev 19766
Up cookutils.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Jun 12 11:40:38 2017 +0300 (2017-06-12) |
parents | 10e3347b5a0d |
children | 90a5eb560fd6 |
rev | line source |
---|---|
al@19745 | 1 # SliTaz package receipt v2. |
pankso@28 | 2 |
pankso@28 | 3 PACKAGE="pkg-config" |
al@19570 | 4 VERSION="0.29.1" |
pankso@200 | 5 CATEGORY="development" |
al@19745 | 6 SHORT_DESC="Free desktop packages manager" |
pankso@28 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
al@19570 | 9 WEB_SITE="https://www.freedesktop.org/wiki/Software/pkg-config/" |
pankso@16465 | 10 HOST_ARCH="i486 arm" |
pankso@28 | 11 |
al@19570 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@19570 | 13 WGET_URL="https://pkg-config.freedesktop.org/releases/$TARBALL" |
al@19570 | 14 |
al@19570 | 15 BUILD_DEPENDS="gcc libtool perl" |
al@19745 | 16 BUILD_DEPENDS_arm=" " |
pankso@15983 | 17 |
pankso@28 | 18 # Rules to configure and make the package. |
pankso@28 | 19 compile_rules() |
pankso@28 | 20 { |
pankso@15983 | 21 case "$ARCH" in |
pankso@15983 | 22 arm) |
pankso@15983 | 23 ./configure \ |
pankso@15983 | 24 --program-prefix=$TOOLPREFIX \ |
pankso@15983 | 25 --build=i486-slitaz-linux \ |
pankso@15983 | 26 --host=arm-slitaz-linux-gnueabi \ |
pankso@15983 | 27 --cache-file=arm-linux.cache ;; |
pankso@15983 | 28 *) |
pankso@15983 | 29 ./configure \ |
al@19570 | 30 --prefix=/usr \ |
al@19570 | 31 --with-internal-glib \ |
al@19570 | 32 --disable-compile-warnings \ |
al@19570 | 33 --disable-host-tool \ |
al@19570 | 34 --docdir=/usr/share/doc/pkg-config-$VERSION \ |
pankso@15983 | 35 --build=$HOST_SYSTEM \ |
al@19570 | 36 --host=$HOST_SYSTEM |
al@19570 | 37 ;; |
pankso@15983 | 38 esac && |
pankso@10303 | 39 make && make install |
al@19570 | 40 |
al@19570 | 41 cd $install/usr/bin |
al@19570 | 42 mv pkg-config ${TOOLPREFIX}pkg-config |
al@19570 | 43 ln -s ${TOOLPREFIX}pkg-config pkg-config |
pankso@28 | 44 } |
pankso@28 | 45 |
pankso@28 | 46 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@28 | 47 genpkg_rules() |
pankso@28 | 48 { |
al@19745 | 49 copy @std @dev |
al@19745 | 50 DEPENDS="glibc-base" |
pankso@28 | 51 } |