wok view pkg-config/receipt @ rev 20855

updated dtach (0.8 -> 0.9)
author Hans-G?nter Theisgen
date Thu Feb 21 16:54:46 2019 +0100 (2019-02-21)
parents d118cd6b4ebf
children 61f0ea8f6b70
line source
1 # SliTaz package receipt.
3 PACKAGE="pkg-config"
4 VERSION="0.28"
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 patch -p1 < $stuff/autoconf-2.66.patch
26 sed -i 's/\$(LN) pkg-config\$(EXEEXT) \$(host_tool)/echo \1/' Makefile*
27 case "$ARCH" in
28 arm)
29 ./configure \
30 --program-prefix=$TOOLPREFIX \
31 --build=i486-slitaz-linux \
32 --host=arm-slitaz-linux-gnueabi \
33 --cache-file=arm-linux.cache ;;
34 *)
35 ./configure \
36 --program-prefix=$TOOLPREFIX \
37 --build=$HOST_SYSTEM \
38 --host=$HOST_SYSTEM 2>&1 | \
39 grep -v './libtool: No such file' ;;
40 esac &&
41 make && make install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr/share
48 cp -a $install/usr/bin $fs/usr
49 cp -a $install/usr/share/aclocal $fs/usr/share
50 # This is the default pkg-config so make a symling for package that dont
51 # cross compile or search for /usr/bin/pkg-config.
52 cd $fs/usr/bin && ln -s ${TOOLPREFIX}pkg-config pkg-config
53 }