wok view pkg-config/receipt @ rev 23595

updated qoauth (1.0 -> 2.0.0)
author Hans-G?nter Theisgen
date Wed Apr 08 14:40:29 2020 +0100 (2020-04-08)
parents b903447f62f3
children 241fb98cab1c
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="http://pkgconfig.freedesktop.org/wiki/"
11 WGET_URL="http://pkgconfig.freedesktop.org/releases/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="glibc-base"
15 BUILD_DEPENDS="gcc libtool"
17 # Handle cross compilation.
18 case "$ARCH" in
19 arm) BUILD_DEPENDS="" ;;
20 esac
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 sed -i 's/\$(LN).*pkg-config\$(EXEEXT) \$(host_tool)/echo \1/' Makefile*
26 case "$ARCH" in
27 arm)
28 ./configure \
29 --program-prefix=$TOOLPREFIX \
30 --build=i486-slitaz-linux \
31 --host=arm-slitaz-linux-gnueabi \
32 --cache-file=arm-linux.cache ;;
33 *)
34 ./configure \
35 --program-prefix=$TOOLPREFIX \
36 --build=$HOST_SYSTEM \
37 --host=$HOST_SYSTEM ;;
38 esac &&
39 make && make install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr/share
46 cp -a $install/usr/bin $fs/usr
47 cp -a $install/usr/share/aclocal $fs/usr/share
48 # This is the default pkg-config so make a symling for package that dont
49 # cross compile or search for /usr/bin/pkg-config.
50 cd $fs/usr/bin && ln -s ${TOOLPREFIX}pkg-config pkg-config
51 }