wok-current view pkg-config/receipt @ rev 18867
Up shellinabox (2.14)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 01 23:23:12 2016 +0100 (2016-02-01) |
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 }