wok-next view libdom/receipt @ rev 19949
sane-backends: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Oct 16 12:17:41 2017 +0200 (2017-10-16) |
parents | |
children | b19ddba309f9 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="libdom"
4 COMMIT="4e9b50f5b200918088bc6b1136751ea81cd8984b"
5 VERSION="0.3.1-170204"
6 CATEGORY="web"
7 SHORT_DESC="Implementation of the W3C DOM"
8 MAINTAINER="al.bobylev@gmail.com"
9 LICENSE="MIT"
10 WEB_SITE="http://www.netsurf-browser.org/projects/libdom/"
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 libparserutils-dev libwapcaplet-dev \
21 libhubbub-dev expat-dev"
22 SPLIT="libdom-dev"
24 compile_rules() {
25 [ -z "$COMMIT" ] && cd $VERSION
27 sed -i 's|_BSD_SOURCE|_DEFAULT_SOURCE|' Makefile
28 export CFLAGS='-Wno-error=unused-but-set-variable'
30 make \
31 PREFIX=/usr \
32 LIBDIR=lib \
33 INCLUDEDIR=include \
34 COMPONENT_TYPE=lib-shared \
35 install
36 }
38 genpkg_rules() {
39 case $PACKAGE in
40 libdom)
41 copy @std
42 DEPENDS="expat libhubbub libparserutils libwapcaplet"
43 ;;
44 *-dev)
45 copy @dev
46 DEPENDS="libdom expat-dev libhubbub-dev"
47 ;;
48 esac
49 }