wok-next view libsvgtiny/receipt @ rev 20206
Up PyQt-x11-gpl (4.12.1)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Nov 04 09:19:58 2017 +0100 (2017-11-04) |
parents | |
children | b19ddba309f9 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="libsvgtiny"
4 COMMIT="d5060009e934f2715a35601f7e4192702a473216"
5 VERSION="0.1.5-170724"
6 CATEGORY="libs"
7 SHORT_DESC="SVG Tiny library"
8 MAINTAINER="al.bobylev@gmail.com"
9 LICENSE="MIT"
10 WEB_SITE="http://www.netsurf-browser.org/projects/libsvgtiny/"
12 TARBALL="$PACKAGE-${COMMIT:-$VERSION}.tar.bz2"
13 BASE_URL="http://source.netsurf-browser.org/$PACKAGE.git/snapshot"
14 if [ -n "$COMMIT" ]; then
15 WGET_URL="$BASE_URL/$PACKAGE-$COMMIT.tar.bz2"
16 else
17 WGET_URL="$BASE_URL/release/$VERSION.tar.bz2"
18 fi
20 BUILD_DEPENDS="netsurf-buildsystem libdom-dev libwapcaplet-dev gperf"
21 SPLIT="libsvgtiny-dev"
23 compile_rules() {
24 [ -z "$COMMIT" ] && cd $VERSION
26 sed -i 's|_BSD_SOURCE|_DEFAULT_SOURCE|' Makefile
27 export CFLAGS="-Wno-error=unused-but-set-variable"
29 make \
30 PREFIX=/usr \
31 LIBDIR=lib \
32 INCLUDEDIR=include \
33 COMPONENT_TYPE=lib-shared \
34 install
35 }
37 genpkg_rules() {
38 case $PACKAGE in
39 libsvgtiny)
40 copy @std
41 DEPENDS="expat libdom libhubbub libparserutils libwapcaplet"
42 ;;
43 *-dev)
44 copy @dev
45 DEPENDS="libsvgtiny libdom-dev"
46 ;;
47 esac
48 }