wok-next view libsvgtiny/receipt @ rev 20737
libav: fix build; python-antlr: using pip; python-apsw: up (3.19.3-r1)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue May 29 20:37:22 2018 +0300 (2018-05-29) |
parents | 417f77dae192 |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="libsvgtiny"
4 COMMIT=""
5 VERSION="0.1.6"
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 TAGS="netsurf"
49 }