wok-current annotate 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 |
rev | line source |
---|---|
slaxemulator@6882 | 1 # SliTaz package receipt. |
slaxemulator@6882 | 2 |
slaxemulator@6882 | 3 PACKAGE="nspr" |
Hans-G?nter@25003 | 4 VERSION="4.33" |
slaxemulator@6882 | 5 CATEGORY="utilities" |
Hans-G?nter@21586 | 6 SHORT_DESC="Netscape Portable Runtime." |
slaxemulator@6882 | 7 MAINTAINER="rocky@slitaz.org" |
pascal@15584 | 8 LICENSE="MPL2" |
pascal@25448 | 9 WEB_SITE="https://www-archive.mozilla.org/projects/nspr/" |
Hans-G?nter@21586 | 10 |
slaxemulator@6882 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@21586 | 12 WGET_URL="https://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${VERSION}/src/${TARBALL}" |
slaxemulator@6882 | 13 |
pascal@15584 | 14 DEPENDS="glibc-base" |
pascal@15584 | 15 BUILD_DEPENDS="perl" |
pascal@15584 | 16 |
pascal@25448 | 17 # What is the latest version available today? |
pascal@24076 | 18 current_version() |
pascal@24076 | 19 { |
pascal@24076 | 20 wget -O - https://hg.mozilla.org/projects/nspr 2>/dev/null | \ |
pascal@24076 | 21 sed '/_BRANCH/!d;s|.*NSPR_||;s|_BRANCH.*||;s|_|.|g;q' |
pascal@24076 | 22 } |
pascal@24076 | 23 |
slaxemulator@6882 | 24 # Rules to configure and make the package. |
slaxemulator@6882 | 25 compile_rules() |
slaxemulator@6882 | 26 { |
devl547@17788 | 27 cd $src/nspr |
Hans-G?nter@21586 | 28 ./configure \ |
Hans-G?nter@21586 | 29 --prefix=/usr \ |
Hans-G?nter@21586 | 30 --libdir=/usr/lib \ |
Hans-G?nter@21586 | 31 --includedir=/usr/include/nspr \ |
Hans-G?nter@21586 | 32 --enable-optimize \ |
Hans-G?nter@21586 | 33 --disable-debug \ |
Hans-G?nter@21586 | 34 --with-mozilla \ |
Hans-G?nter@21586 | 35 --with-pthreads \ |
domcox@14156 | 36 $([ $(uname -m) = x86_64 ] && echo --enable-64bit) \ |
pankso@10399 | 37 $CONFIGURE_ARGS && |
Hans-G?nter@21586 | 38 make && |
Hans-G?nter@21586 | 39 make DESTDIR=$DESTDIR install |
slaxemulator@6882 | 40 } |
slaxemulator@6882 | 41 |
slaxemulator@6882 | 42 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@6882 | 43 genpkg_rules() |
slaxemulator@6882 | 44 { |
Hans-G?nter@25003 | 45 cook_copy_files *.so* |
slaxemulator@6882 | 46 } |