wok view nspr/receipt @ rev 25003

updated nspr and nspr-dev (4.25 -> 4.33)
author Hans-G?nter Theisgen
date Mon May 16 14:53:05 2022 +0100 (23 months ago)
parents 3e9a9990c985
children 03fa4e9f1f0b
line source
1 # SliTaz package receipt.
3 PACKAGE="nspr"
4 VERSION="4.33"
5 CATEGORY="utilities"
6 SHORT_DESC="Netscape Portable Runtime."
7 MAINTAINER="rocky@slitaz.org"
8 LICENSE="MPL2"
9 WEB_SITE="https://developer.mozilla.org/docs/Mozilla/Projects/NSPR"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${VERSION}/src/${TARBALL}"
14 DEPENDS="glibc-base"
15 BUILD_DEPENDS="perl"
17 current_version()
18 {
19 wget -O - https://hg.mozilla.org/projects/nspr 2>/dev/null | \
20 sed '/_BRANCH/!d;s|.*NSPR_||;s|_BRANCH.*||;s|_|.|g;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src/nspr
27 ./configure \
28 --prefix=/usr \
29 --libdir=/usr/lib \
30 --includedir=/usr/include/nspr \
31 --enable-optimize \
32 --disable-debug \
33 --with-mozilla \
34 --with-pthreads \
35 $([ $(uname -m) = x86_64 ] && echo --enable-64bit) \
36 $CONFIGURE_ARGS &&
37 make &&
38 make DESTDIR=$DESTDIR install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 cook_copy_files *.so*
45 }