2007-03-06 13:30:31 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.20 2007/03/06 18:30:31 kurt Exp $
|
2004-01-29 16:57:53 -05:00
|
|
|
# $FreeBSD: /repoman/r/pcvs/ports/devel/nspr/Makefile,v 1.13 2003/12/13 21:30:19 peter Exp $
|
|
|
|
|
2006-11-15 04:05:36 -05:00
|
|
|
ONLY_FOR_ARCHS= alpha amd64 arm i386 powerpc sparc sparc64
|
2004-01-29 16:57:53 -05:00
|
|
|
|
2006-11-23 04:36:03 -05:00
|
|
|
COMMENT-main= "Netscape Portable Runtime"
|
2006-11-10 11:01:29 -05:00
|
|
|
COMMENT-docs= "HTML Documentation for NSPR"
|
2004-01-29 16:57:53 -05:00
|
|
|
|
2007-03-01 17:37:48 -05:00
|
|
|
VER= 4.6.5
|
2004-01-29 16:57:53 -05:00
|
|
|
DISTNAME= nspr-${VER}
|
2007-03-06 13:30:31 -05:00
|
|
|
PKGNAME-main= ${DISTNAME}p0
|
2006-12-06 12:43:31 -05:00
|
|
|
PKGNAME-docs= nspr-docs-${VER}
|
2006-11-10 11:01:29 -05:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
|
|
|
nspr-reference${EXTRACT_SUFX}:0
|
2006-11-06 09:35:45 -05:00
|
|
|
|
2007-03-06 13:30:31 -05:00
|
|
|
SO_VERSION= 19.0
|
2006-11-06 09:35:45 -05:00
|
|
|
.for _lib in nspr4 plc4 plds4
|
|
|
|
SHARED_LIBS+= ${_lib} ${SO_VERSION}
|
|
|
|
.endfor
|
2006-01-07 14:45:35 -05:00
|
|
|
|
2004-01-29 16:57:53 -05:00
|
|
|
CATEGORIES= devel
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.mozilla.org/projects/nspr/index.html
|
|
|
|
|
2006-11-03 15:56:23 -05:00
|
|
|
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
|
2004-01-29 16:57:53 -05:00
|
|
|
|
2006-11-23 04:36:03 -05:00
|
|
|
WANTLIB-main= c
|
2006-11-15 12:42:24 -05:00
|
|
|
|
2004-01-29 16:57:53 -05:00
|
|
|
# MPL - Mozilla Public License
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2006-11-06 09:35:45 -05:00
|
|
|
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/
|
2006-11-10 11:01:29 -05:00
|
|
|
MASTER_SITES0= http://ftp.eu.mozilla.org/pub/mozilla.org/nspr/doc/ \
|
|
|
|
http://ftp.mozilla.org/pub/mozilla.org/nspr/doc/
|
2006-11-23 04:36:03 -05:00
|
|
|
MULTI_PACKAGES= -main -docs
|
2006-11-10 11:01:29 -05:00
|
|
|
|
2006-11-23 04:36:03 -05:00
|
|
|
PKG_ARCH-docs= *
|
2004-01-29 16:57:53 -05:00
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
2004-10-25 05:02:53 -04:00
|
|
|
AUTOCONF_VERSION= 2.13
|
|
|
|
CONFIGURE_STYLE= autoconf no-autoheader
|
2004-01-29 16:57:53 -05:00
|
|
|
CONFIGURE_ARGS+= --disable-debug \
|
|
|
|
--with-pthreads
|
|
|
|
|
2006-11-06 09:35:45 -05:00
|
|
|
MAKE_ENV= SO_VERSION="${SO_VERSION}"
|
|
|
|
CONFIGURE_ENV= ${MAKE_ENV}
|
2006-01-07 14:45:35 -05:00
|
|
|
|
2004-10-25 05:02:53 -04:00
|
|
|
WRKSRC= ${WRKDIST}/mozilla/nsprpub
|
|
|
|
MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/build/autoconf
|
2004-01-29 16:57:53 -05:00
|
|
|
|
2006-11-06 09:35:45 -05:00
|
|
|
pre-configure:
|
|
|
|
@cp ${FILESDIR}/nspr.pc.in ${WRKSRC}/config/
|
|
|
|
|
2004-01-29 16:57:53 -05:00
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/include/nspr
|
2006-11-06 09:35:45 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/lib/pkgconfig
|
2006-11-10 11:01:29 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/nspr/html
|
2004-01-29 16:57:53 -05:00
|
|
|
cd ${WRKSRC}/dist/include && tar cfL - . | \
|
|
|
|
(cd ${PREFIX}/include && tar -xf -)
|
2004-08-10 03:24:49 -04:00
|
|
|
cd ${WRKSRC}/dist/lib && tar cfL - . | \
|
2004-01-29 16:57:53 -05:00
|
|
|
(cd ${PREFIX}/lib && tar -xf -)
|
2006-11-10 11:01:29 -05:00
|
|
|
cd ${WRKDIR}/nspr/reference/html && \
|
|
|
|
pax -s ',.*/CVS.*,,' -rwvpe . ${PREFIX}/share/doc/nspr/html
|
2004-01-29 16:57:53 -05:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/config/nspr-config ${PREFIX}/bin
|
2006-11-06 09:35:45 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/config/nspr.pc ${PREFIX}/lib/pkgconfig
|
2006-11-10 11:01:29 -05:00
|
|
|
chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/doc/nspr/html
|
2004-01-29 16:57:53 -05:00
|
|
|
|
2006-11-07 11:22:05 -05:00
|
|
|
do-regress:
|
|
|
|
${MAKE_PROGRAM} -C ${WRKSRC}/pr/tests
|
|
|
|
${MAKE_PROGRAM} -C ${WRKSRC}/lib/tests
|
2007-03-01 17:37:48 -05:00
|
|
|
@cd ${WRKSRC}/pr/tests && ulimit -Sn 192 && env TZ=gmt \
|
|
|
|
LD_LIBRARY_PATH=${WRKSRC}/dist/lib /bin/ksh runtests.ksh
|
|
|
|
LD_LIBRARY_PATH=${WRKSRC}/dist/lib ${WRKSRC}/lib/tests/string
|
|
|
|
LD_LIBRARY_PATH=${WRKSRC}/dist/lib ${WRKSRC}/lib/tests/base64t
|
2006-11-07 11:22:05 -05:00
|
|
|
|
2004-01-29 16:57:53 -05:00
|
|
|
.include <bsd.port.mk>
|