2009-10-12 23:19:56 +02:00
|
|
|
# Template file for 'nspr'
|
|
|
|
pkgname=nspr
|
2014-09-25 08:09:35 +02:00
|
|
|
version=4.10.7
|
2014-02-03 15:08:21 +01:00
|
|
|
revision=1
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2013-08-07 10:48:45 +02:00
|
|
|
build_wrksrc="nspr"
|
2013-11-15 10:02:41 +01:00
|
|
|
makedepends="zlib-devel"
|
2009-10-12 23:19:56 +02:00
|
|
|
short_desc="NetScape Portable Runtime"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-05-28 13:34:12 +02:00
|
|
|
homepage="http://www.mozilla.org/projects/nspr/"
|
|
|
|
license="GPL-2, MPL-1.1"
|
2012-06-18 08:41:04 +02:00
|
|
|
distfiles="${MOZILLA_SITE}/nspr/releases/v${version}/src/${pkgname}-${version}.tar.gz"
|
2014-09-25 08:09:35 +02:00
|
|
|
checksum=389af5cfa863ea9bc6de7b30c15f8a4f9bddd8002f8c6fdc8b33caef43893938
|
2009-10-12 23:19:56 +02:00
|
|
|
|
2014-01-23 17:41:02 +01:00
|
|
|
do_configure() {
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
_args+=" --target=$XBPS_CROSS_TRIPLET"
|
|
|
|
fi
|
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
|
|
|
_args+=" --enable-64bit"
|
|
|
|
fi
|
|
|
|
|
|
|
|
unset CFLAGS
|
|
|
|
./configure --prefix=/usr --libdir=/usr/lib \
|
|
|
|
--includedir=/usr/include/nspr --enable-optimize \
|
2014-05-10 16:42:20 +02:00
|
|
|
--enable-debug --with-pthreads ${_args}
|
2014-01-23 17:41:02 +01:00
|
|
|
}
|
2012-10-29 16:11:40 +01:00
|
|
|
|
2013-08-07 10:48:45 +02:00
|
|
|
post_install() {
|
|
|
|
ln -s nspr.pc ${DESTDIR}/usr/lib/pkgconfig/mozilla-nspr.pc
|
|
|
|
rm -r ${DESTDIR}/usr/bin/{compile-et.pl,prerr.properties} \
|
|
|
|
${DESTDIR}/usr/include/nspr/md
|
2009-10-12 23:19:56 +02:00
|
|
|
}
|
2013-04-13 13:29:34 +02:00
|
|
|
|
|
|
|
nspr-devel_package() {
|
2013-11-15 08:41:12 +01:00
|
|
|
depends="nspr>=${version}_${revision}"
|
2013-05-14 21:30:59 +02:00
|
|
|
short_desc+=" - development files"
|
2013-04-13 13:29:34 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/bin
|
|
|
|
vmove usr/lib/pkgconfig
|
2013-08-07 10:48:45 +02:00
|
|
|
vmove usr/share/aclocal
|
2013-10-05 07:53:26 +02:00
|
|
|
vmove "usr/lib/*.a"
|
2013-04-13 13:29:34 +02:00
|
|
|
}
|
|
|
|
}
|