2012-08-18 08:41:37 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.42 2012/08/18 12:41:38 ajacoutot Exp $
|
2004-01-29 16:57:53 -05:00
|
|
|
|
2010-03-30 07:47:33 -04:00
|
|
|
ONLY_FOR_ARCHS= alpha amd64 arm i386 mips64 mips64el powerpc sparc sparc64 hppa
|
2004-01-29 16:57:53 -05:00
|
|
|
|
2007-09-15 22:52:56 -04:00
|
|
|
COMMENT-main= Netscape Portable Runtime
|
|
|
|
COMMENT-docs= HTML Documentation for NSPR
|
2004-01-29 16:57:53 -05:00
|
|
|
|
2012-02-20 04:17:00 -05:00
|
|
|
VER= 4.9
|
2004-01-29 16:57:53 -05:00
|
|
|
DISTNAME= nspr-${VER}
|
2009-08-04 09:56:09 -04:00
|
|
|
PKGNAME-main= ${DISTNAME}
|
2012-05-17 01:01:35 -04:00
|
|
|
REVISION-main= 1
|
2007-08-01 17:11:13 -04: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
|
|
|
|
2011-08-23 16:07:08 -04:00
|
|
|
SO_VERSION= 22.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
|
|
|
|
|
2011-10-03 13:54:23 -04:00
|
|
|
MAINTAINER= Landry Breuil <landry@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
|
2008-07-31 13:31:00 -04:00
|
|
|
cd ${WRKSRC}/dist/include && \
|
|
|
|
find . -type d \
|
|
|
|
-exec ${INSTALL_DATA_DIR} ${PREFIX}/include/{} \; && \
|
|
|
|
find . ! -type d \
|
|
|
|
-exec ${INSTALL_DATA} {} ${PREFIX}/include/{} \;
|
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 \
|
2008-07-24 20:42:33 -04:00
|
|
|
LD_LIBRARY_PATH=${WRKSRC}/dist/lib /bin/ksh runtests.sh
|
2007-03-01 17:37:48 -05:00
|
|
|
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>
|