openbsd-ports/devel/nspr/Makefile
landry 0cd765881e Update to nspr 4.9.5.
After two years of discussion in bug #634793 and countless hours lost on
filing followup bugs at each type mismatch, nspr upstream finally got
convinced that on OpenBSD uint64_t was unsigned long long, and there was
no reason at all to define PRUint64 as unsigned long, happily raping the
principle of least surprise. So now that upstream behaves correctly,
remove the two pr{long,types}.h patches.

And there was much rejoicing.

Tested on sparc64/ppc/hppa/amd64, went in a bunch of bulk builds.
2013-03-18 20:30:31 +00:00

51 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.47 2013/03/18 20:30:31 landry Exp $
ONLY_FOR_ARCHS= alpha amd64 arm i386 mips64 mips64el powerpc sparc sparc64 hppa
SHARED_ONLY = Yes
COMMENT = Netscape Portable Runtime
VER= 4.9.5
DISTNAME= nspr-${VER}
SO_VERSION= 22.2
.for _lib in nspr4 plc4 plds4
SHARED_LIBS+= ${_lib} ${SO_VERSION}
.endfor
CATEGORIES= devel
HOMEPAGE= http://www.mozilla.org/projects/nspr/index.html
MAINTAINER= Landry Breuil <landry@openbsd.org>
WANTLIB= c pthread
# MPL - Mozilla Public License
PERMIT_PACKAGE_CDROM= Yes
MASTER_SITES= http://ftp.eu.mozilla.org/pub/mozilla.org/nspr/releases/v${VER}/src/ \
http://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${VER}/src/
USE_GMAKE= Yes
AUTOCONF_VERSION= 2.13
CONFIGURE_STYLE= autoconf no-autoheader
CONFIGURE_ARGS+= --disable-debug \
--with-pthreads
MAKE_ENV= SO_VERSION="${SO_VERSION}"
CONFIGURE_ENV= ${MAKE_ENV}
WRKSRC= ${WRKDIST}/mozilla/nsprpub
MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/build/autoconf
do-test:
${MAKE_PROGRAM} -C ${WRKSRC}/pr/tests
${MAKE_PROGRAM} -C ${WRKSRC}/lib/tests
@cd ${WRKSRC}/pr/tests && ulimit -Sn 192 && env TZ=gmt \
LD_LIBRARY_PATH=${WRKSRC}/dist/lib /bin/ksh runtests.sh
LD_LIBRARY_PATH=${WRKSRC}/dist/lib ${WRKSRC}/lib/tests/string
LD_LIBRARY_PATH=${WRKSRC}/dist/lib ${WRKSRC}/lib/tests/base64t
.include <bsd.port.mk>