2001-12-19 10:28:05 +01:00
|
|
|
# Ports collection Makefile for: nspr
|
|
|
|
# Date created: 18 December 2001
|
|
|
|
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
2008-04-03 18:50:42 +02:00
|
|
|
# $MCom: ports-experimental/devel/nspr/Makefile,v 1.6 2008/03/12 13:06:56 ahze Exp $
|
2001-12-19 10:28:05 +01:00
|
|
|
|
|
|
|
PORTNAME= nspr
|
2011-07-19 20:43:34 +02:00
|
|
|
DISTVERSION= 4.8.8
|
2001-12-19 10:28:05 +01:00
|
|
|
CATEGORIES= devel
|
2011-06-05 00:38:53 +02:00
|
|
|
MASTER_SITES= MOZILLA
|
2002-08-11 07:56:10 +02:00
|
|
|
MASTER_SITE_SUBDIR= nspr/releases/v${PORTVERSION}/src
|
2001-12-19 10:28:05 +01:00
|
|
|
|
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= A platform-neutral API for system level and libc like functions
|
2001-12-19 10:28:05 +01:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/mozilla/nsprpub/build
|
|
|
|
|
2006-09-19 01:26:30 +02:00
|
|
|
USE_LDCONFIG= yes
|
2001-12-19 10:28:05 +01:00
|
|
|
USE_GMAKE= yes
|
2009-11-11 06:36:53 +01:00
|
|
|
MAKE_JOBS_SAFE= yes
|
2001-12-19 10:28:05 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2005-07-31 02:10:29 +02:00
|
|
|
CONFIGURE_SCRIPT=../configure
|
2001-12-19 10:28:05 +01:00
|
|
|
CONFIGURE_ARGS= --disable-debug \
|
|
|
|
--with-pthreads
|
|
|
|
CONFIGURE_ENV= BSD_PTHREAD_LIBS=${PTHREAD_LIBS}
|
2005-07-31 02:10:29 +02:00
|
|
|
|
2001-12-19 10:28:05 +01:00
|
|
|
MAKE_ENV= DIST=${WRKSRC}/dist
|
|
|
|
|
|
|
|
LIBS= libnspr4.so.1 libplc4.so.1 libplds4.so.1
|
|
|
|
|
2006-11-01 03:40:29 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
post-patch:
|
2007-01-30 21:08:43 +01:00
|
|
|
@${REINPLACE_CMD} -e 's,-lpthread,${PTHREAD_LIBS},g ; s,echo aout,echo elf,g' ${WRKSRC}/${CONFIGURE_SCRIPT}
|
2006-11-01 03:40:29 +01:00
|
|
|
|
2001-12-19 10:28:05 +01:00
|
|
|
do-install:
|
|
|
|
${MKDIR} ${PREFIX}/include/nspr
|
|
|
|
${TAR} -C ${WRKSRC}/dist/include --dereference -cf - . | \
|
2010-11-21 19:17:03 +01:00
|
|
|
${TAR} -C ${PREFIX}/include -xof -
|
2009-10-18 20:05:38 +02:00
|
|
|
${FIND} ${PREFIX}/include/nspr -type d | \
|
|
|
|
${XARGS} ${CHMOD} 0755
|
|
|
|
${FIND} ${PREFIX}/include/nspr -type f | \
|
|
|
|
${XARGS} ${CHMOD} ${SHAREMODE}
|
2001-12-19 10:28:05 +01:00
|
|
|
${TAR} -C ${WRKSRC}/dist/lib --dereference -cf - . | \
|
2010-11-21 19:17:03 +01:00
|
|
|
${TAR} -C ${PREFIX}/lib -xof -
|
2003-04-27 22:47:31 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/config/nspr-config ${PREFIX}/bin
|
2005-08-28 09:57:55 +02:00
|
|
|
${MKDIR} ${PREFIX}/libdata/pkgconfig
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/config/nspr.pc ${PREFIX}/libdata/pkgconfig
|
2001-12-19 10:28:05 +01:00
|
|
|
.for lib in ${LIBS}
|
2010-11-21 19:17:03 +01:00
|
|
|
.if defined(STRIP) && ${STRIP} != ""
|
2009-10-18 20:05:38 +02:00
|
|
|
${STRIP_CMD} ${PREFIX}/lib/${lib}
|
2010-11-21 19:17:03 +01:00
|
|
|
.endif
|
2009-10-18 20:05:38 +02:00
|
|
|
${CHMOD} ${BINMODE} ${PREFIX}/lib/${lib}
|
2005-07-31 02:10:29 +02:00
|
|
|
${LN} -sf ${lib} ${PREFIX}/lib/${lib:R}
|
2001-12-19 10:28:05 +01:00
|
|
|
.endfor
|
|
|
|
|
2005-07-13 05:14:59 +02:00
|
|
|
prtests:
|
2011-06-05 00:38:53 +02:00
|
|
|
${SETENV} PTHREAD_LIBS="${PTHREAD_LIBS}" ${GMAKE} -C ${WRKSRC}/pr/tests
|
2005-07-31 02:10:29 +02:00
|
|
|
${LN} -sf libmy.so.1 ${WRKSRC}/pr/tests/dll/libmy.so
|
|
|
|
cd ${WRKSRC}/pr/tests && ../../../pr/tests/runtests.sh
|
2005-07-13 05:14:59 +02:00
|
|
|
|
|
|
|
libtests:
|
|
|
|
${GMAKE} -C ${WRKSRC}/lib/tests
|
|
|
|
${WRKSRC}/lib/tests/string
|
|
|
|
${WRKSRC}/lib/tests/base64t
|
|
|
|
# The test below is commented out, because arena requires
|
|
|
|
# command-line arguments. If you can provide reasonable values
|
|
|
|
# for it, please contact ${MAINTAINER}. Thank you.
|
|
|
|
# ${WRKSRC}/lib/tests/arena
|
|
|
|
#
|
|
|
|
|
2005-07-31 02:10:29 +02:00
|
|
|
test: libtests prtests
|
|
|
|
|
2009-11-11 06:36:53 +01:00
|
|
|
#regression-test: test
|
|
|
|
|
2007-07-29 21:16:39 +02:00
|
|
|
#.if defined(PACKAGE_BUILDING)
|
2005-08-03 03:41:52 +02:00
|
|
|
#post-build: test
|
|
|
|
#.else
|
2005-07-31 02:10:29 +02:00
|
|
|
post-build:
|
|
|
|
#
|
|
|
|
# Please, consider running ``make test'' to find any
|
|
|
|
# possible build problems.
|
2005-07-13 05:14:59 +02:00
|
|
|
#
|
2005-08-03 03:41:52 +02:00
|
|
|
#.endif
|
2005-07-13 05:14:59 +02:00
|
|
|
|
2006-11-01 03:40:29 +01:00
|
|
|
.include <bsd.port.post.mk>
|