wok-next diff libdom/receipt @ rev 20259
xsave: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Nov 07 18:34:13 2017 +0100 (2017-11-07) |
parents | |
children | b19ddba309f9 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/libdom/receipt Tue Nov 07 18:34:13 2017 +0100 1.3 @@ -0,0 +1,49 @@ 1.4 +# SliTaz package receipt v2. 1.5 + 1.6 +PACKAGE="libdom" 1.7 +COMMIT="4e9b50f5b200918088bc6b1136751ea81cd8984b" 1.8 +VERSION="0.3.1-170204" 1.9 +CATEGORY="web" 1.10 +SHORT_DESC="Implementation of the W3C DOM" 1.11 +MAINTAINER="al.bobylev@gmail.com" 1.12 +LICENSE="MIT" 1.13 +WEB_SITE="http://www.netsurf-browser.org/projects/libdom/" 1.14 + 1.15 +TARBALL="$PACKAGE-${COMMIT:-$VERSION}.tar.bz2" 1.16 +BASE_URL="http://source.netsurf-browser.org/$PACKAGE.git/snapshot" 1.17 +if [ -n "$COMMIT" ]; then 1.18 + WGET_URL="$BASE_URL/$PACKAGE-$COMMIT.tar.bz2" 1.19 +else 1.20 + WGET_URL="$BASE_URL/release/$VERSION.tar.bz2" 1.21 +fi 1.22 + 1.23 +BUILD_DEPENDS="netsurf-buildsystem libparserutils-dev libwapcaplet-dev \ 1.24 +libhubbub-dev expat-dev" 1.25 +SPLIT="libdom-dev" 1.26 + 1.27 +compile_rules() { 1.28 + [ -z "$COMMIT" ] && cd $VERSION 1.29 + 1.30 + sed -i 's|_BSD_SOURCE|_DEFAULT_SOURCE|' Makefile 1.31 + export CFLAGS='-Wno-error=unused-but-set-variable' 1.32 + 1.33 + make \ 1.34 + PREFIX=/usr \ 1.35 + LIBDIR=lib \ 1.36 + INCLUDEDIR=include \ 1.37 + COMPONENT_TYPE=lib-shared \ 1.38 + install 1.39 +} 1.40 + 1.41 +genpkg_rules() { 1.42 + case $PACKAGE in 1.43 + libdom) 1.44 + copy @std 1.45 + DEPENDS="expat libhubbub libparserutils libwapcaplet" 1.46 + ;; 1.47 + *-dev) 1.48 + copy @dev 1.49 + DEPENDS="libdom expat-dev libhubbub-dev" 1.50 + ;; 1.51 + esac 1.52 +}