wok view pkg-config/receipt @ rev 25669

Up lapack (3.12.0), less (633), libarchive (3.7.2), liblouis (3.28.0), libmicrohttpd (1.0.1), libpng (1.6.43), libssh (0.10.6), libtasn1 (4.19.0), libtirpc (1.3.4), libvpx (1.14.0), libwebp (1.3.2), logrotate (3.21.0), lua (5.4.6)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 25 16:11:20 2024 +0000 (3 months ago)
parents b01314c762e9
children
line source
1 # SliTaz package receipt.
3 PACKAGE="pkg-config"
4 VERSION="0.29.2"
5 CATEGORY="development"
6 SHORT_DESC="Free desktop packages manager."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://pkg-config.freedesktop.org/wiki/"
11 WGET_URL="https://pkg-config.freedesktop.org/releases/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="glibc-base"
15 BUILD_DEPENDS="automake gcc libtool"
17 # Handle cross compilation.
18 case "$ARCH" in
19 arm) BUILD_DEPENDS="" ;;
20 esac
22 # What is the latest version available today?
23 current_version()
24 {
25 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
26 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 autoconf
33 sed -i 's/\$(LN).*pkg-config\$(EXEEXT) \$(host_tool)/echo \1/' Makefile*
34 case "$ARCH" in
35 arm)
36 ./configure \
37 --program-prefix=$TOOLPREFIX \
38 --build=i486-slitaz-linux \
39 --host=arm-slitaz-linux-gnueabi \
40 --cache-file=arm-linux.cache ;;
41 *)
42 ./configure \
43 --program-prefix=$TOOLPREFIX \
44 --build=$HOST_SYSTEM \
45 --host=$HOST_SYSTEM ;;
46 esac &&
47 make && make install
48 }
50 # Rules to gen a SliTaz package suitable for Tazpkg.
51 genpkg_rules()
52 {
53 mkdir -p $fs/usr/share
54 cp -a $install/usr/bin $fs/usr
55 cp -a $install/usr/share/aclocal $fs/usr/share
56 # This is the default pkg-config so make a symling for package that dont
57 # cross compile or search for /usr/bin/pkg-config.
58 cd $fs/usr/bin && ln -s ${TOOLPREFIX}pkg-config pkg-config
59 }