wok-next view newt/receipt @ rev 20454

Choose between libpng16 and libpng12
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Feb 28 17:32:31 2018 +0200 (2018-02-28)
parents f463de72afe3
children d43bf7aae921
line source
1 # SliTaz package receipt v2.
3 PACKAGE="newt"
4 VERSION="0.52.19"
5 CATEGORY="libdevel"
6 SHORT_DESC="Programming library for color text mode"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://fedorahosted.org/newt/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://fedorahosted.org/releases/n/e/$PACKAGE/$TARBALL"
14 BUILD_DEPENDS="slang-dev popt-dev python-dev tcl-dev"
15 SPLIT="newt-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 sed -e 's/^LIBNEWT =/#&/' \
21 -e '/install -m 644 $(LIBNEWT)/ s/^/#/' \
22 -e 's/$(LIBNEWT)/$(LIBNEWTSONAME)/g' \
23 -i Makefile.in &&
25 ./configure \
26 --with-gpm-support \
27 $CONFIGURE_ARGS &&
28 make && make install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 case $PACKAGE in
35 newt) copy @std *.mo; DEPENDS="popt python slang tcl gpm";;
36 *-dev) copy @dev;;
37 esac
38 }