wok-next view glib/receipt @ rev 20827

new tor: 0.3.3.7
author Erkan Yilmaz <erkan@slitaz.org>
date Thu Jun 14 10:13:14 2018 +0000 (2018-06-14)
parents 342b30daff76
children f48456621a9d
line source
1 # SliTaz package receipt v2.
3 PACKAGE="glib"
4 VERSION="2.56.1"
5 CATEGORY="x-window"
6 SHORT_DESC="C routines"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://developer.gnome.org/glib/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/glib2.html"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
15 BUILD_DEPENDS="automake libtool zlib-dev libffi-dev gettext \
16 util-linux-mount-dev pcre-dev glib-dev elfutils-dev gtk-doc libxslt \
17 docbook-xsl dbus-dev"
18 SPLIT="glib-static glib-dev"
20 # glib require glib to be built.
21 # And if glib failed to build and not present on the mirror, you will catch
22 # into the dead loop. Be careful!
24 compile_rules() {
25 # --enable-static: desktop-file-validate-static require such lib
26 NOCONFIGURE=1 ./autogen.sh &&
27 ./configure \
28 --enable-debug=no \
29 --enable-static \
30 --disable-fam \
31 $CONFIGURE_ARGS &&
32 fix libtool &&
33 make &&
34 make install
35 }
37 genpkg_rules() {
38 case $PACKAGE in
39 glib)
40 copy @std
41 # Python codegen, tester, Perl mkenums --> glib-dev
42 cd $fs/usr/bin
43 rm gdbus-codegen gtester* glib-mkenums glib-gettextize
44 rm -r $fs/usr/share
45 DEPENDS="elfutils libffi libpcre util-linux-mount zlib"
46 ;;
47 glib-static)
48 copy *.a
49 DEPENDS=" "
50 CAT="development|static libraries"
51 ;;
52 glib-dev)
53 copy @std @dev @rm
54 DEPENDS="glib libffi-dev pcre-dev python util-linux-mount-dev \
55 zlib-dev perl"
56 ;;
57 esac
58 }