wok annotate nss/receipt @ rev 7566

Remove copying .desktop and icon file in zsnes receipt.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Dec 09 02:22:07 2010 +0000 (2010-12-09)
parents 0ba128f4fff0
children ad81b6467d55
rev   line source
rocky@5107 1 # SliTaz package receipt.
rocky@5107 2
rocky@5107 3 PACKAGE="nss"
slaxemulator@6882 4 VERSION="3.12.8"
rocky@5107 5 CATEGORY="utilities"
rocky@5107 6 SHORT_DESC="Mozilla Network Security Services (NSS)."
rocky@5107 7 MAINTAINER="rocky@slitaz.org"
slaxemulator@6882 8 DEPENDS="nspr sqlite zlib"
slaxemulator@6882 9 BUILD_DEPENDS="nspr-dev sqlite-dev zlib-dev perl pkg-config"
rocky@5107 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
rocky@5107 11 WEB_SITE="http://www.mozilla.org/projects/security/pki/nss/"
rocky@5107 12 WGET_URL="ftp://ftp.mozilla.org/pub/security/nss/releases/NSS_${VERSION//./_}_RTM/src/${TARBALL}"
rocky@5107 13
rocky@5107 14 # Rules to configure and make the package.
rocky@5107 15 compile_rules()
rocky@5107 16 {
rocky@5107 17 cd $src
slaxemulator@6444 18 # Adds the SPI Inc. and CAcert.org CA certificates - patch from Debian
slaxemulator@6444 19 patch -Np1 -i ../stuff/add_spi+cacert_ca_certs.patch
slaxemulator@6444 20 # Adds transitional SSL renegotiate support - patch from Debian
slaxemulator@6444 21 patch -Np1 -i ../stuff/ssl-renegotiate-transitional.patch
slaxemulator@6444 22 # Builds against system sqlite - patch from Fedora
slaxemulator@6444 23 patch -Np0 -i ../stuff/nss-nolocalsql.patch
slaxemulator@6444 24 # Removes rpath
slaxemulator@6444 25 patch -Np0 -i ../stuff/nss-no-rpath.patch
slaxemulator@6444 26
slaxemulator@6882 27 cd $src/mozilla/security/nss/lib/ckfw/builtins
slaxemulator@6882 28 make generate
slaxemulator@6882 29
slaxemulator@6882 30 cd $src
slaxemulator@6882 31 unset CFLAGS
slaxemulator@6882 32 unset CXXFLAGS
rocky@5107 33 export NSS_USE_SYSTEM_SQLITE=1
rocky@5107 34 export BUILD_OPT=1
slaxemulator@6882 35 export PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
slaxemulator@6882 36 export PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1
slaxemulator@6882 37 export NSPR_INCLUDE_DIR=`pkg-config --cflags-only-I nspr | sed 's/-I//'`
slaxemulator@6882 38 export NSPR_LIB_DIR=`pkg-config --libs-only-L nspr | sed 's/-L.//'`
rocky@5107 39
slaxemulator@6882 40 make -j 1 -C mozilla/security/coreconf
slaxemulator@6882 41 make -j 1 -C mozilla/security/dbm
slaxemulator@6882 42 make -j 1 -C mozilla/security/nss
rocky@5107 43
rocky@5107 44 mkdir -p $PWD/_pkg/usr/bin
rocky@5107 45 mkdir -p $PWD/_pkg/usr/lib/pkgconfig
rocky@5107 46 mkdir -p $PWD/_pkg/usr/include/nss
rocky@5107 47
rocky@5107 48 NSS_VMAJOR=`grep "#define.*NSS_VMAJOR" mozilla/security/nss/lib/nss/nss.h | awk '{print $3}'`
rocky@5107 49 NSS_VMINOR=`grep "#define.*NSS_VMINOR" mozilla/security/nss/lib/nss/nss.h | awk '{print $3}'`
rocky@5107 50 NSS_VPATCH=`grep "#define.*NSS_VPATCH" mozilla/security/nss/lib/nss/nss.h | awk '{print $3}'`
rocky@5107 51
rocky@5107 52 sed ../stuff/nss.pc.in -e "s,%libdir%,/usr/lib,g" \
rocky@5107 53 -e "s,%prefix%,/usr,g" \
rocky@5107 54 -e "s,%exec_prefix%,/usr/bin,g" \
rocky@5107 55 -e "s,%includedir%,/usr/include/nss,g" \
rocky@5107 56 -e "s,%NSPR_VERSION%,${VERSION},g" \
rocky@5107 57 -e "s,%NSS_VERSION%,${VERSION},g" \
rocky@5107 58 > $PWD/_pkg/usr/lib/pkgconfig/nss.pc || return 1
rocky@5107 59
rocky@5107 60 sed ../stuff/nss-config.in -e "s,@libdir@,/usr/lib,g" \
rocky@5107 61 -e "s,@prefix@,/usr/bin,g" \
rocky@5107 62 -e "s,@exec_prefix@,/usr/bin,g" \
rocky@5107 63 -e "s,@includedir@,/usr/include/nss,g" \
rocky@5107 64 -e "s,@MOD_MAJOR_VERSION@,${NSS_VMAJOR},g" \
rocky@5107 65 -e "s,@MOD_MINOR_VERSION@,${NSS_VMINOR},g" \
rocky@5107 66 -e "s,@MOD_PATCH_VERSION@,${NSS_VPATCH},g" \
rocky@5107 67 > $PWD/_pkg/usr/bin/nss-config || return 1
rocky@5107 68 chmod 755 $PWD/_pkg/usr/bin/nss-config || return 1
rocky@5107 69
rocky@5107 70 for file in libsoftokn3.so libfreebl3.so libnss3.so libnssutil3.so \
rocky@5107 71 libssl3.so libsmime3.so libnssckbi.so libnssdbm3.so
rocky@5107 72 do
rocky@5107 73 cp mozilla/dist/*.OBJ/lib/${file} $PWD/_pkg/usr/lib/ || return 1
rocky@5107 74 done
rocky@5107 75 for file in libcrmf.a libnssb.a libnssckfw.a; do
rocky@5107 76 cp mozilla/dist/*.OBJ/lib/${file} $PWD/_pkg/usr/lib/ || return 1
rocky@5107 77 done
rocky@5107 78
rocky@5107 79 for file in certutil cmsutil crlutil modutil pk12util signtool signver ssltap; do
rocky@5107 80 cp mozilla/dist/*.OBJ/bin/${file} $PWD/_pkg/usr/bin/ || return 1
rocky@5107 81 done
rocky@5107 82
rocky@5107 83 cp mozilla/dist/public/nss/*.h $PWD/_pkg/usr/include/nss || return 1
rocky@5107 84 }
rocky@5107 85
rocky@5107 86 # Rules to gen a SliTaz package suitable for Tazpkg.
rocky@5107 87 genpkg_rules()
rocky@5107 88 {
rocky@5107 89 mkdir -p $fs/usr
rocky@5107 90 cp -a $_pkg/usr/bin $fs/usr
rocky@5107 91 rm $fs/usr/bin/nss-config
rocky@5107 92 }