wok-current view nspr/receipt @ rev 25601
use gcc49-lib-base for openldap-dev
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Sep 01 12:04:33 2023 +0000 (16 months ago) |
parents | 1dd5aa4fec8e |
children | 5926178cd6fa |
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://www-archive.mozilla.org/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 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://hg.mozilla.org/projects/nspr 2>/dev/null | \
21 sed '/_BRANCH/!d;s|.*NSPR_||;s|_BRANCH.*||;s|_|.|g;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 cd $src/nspr
28 ./configure \
29 --prefix=/usr \
30 --libdir=/usr/lib \
31 --includedir=/usr/include/nspr \
32 --enable-optimize \
33 --disable-debug \
34 --with-mozilla \
35 --with-pthreads \
36 $([ $(uname -m) = x86_64 ] && echo --enable-64bit) \
37 $CONFIGURE_ARGS &&
38 make &&
39 make DESTDIR=$DESTDIR install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 cook_copy_files *.so*
46 }