wok annotate pkg-config/receipt @ rev 25473
created recipe for get-java8-jre
author | Hans-G?nter Theisgen |
---|---|
date | Wed Oct 12 10:36:11 2022 +0100 (2022-10-12) |
parents | 448c5bd8df33 |
children | 73f36875e5a7 |
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" |
Hans-G?nter@24757 | 15 BUILD_DEPENDS="automake 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 |
pascal@24453 | 22 # What is the latest version available today? |
pascal@24453 | 23 current_version() |
pascal@24453 | 24 { |
pascal@24453 | 25 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \ |
pascal@24453 | 26 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24453 | 27 } |
pascal@24453 | 28 |
pankso@28 | 29 # Rules to configure and make the package. |
pankso@28 | 30 compile_rules() |
pankso@28 | 31 { |
pascal@24759 | 32 autoconf |
pascal@22541 | 33 sed -i 's/\$(LN).*pkg-config\$(EXEEXT) \$(host_tool)/echo \1/' Makefile* |
pankso@15983 | 34 case "$ARCH" in |
pankso@15983 | 35 arm) |
pankso@15983 | 36 ./configure \ |
pankso@15983 | 37 --program-prefix=$TOOLPREFIX \ |
pankso@15983 | 38 --build=i486-slitaz-linux \ |
pankso@15983 | 39 --host=arm-slitaz-linux-gnueabi \ |
pankso@15983 | 40 --cache-file=arm-linux.cache ;; |
pankso@15983 | 41 *) |
pankso@15983 | 42 ./configure \ |
pankso@15983 | 43 --program-prefix=$TOOLPREFIX \ |
pankso@15983 | 44 --build=$HOST_SYSTEM \ |
pascal@22512 | 45 --host=$HOST_SYSTEM ;; |
pankso@15983 | 46 esac && |
pankso@10303 | 47 make && make install |
pankso@28 | 48 } |
pankso@28 | 49 |
pankso@28 | 50 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@28 | 51 genpkg_rules() |
pankso@28 | 52 { |
pankso@28 | 53 mkdir -p $fs/usr/share |
pascal@15000 | 54 cp -a $install/usr/bin $fs/usr |
pascal@15000 | 55 cp -a $install/usr/share/aclocal $fs/usr/share |
pankso@10303 | 56 # This is the default pkg-config so make a symling for package that dont |
pankso@10303 | 57 # cross compile or search for /usr/bin/pkg-config. |
pankso@10303 | 58 cd $fs/usr/bin && ln -s ${TOOLPREFIX}pkg-config pkg-config |
pankso@28 | 59 } |