2001-12-19 09:28:05 +00:00
|
|
|
# Ports collection Makefile for: nspr
|
|
|
|
# Date created: 18 December 2001
|
|
|
|
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= nspr
|
2002-08-08 19:05:53 +00:00
|
|
|
PORTVERSION= 4.2
|
2001-12-19 09:28:05 +00:00
|
|
|
CATEGORIES= devel
|
2002-08-11 05:56:10 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_MOZILLA}
|
|
|
|
MASTER_SITE_SUBDIR= nspr/releases/v${PORTVERSION}/src
|
2001-12-19 09:28:05 +00:00
|
|
|
|
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
|
|
|
|
|
|
|
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 - . | \
|
2002-08-08 19:05:53 +00:00
|
|
|
${TAR} -C ${PREFIX}/include -xf -
|
2001-12-19 09:28:05 +00:00
|
|
|
${TAR} -C ${WRKSRC}/dist/lib --dereference -cf - . | \
|
|
|
|
${TAR} -C ${PREFIX}/lib -xf -
|
|
|
|
.for lib in ${LIBS}
|
|
|
|
${LN} -sf ${lib} ${PREFIX}/lib/${lib:S/.1$//}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|