wok-next view pkg-config/receipt @ rev 19715

Fix building: pciutils, pcmanfm-legacy, arj
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat May 13 17:25:31 2017 +0300 (2017-05-13)
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 }