wok-next diff libmatchbox/receipt @ rev 20424
linux-dev: move creation to compile_rules(), keep genpkg_rules() for copying/splitting only
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Jan 12 17:02:57 2018 +0200 (2018-01-12) |
parents | d3eb5f4b53ea |
children | d43bf7aae921 |
line diff
1.1 --- a/libmatchbox/receipt Thu Mar 26 09:34:19 2015 +0100 1.2 +++ b/libmatchbox/receipt Fri Jan 12 17:02:57 2018 +0200 1.3 @@ -1,23 +1,22 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="libmatchbox" 1.8 -VERSION="1.9" 1.9 +VERSION="1.12" 1.10 CATEGORY="x-window" 1.11 SHORT_DESC="Matchbox shared library." 1.12 MAINTAINER="pankso@slitaz.org" 1.13 LICENSE="LGPL2.1" 1.14 TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.15 WEB_SITE="http://matchbox-project.org/" 1.16 -WGET_URL="${WEB_SITE}sources/$PACKAGE/$VERSION/$TARBALL" 1.17 +WGET_URL="http://git.yoctoproject.org/cgit/cgit.cgi/libmatchbox/snapshot/$TARBALL" 1.18 1.19 -DEPENDS="pango" 1.20 -BUILD_DEPENDS="pango-dev jpeg-dev libxml2-dev" 1.21 +BUILD_DEPENDS="pango-dev jpeg-dev libxml2-dev automake autoconf libtool" 1.22 +SPLIT="libmatchbox-dev" 1.23 1.24 # Rules to configure and make the package. 1.25 compile_rules() 1.26 { 1.27 - export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lX11" 1.28 - #--enable-xsettings 1.29 + ./autogen.sh 1.30 ./configure \ 1.31 --enable-pango \ 1.32 --enable-jpeg \ 1.33 @@ -28,6 +27,19 @@ 1.34 # Rules to gen a SliTaz package suitable for Tazpkg. 1.35 genpkg_rules() 1.36 { 1.37 - mkdir -p $fs/usr/lib 1.38 - cp -a $install/usr/lib/*.so* $fs/usr/lib 1.39 + case $PACKAGE in 1.40 + libmatchbox) 1.41 + DEPENDS="pango" 1.42 + mkdir -p $fs/usr/lib 1.43 + cp -a $install/usr/lib/*.so* $fs/usr/lib 1.44 + ;; 1.45 + libmatchbox-dev) 1.46 + CAT="development|Matchbox library devel files." 1.47 + DEPENDS="pkg-config" 1.48 + mkdir -p $fs/usr/lib 1.49 + cp -a $install/usr/lib/*.*a $fs/usr/lib 1.50 + cp -a $install/usr/lib/pkgconfig $fs/usr/lib 1.51 + cp -a $install/usr/include $fs/usr 1.52 + ;; 1.53 + esac 1.54 }