wok-current diff nspr/receipt @ rev 7709

fcitx:add default configure file
author fireflyoo <lufeng369@gmail.com>
date Sun Dec 19 23:26:42 2010 +0800 (2010-12-19)
parents
children 4f70798e8afa
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/nspr/receipt	Sun Dec 19 23:26:42 2010 +0800
     1.3 @@ -0,0 +1,49 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="nspr"
     1.7 +VERSION="4.8.6"
     1.8 +CATEGORY="utilities"
     1.9 +SHORT_DESC="Netscape Portable Runtime"
    1.10 +MAINTAINER="rocky@slitaz.org"
    1.11 +DEPENDS="glibc-base"
    1.12 +BUILD_DEPENDS="perl"
    1.13 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.14 +WEB_SITE="http://www.mozilla.org/projects/nspr/"
    1.15 +WGET_URL="ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${VERSION}/src/${TARBALL}"
    1.16 +
    1.17 +# Rules to configure and make the package.
    1.18 +compile_rules()
    1.19 +{
    1.20 +    cd $src
    1.21 +./mozilla/nsprpub/configure \
    1.22 +      --prefix=/usr \
    1.23 +      --libdir=/usr/lib \
    1.24 +      --includedir=/usr/include/nspr \
    1.25 +      --enable-optimize \
    1.26 +      --disable-debug
    1.27 +  make
    1.28 +  make DESTDIR="$PWD/_pkg" install
    1.29 +
    1.30 +  mkdir -p $PWD/_pkg/usr/lib/pkgconfig
    1.31 +  NSPR_LIBS=`./config/nspr-config --libs`
    1.32 +  NSPR_CFLAGS=`./config/nspr-config --cflags`
    1.33 +  NSPR_VERSION=`./config/nspr-config --version`
    1.34 +  install -m755 -d "${pkgdir}/usr/lib/pkgconfig"
    1.35 +  sed "../stuff/nspr.pc.in" -e "s,%libdir%,/usr/lib," \
    1.36 +        -e "s,%prefix%,/usr," \
    1.37 +        -e "s,%exec_prefix%,/usr/bin," \
    1.38 +        -e "s,%includedir%,/usr/include/nspr," \
    1.39 +        -e "s,%NSPR_VERSION%,${NSPR_VERSION}," \
    1.40 +        -e "s,%FULL_NSPR_LIBS%,${NSPR_LIBS}," \
    1.41 +        -e "s,%FULL_NSPR_CFLAGS%,${NSPR_CFLAGS}," > "$PWD/_pkg/usr/lib/pkgconfig/nspr.pc"
    1.42 +  ln -sf nspr.pc "$PWD/_pkg/usr/lib/pkgconfig/mozilla-nspr.pc"
    1.43 +}
    1.44 +
    1.45 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.46 +genpkg_rules()
    1.47 +{
    1.48 +    mkdir -p $fs/usr/lib
    1.49 +    cp -a $_pkg/usr/bin $fs/usr
    1.50 +    cp -a $_pkg/usr/lib/*so* $fs/usr/lib
    1.51 +    rm $fs/usr/bin/nspr-config
    1.52 +}