wok-next annotate 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
rev   line source
al@19868 1 # SliTaz package receipt v2.
al@19868 2
al@19868 3 PACKAGE="libdom"
al@19868 4 COMMIT="4e9b50f5b200918088bc6b1136751ea81cd8984b"
al@19868 5 VERSION="0.3.1-170204"
al@19868 6 CATEGORY="web"
al@19868 7 SHORT_DESC="Implementation of the W3C DOM"
al@19868 8 MAINTAINER="al.bobylev@gmail.com"
al@19868 9 LICENSE="MIT"
al@19868 10 WEB_SITE="http://www.netsurf-browser.org/projects/libdom/"
al@19868 11
al@19868 12 TARBALL="$PACKAGE-${COMMIT:-$VERSION}.tar.bz2"
al@19868 13 BASE_URL="http://source.netsurf-browser.org/$PACKAGE.git/snapshot"
al@19868 14 if [ -n "$COMMIT" ]; then
al@19868 15 WGET_URL="$BASE_URL/$PACKAGE-$COMMIT.tar.bz2"
al@19868 16 else
al@19868 17 WGET_URL="$BASE_URL/release/$VERSION.tar.bz2"
al@19868 18 fi
al@19868 19
al@19868 20 BUILD_DEPENDS="netsurf-buildsystem libparserutils-dev libwapcaplet-dev \
al@19868 21 libhubbub-dev expat-dev"
al@19868 22 SPLIT="libdom-dev"
al@19868 23
al@19868 24 compile_rules() {
al@19868 25 [ -z "$COMMIT" ] && cd $VERSION
al@19868 26
al@19868 27 sed -i 's|_BSD_SOURCE|_DEFAULT_SOURCE|' Makefile
al@19868 28 export CFLAGS='-Wno-error=unused-but-set-variable'
al@19868 29
al@19868 30 make \
al@19868 31 PREFIX=/usr \
al@19868 32 LIBDIR=lib \
al@19868 33 INCLUDEDIR=include \
al@19868 34 COMPONENT_TYPE=lib-shared \
al@19868 35 install
al@19868 36 }
al@19868 37
al@19868 38 genpkg_rules() {
al@19868 39 case $PACKAGE in
al@19868 40 libdom)
al@19868 41 copy @std
al@19868 42 DEPENDS="expat libhubbub libparserutils libwapcaplet"
al@19868 43 ;;
al@19868 44 *-dev)
al@19868 45 copy @dev
al@19868 46 DEPENDS="libdom expat-dev libhubbub-dev"
al@19868 47 ;;
al@19868 48 esac
al@19868 49 }