wok-next view nspr/receipt @ rev 20443

The rest of my "home work" for update many packages (up to Xorg, GTK and Openbox) for Next and mainly for Next64. Since this point this repository is open for commits. Many errors are expected due to harfbuzz-freetype dependency loop...
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Feb 24 16:17:33 2018 +0200 (2018-02-24)
parents f5bfda4cdfe9
children 555cf3b9f1ff
line source
1 # SliTaz package receipt v2.
3 PACKAGE="nspr"
4 VERSION="4.13.1"
5 CATEGORY="utilities"
6 SHORT_DESC="Netscape Portable Runtime"
7 MAINTAINER="rocky@slitaz.org"
8 LICENSE="MPL2"
9 WEB_SITE="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSPR"
11 TARBALL="nspr-$VERSION.tar.gz"
12 WGET_URL="https://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v$VERSION/src/$TARBALL"
14 BUILD_DEPENDS="perl"
15 SPLIT="nspr-dev"
17 compile_rules() {
18 cd nspr
19 sed -ri 's#^(RELEASE_BINS =).*#\1#' pr/src/misc/Makefile.in
20 sed -i 's#$(LIBRARY) ##' config/rules.mk
22 case $ARCH in
23 x86_64) ARCH_ARGS='--enable-64bit';;
24 *) ARCH_ARGS='';;
25 esac
27 ./configure \
28 --with-mozilla \
29 --with-pthreads \
30 $ARCH_ARGS \
31 $CONFIGURE_ARGS &&
32 make && make install
33 }
35 genpkg_rules() {
36 case $PACKAGE in
37 nspr) copy @std;;
38 *-dev) copy @dev;;
39 esac
40 }