wok-next annotate libparserutils/receipt @ rev 20574
More fix libtool
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 13 20:08:04 2018 +0300 (2018-04-13) |
parents | c4e53a39395a |
children | 8b5b2a6d07b8 |
rev | line source |
---|---|
al@19811 | 1 # SliTaz package receipt v2. |
pankso@2824 | 2 |
pankso@2824 | 3 PACKAGE="libparserutils" |
al@19868 | 4 COMMIT="" |
al@19811 | 5 VERSION="0.2.3" |
pankso@2824 | 6 CATEGORY="system-tools" |
al@19811 | 7 SHORT_DESC="Library for building efficient parsers" |
pankso@2824 | 8 MAINTAINER="pankso@slitaz.org" |
pascal@15482 | 9 LICENSE="MIT" |
pankso@2824 | 10 WEB_SITE="http://www.netsurf-browser.org/projects/libparserutils/" |
al@19811 | 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@19811 | 19 |
al@19811 | 20 BUILD_DEPENDS="netsurf-buildsystem" |
al@19811 | 21 SPLIT="libparserutils-dev" |
pascal@15112 | 22 |
al@19868 | 23 compile_rules() { |
al@19868 | 24 [ -z "$COMMIT" ] && cd $VERSION |
al@19868 | 25 |
al@19868 | 26 sed -i 's|_BSD_SOURCE|_DEFAULT_SOURCE|' Makefile |
al@19868 | 27 echo 'CFLAGS += -DWITH_ICONV_FILTER' > Makefile.config.override |
al@19868 | 28 |
al@19868 | 29 make \ |
al@19868 | 30 PREFIX=/usr \ |
al@19868 | 31 LIBDIR=lib \ |
al@19868 | 32 INCLUDEDIR=include \ |
al@19868 | 33 COMPONENT_TYPE=lib-shared \ |
al@19868 | 34 install |
pankso@2824 | 35 } |
pankso@16251 | 36 |
al@19868 | 37 genpkg_rules() { |
al@19811 | 38 case $PACKAGE in |
al@19811 | 39 libparserutils) copy @std;; |
al@19811 | 40 *-dev) copy @dev;; |
al@19811 | 41 esac |
al@20519 | 42 TAGS="netsurf" |
pankso@2824 | 43 } |