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