1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/devel/nspr/Makefile
Joe Marcus Clarke 35412b878e Add additional definitions now that we have gethost_r functions and
hour normal gethost functions are thread-safe.  Also, wrap thread-safe
definitions around a check for _PR_PTHREADS.

Reported by:	Sean C. Farley <sean-freebsd@farley.org>
2006-07-23 17:21:55 +00:00

73 lines
1.8 KiB
Makefile

# Ports collection Makefile for: nspr
# Date created: 18 December 2001
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= nspr
PORTVERSION= 4.6.1
PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_MOZILLA}
MASTER_SITE_SUBDIR= nspr/releases/v${PORTVERSION}/src
MAINTAINER= gnome@FreeBSD.org
COMMENT= A platform-neutral API for system level and libc like functions
WRKSRC= ${WRKDIR}/${DISTNAME}/mozilla/nsprpub/build
INSTALLS_SHLIB= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_SCRIPT=../configure
CONFIGURE_ARGS= --disable-debug \
--with-pthreads
CONFIGURE_ENV= BSD_PTHREAD_LIBS=${PTHREAD_LIBS}
MAKE_ENV= DIST=${WRKSRC}/dist
LIBS= libnspr4.so.1 libplc4.so.1 libplds4.so.1
do-install:
${MKDIR} ${PREFIX}/include/nspr
${TAR} -C ${WRKSRC}/dist/include --dereference -cf - . | \
${TAR} -C ${PREFIX}/include -xf -
${TAR} -C ${WRKSRC}/dist/lib --dereference -cf - . | \
${TAR} -C ${PREFIX}/lib -xf -
${INSTALL_SCRIPT} ${WRKSRC}/config/nspr-config ${PREFIX}/bin
${MKDIR} ${PREFIX}/libdata/pkgconfig
${INSTALL_DATA} ${WRKSRC}/config/nspr.pc ${PREFIX}/libdata/pkgconfig
.for lib in ${LIBS}
${LN} -sf ${lib} ${PREFIX}/lib/${lib:R}
.endfor
prtests:
${GMAKE} -C ${WRKSRC}/pr/tests
${LN} -sf libmy.so.1 ${WRKSRC}/pr/tests/dll/libmy.so
cd ${WRKSRC}/pr/tests && ../../../pr/tests/runtests.sh
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
#
test: libtests prtests
#.if defined(PARALLEL_PACKAGE_BUILD)
#post-build: test
#.else
post-build:
#
# Please, consider running ``make test'' to find any
# possible build problems.
#
#.endif
.include <bsd.port.mk>