wok-next view pkg-config/receipt @ rev 19588
Update all the SliTaz projects (hosted on hg.slitaz.org).
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Jan 21 11:18:06 2017 +0200 (2017-01-21) |
parents | 4c9e6fbf8207 |
children | 9a17d981d0f7 |
line source
1 # SliTaz package receipt.
3 PACKAGE="pkg-config"
4 VERSION="0.29.1"
5 CATEGORY="development"
6 SHORT_DESC="Free desktop packages manager."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.freedesktop.org/wiki/Software/pkg-config/"
10 HOST_ARCH="i486 arm"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://pkg-config.freedesktop.org/releases/$TARBALL"
15 DEPENDS="glibc-base"
16 BUILD_DEPENDS="gcc libtool perl"
18 # Handle cross compilation.
19 case "$ARCH" in
20 arm) BUILD_DEPENDS="" ;;
21 esac
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 # patch -p1 < $stuff/autoconf-2.66.patch
27 # sed -i 's/\$(LN) pkg-config\$(EXEEXT) \$(host_tool)/echo \1/' Makefile*
29 case "$ARCH" in
30 arm)
31 ./configure \
32 --program-prefix=$TOOLPREFIX \
33 --build=i486-slitaz-linux \
34 --host=arm-slitaz-linux-gnueabi \
35 --cache-file=arm-linux.cache ;;
36 *)
37 ./configure \
38 --prefix=/usr \
39 --with-internal-glib \
40 --disable-compile-warnings \
41 --disable-host-tool \
42 --docdir=/usr/share/doc/pkg-config-$VERSION \
43 --build=$HOST_SYSTEM \
44 --host=$HOST_SYSTEM
45 ;;
46 esac &&
47 make && make install
49 cd $install/usr/bin
50 mv pkg-config ${TOOLPREFIX}pkg-config
51 ln -s ${TOOLPREFIX}pkg-config pkg-config
52 }
54 # Rules to gen a SliTaz package suitable for Tazpkg.
55 genpkg_rules()
56 {
57 cook_copy_files *pkg-config *.m4
58 }