wok-6.x view pkg-config/receipt @ rev 15983
arm: add some Xorg proto pkgs and prepare pkg-config/receipt
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Mar 01 23:51:38 2014 +0100 (2014-03-01) |
parents | b034cb9d7f7c |
children | d118cd6b4ebf |
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 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 2>&1 | \
38 grep -v './libtool: No such file' ;;
39 esac &&
40 make && make install
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr/share
47 cp -a $install/usr/bin $fs/usr
48 cp -a $install/usr/share/aclocal $fs/usr/share
49 # This is the default pkg-config so make a symling for package that dont
50 # cross compile or search for /usr/bin/pkg-config.
51 cd $fs/usr/bin && ln -s ${TOOLPREFIX}pkg-config pkg-config
52 }