wok-next view nspr/receipt @ rev 20351

nss_ldap: add glibc-2.16.patch
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Nov 18 22:23:47 2017 +0100 (2017-11-18)
parents 547cf085b858
children 0e7893ac206d
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 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd nspr &&
21 sed -ri 's#^(RELEASE_BINS =).*#\1#' pr/src/misc/Makefile.in &&
22 sed -i 's#$(LIBRARY) ##' config/rules.mk &&
24 ./configure \
25 --with-mozilla \
26 --with-pthreads \
27 $([ $(uname -m) = x86_64 ] && echo --enable-64bit) \
28 $CONFIGURE_ARGS &&
29 make && make install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 case $PACKAGE in
36 nspr) copy @std;;
37 *-dev) copy @dev;;
38 esac
39 }