wok-next annotate slang/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 | 9278a60d6895 |
children | 757d032c55c7 |
rev | line source |
---|---|
al@19741 | 1 # SliTaz package receipt v2. |
erjo@506 | 2 |
erjo@506 | 3 PACKAGE="slang" |
slaxemulator@10198 | 4 VERSION="2.2.4" |
erjo@506 | 5 CATEGORY="development" |
erjo@506 | 6 SHORT_DESC="S-Lang library" |
erjo@784 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@15002 | 8 LICENSE="GPL2" |
al@19693 | 9 WEB_SITE="http://www.jedsoft.org/slang/" |
erjo@506 | 10 |
al@19693 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
al@19693 | 12 WGET_URL="ftp://space.mit.edu/pub/davis/slang/v${VERSION%.*}/$TARBALL" |
al@19693 | 13 |
al@20454 | 14 BUILD_DEPENDS="pcre-dev oniguruma-dev libpng16-dev zlib-dev readline-dev" |
al@19741 | 15 SPLIT="slang-dev" |
erjo@9950 | 16 |
erjo@506 | 17 # Rules to configure and make the package. |
erjo@506 | 18 compile_rules() |
erjo@506 | 19 { |
al@19693 | 20 ./configure \ |
al@19693 | 21 --sysconfdir=/etc \ |
al@19693 | 22 --with-readline=gnu \ |
al@19693 | 23 $CONFIGURE_ARGS && |
al@19693 | 24 make -j1 && |
pascal@19698 | 25 make -j1 install_doc_dir=/usr/share/doc/slang-$VERSION \ |
al@19693 | 26 SLSH_DOC_DIR=/usr/share/doc/slang-$VERSION/slsh \ |
al@19693 | 27 install-all && |
al@19693 | 28 |
al@19693 | 29 chmod -v 755 \ |
al@19693 | 30 $install/usr/lib/libslang.so.$VERSION \ |
al@19693 | 31 $install/usr/lib/slang/v2/modules/*.so |
erjo@506 | 32 } |
erjo@506 | 33 |
erjo@506 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@506 | 35 genpkg_rules() |
erjo@506 | 36 { |
al@19741 | 37 case $PACKAGE in |
al@19741 | 38 slang) |
al@19741 | 39 copy @std |
al@20454 | 40 DEPENDS="libpng16 ncurses oniguruma pcre readline zlib" |
al@19741 | 41 CONFIG_FILES="/etc/slsh.rc" |
al@19741 | 42 ;; |
al@19741 | 43 *-dev) copy @dev;; |
al@19741 | 44 esac |
erjo@506 | 45 } |