2001-12-19 10:30:28 +01:00
|
|
|
# Ports collection Makefile for: nss
|
|
|
|
# Date created: 18 December 2001
|
|
|
|
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
2008-03-12 14:12:02 +01:00
|
|
|
# $MCom ports-experimental/security/nss/Makefile,v 1.4 2008/02/23 15:47:28 ahze Exp $
|
2001-12-19 10:30:28 +01:00
|
|
|
|
|
|
|
PORTNAME= nss
|
Presenting GNOME 2.18 for FreeBSD. GNOME 2.18 is a departure from recent GNOME
releases in that it focuses more on stability and functionality than on
new features. Not that it doesn't have its share of new and exciting
items. See http://www.gnome.org/start/2.18/ for all the goodies in
this release.
GNOME 2.18 for FreeBSD would not have been possible without the hard work
of the FreeBSD GNOME Team and our intrepid band of testers including
J. W. Ballantine, Pawel Worach, Yasuda Keisuke, Pascal Hofstee, miwi,
Yoshihiro Ota, Vladimir Grebenschikov, Jukka A. Ukkonen,
Phillip Neumann, Franz Klammer, and Neal Delmonico.
2007-03-19 06:14:07 +01:00
|
|
|
PORTVERSION= ${_MAJOR}.${_MINOR}.${_PATCH}
|
2008-03-20 13:51:36 +01:00
|
|
|
PORTREVISION= 2
|
2001-12-19 10:30:28 +01:00
|
|
|
CATEGORIES= security
|
2005-08-30 22:52:18 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_MOZILLA}
|
|
|
|
MASTER_SITE_SUBDIR= security/nss/releases/NSS_${PORTVERSION:S/./_/g}_RTM/src
|
2001-12-19 10:30:28 +01:00
|
|
|
|
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
2004-03-27 19:01:50 +01:00
|
|
|
COMMENT= Libraries to support development of security-enabled applications
|
2001-12-19 10:30:28 +01:00
|
|
|
|
2002-11-18 04:10:30 +01:00
|
|
|
BUILD_DEPENDS= zip:${PORTSDIR}/archivers/zip
|
2001-12-19 10:30:28 +01:00
|
|
|
LIB_DEPENDS= nspr4.1:${PORTSDIR}/devel/nspr
|
|
|
|
|
Presenting GNOME 2.18 for FreeBSD. GNOME 2.18 is a departure from recent GNOME
releases in that it focuses more on stability and functionality than on
new features. Not that it doesn't have its share of new and exciting
items. See http://www.gnome.org/start/2.18/ for all the goodies in
this release.
GNOME 2.18 for FreeBSD would not have been possible without the hard work
of the FreeBSD GNOME Team and our intrepid band of testers including
J. W. Ballantine, Pawel Worach, Yasuda Keisuke, Pascal Hofstee, miwi,
Yoshihiro Ota, Vladimir Grebenschikov, Jukka A. Ukkonen,
Phillip Neumann, Franz Klammer, and Neal Delmonico.
2007-03-19 06:14:07 +01:00
|
|
|
_MAJOR= 3
|
|
|
|
_MINOR= 11
|
2008-03-12 14:12:02 +01:00
|
|
|
_PATCH= 9
|
Presenting GNOME 2.18 for FreeBSD. GNOME 2.18 is a departure from recent GNOME
releases in that it focuses more on stability and functionality than on
new features. Not that it doesn't have its share of new and exciting
items. See http://www.gnome.org/start/2.18/ for all the goodies in
this release.
GNOME 2.18 for FreeBSD would not have been possible without the hard work
of the FreeBSD GNOME Team and our intrepid band of testers including
J. W. Ballantine, Pawel Worach, Yasuda Keisuke, Pascal Hofstee, miwi,
Yoshihiro Ota, Vladimir Grebenschikov, Jukka A. Ukkonen,
Phillip Neumann, Franz Klammer, and Neal Delmonico.
2007-03-19 06:14:07 +01:00
|
|
|
|
2001-12-19 10:30:28 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/mozilla/security/nss
|
|
|
|
|
Presenting GNOME 2.18 for FreeBSD. GNOME 2.18 is a departure from recent GNOME
releases in that it focuses more on stability and functionality than on
new features. Not that it doesn't have its share of new and exciting
items. See http://www.gnome.org/start/2.18/ for all the goodies in
this release.
GNOME 2.18 for FreeBSD would not have been possible without the hard work
of the FreeBSD GNOME Team and our intrepid band of testers including
J. W. Ballantine, Pawel Worach, Yasuda Keisuke, Pascal Hofstee, miwi,
Yoshihiro Ota, Vladimir Grebenschikov, Jukka A. Ukkonen,
Phillip Neumann, Franz Klammer, and Neal Delmonico.
2007-03-19 06:14:07 +01:00
|
|
|
USE_LDCONFIG= ${PREFIX}/lib/nss
|
2001-12-19 10:30:28 +01:00
|
|
|
USE_GMAKE= yes
|
2002-11-18 04:10:30 +01:00
|
|
|
USE_PERL5_BUILD=yes
|
2001-12-19 10:30:28 +01:00
|
|
|
MAKE_ENV= BSD_LDOPTS="${PTHREAD_LIBS} -L${LOCALBASE}/lib" \
|
2008-03-20 13:51:36 +01:00
|
|
|
BUILD_OPT=1 NSS_ENABLE_ECC=1
|
2001-12-19 10:30:28 +01:00
|
|
|
ALL_TARGET= nss_build_all
|
2008-03-12 14:12:02 +01:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include/nspr -L${LOCALBASE}/lib
|
2001-12-19 10:30:28 +01:00
|
|
|
|
2005-07-31 02:06:49 +02:00
|
|
|
DIST= ${WRKSRC:H:H}/dist
|
2005-02-11 22:11:51 +01:00
|
|
|
|
2004-03-27 19:01:50 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-07-31 23:49:47 +02:00
|
|
|
.if ${ARCH} == "alpha" && ${OSVERSION} < 500035
|
|
|
|
IGNORE= core dumps on alpha during build
|
|
|
|
.endif
|
|
|
|
|
2006-01-25 00:37:03 +01:00
|
|
|
EXTERNALS= CVS dbm security/nss/cmd/zlib nsprpub security/dbm
|
2005-07-31 02:06:49 +02:00
|
|
|
EXTRACT_AFTER_ARGS=| ${TAR} -xf - \
|
|
|
|
${EXTERNALS:C,^,--exclude ${DISTNAME}/mozilla/,}
|
2004-03-27 19:01:50 +01:00
|
|
|
|
2005-07-31 02:06:49 +02:00
|
|
|
BINS=${DIST}/${OPSYS}${OSREL}_OPT.OBJ
|
|
|
|
|
Presenting GNOME 2.18 for FreeBSD. GNOME 2.18 is a departure from recent GNOME
releases in that it focuses more on stability and functionality than on
new features. Not that it doesn't have its share of new and exciting
items. See http://www.gnome.org/start/2.18/ for all the goodies in
this release.
GNOME 2.18 for FreeBSD would not have been possible without the hard work
of the FreeBSD GNOME Team and our intrepid band of testers including
J. W. Ballantine, Pawel Worach, Yasuda Keisuke, Pascal Hofstee, miwi,
Yoshihiro Ota, Vladimir Grebenschikov, Jukka A. Ukkonen,
Phillip Neumann, Franz Klammer, and Neal Delmonico.
2007-03-19 06:14:07 +01:00
|
|
|
INSTALL_BINS= certcgi certutil checkcert cmsutil crlutil derdump makepqg \
|
|
|
|
mangle modutil ocspclnt oidcalc p7content p7env p7sign \
|
|
|
|
p7verify pk12util rsaperf shlibsign signtool signver \
|
|
|
|
ssltap strsclnt symkeyutil vfychain vfyserv
|
|
|
|
|
2005-07-31 02:06:49 +02:00
|
|
|
test:
|
|
|
|
cd ${WRKSRC}/tests; \
|
|
|
|
${SETENV} PATH="${BINS}/bin:${PATH}" \
|
|
|
|
LD_LIBRARY_PATH="${BINS}/lib" \
|
|
|
|
./all.sh
|
|
|
|
@if ${GREP} -F '>Failed<' \
|
|
|
|
${WRKSRC:H:H}/tests_results/security/*/results.html; then \
|
|
|
|
echo "Some tests have failed. Let ${MAINTAINER} know."; \
|
|
|
|
exit 1; \
|
|
|
|
else \
|
|
|
|
echo "All tests succeeded. Good news."; \
|
|
|
|
fi
|
|
|
|
|
Presenting GNOME 2.18 for FreeBSD. GNOME 2.18 is a departure from recent GNOME
releases in that it focuses more on stability and functionality than on
new features. Not that it doesn't have its share of new and exciting
items. See http://www.gnome.org/start/2.18/ for all the goodies in
this release.
GNOME 2.18 for FreeBSD would not have been possible without the hard work
of the FreeBSD GNOME Team and our intrepid band of testers including
J. W. Ballantine, Pawel Worach, Yasuda Keisuke, Pascal Hofstee, miwi,
Yoshihiro Ota, Vladimir Grebenschikov, Jukka A. Ukkonen,
Phillip Neumann, Franz Klammer, and Neal Delmonico.
2007-03-19 06:14:07 +01:00
|
|
|
post-patch:
|
2007-12-11 20:27:53 +01:00
|
|
|
@${REINPLACE_CMD} -e "s|-pthread|${PTHREAD_LIBS}|g" \
|
Presenting GNOME 2.18 for FreeBSD. GNOME 2.18 is a departure from recent GNOME
releases in that it focuses more on stability and functionality than on
new features. Not that it doesn't have its share of new and exciting
items. See http://www.gnome.org/start/2.18/ for all the goodies in
this release.
GNOME 2.18 for FreeBSD would not have been possible without the hard work
of the FreeBSD GNOME Team and our intrepid band of testers including
J. W. Ballantine, Pawel Worach, Yasuda Keisuke, Pascal Hofstee, miwi,
Yoshihiro Ota, Vladimir Grebenschikov, Jukka A. Ukkonen,
Phillip Neumann, Franz Klammer, and Neal Delmonico.
2007-03-19 06:14:07 +01:00
|
|
|
${WRKSRC:H:H}/security/coreconf/FreeBSD.mk
|
|
|
|
@${SED} -e 's|@exec_prefix@|${PREFIX}|; \
|
|
|
|
s|@includedir@|${PREFIX}/include/nss|; \
|
|
|
|
s|@libdir@|${PREFIX}/lib/nss|; \
|
|
|
|
s|@prefix@|${PREFIX}|' \
|
|
|
|
${FILESDIR}/nss-config.in >${WRKDIR}/nss-config
|
|
|
|
@${SED} -e 's|@PREFIX@|${PREFIX}|; s|@PORTVERSION@|${PORTVERSION}|' \
|
|
|
|
${FILESDIR}/nss.pc.in >${WRKDIR}/nss.pc
|
|
|
|
.for i in MAJOR MINOR PATCH
|
|
|
|
@${SED} -i.${i} -e 's|@${i}@|${_${i}}|' ${WRKDIR}/nss-config
|
|
|
|
.endfor
|
|
|
|
|
2001-12-19 10:30:28 +01:00
|
|
|
do-install:
|
Presenting GNOME 2.18 for FreeBSD. GNOME 2.18 is a departure from recent GNOME
releases in that it focuses more on stability and functionality than on
new features. Not that it doesn't have its share of new and exciting
items. See http://www.gnome.org/start/2.18/ for all the goodies in
this release.
GNOME 2.18 for FreeBSD would not have been possible without the hard work
of the FreeBSD GNOME Team and our intrepid band of testers including
J. W. Ballantine, Pawel Worach, Yasuda Keisuke, Pascal Hofstee, miwi,
Yoshihiro Ota, Vladimir Grebenschikov, Jukka A. Ukkonen,
Phillip Neumann, Franz Klammer, and Neal Delmonico.
2007-03-19 06:14:07 +01:00
|
|
|
${MKDIR} ${PREFIX}/include/nss ${PREFIX}/lib/nss
|
2001-12-19 10:30:28 +01:00
|
|
|
${TAR} -C ${DIST}/public --dereference -cf - . | \
|
|
|
|
${TAR} -C ${PREFIX}/include/nss -xf -
|
2006-09-03 01:34:03 +02:00
|
|
|
${INSTALL_DATA} ${DIST}/FreeBSD${OSREL:C/.$/*/}_OPT.OBJ/lib/*.so.1 \
|
Presenting GNOME 2.18 for FreeBSD. GNOME 2.18 is a departure from recent GNOME
releases in that it focuses more on stability and functionality than on
new features. Not that it doesn't have its share of new and exciting
items. See http://www.gnome.org/start/2.18/ for all the goodies in
this release.
GNOME 2.18 for FreeBSD would not have been possible without the hard work
of the FreeBSD GNOME Team and our intrepid band of testers including
J. W. Ballantine, Pawel Worach, Yasuda Keisuke, Pascal Hofstee, miwi,
Yoshihiro Ota, Vladimir Grebenschikov, Jukka A. Ukkonen,
Phillip Neumann, Franz Klammer, and Neal Delmonico.
2007-03-19 06:14:07 +01:00
|
|
|
${PREFIX}/lib/nss
|
2006-09-03 01:34:03 +02:00
|
|
|
${INSTALL_DATA} ${DIST}/FreeBSD${OSREL:C/.$/*/}_OPT.OBJ/lib/libcrmf.a \
|
Presenting GNOME 2.18 for FreeBSD. GNOME 2.18 is a departure from recent GNOME
releases in that it focuses more on stability and functionality than on
new features. Not that it doesn't have its share of new and exciting
items. See http://www.gnome.org/start/2.18/ for all the goodies in
this release.
GNOME 2.18 for FreeBSD would not have been possible without the hard work
of the FreeBSD GNOME Team and our intrepid band of testers including
J. W. Ballantine, Pawel Worach, Yasuda Keisuke, Pascal Hofstee, miwi,
Yoshihiro Ota, Vladimir Grebenschikov, Jukka A. Ukkonen,
Phillip Neumann, Franz Klammer, and Neal Delmonico.
2007-03-19 06:14:07 +01:00
|
|
|
${PREFIX}/lib/nss
|
|
|
|
.for bin in ${INSTALL_BINS}
|
|
|
|
${INSTALL_PROGRAM} ${DIST}/FreeBSD${OSREL:C/.$/*/}_OPT.OBJ/bin/${bin} \
|
|
|
|
${PREFIX}/bin
|
|
|
|
.endfor
|
2002-01-03 14:26:10 +01:00
|
|
|
cd ${DIST}/FreeBSD${OSREL:C/.$/*/}_OPT.OBJ/lib && \
|
Presenting GNOME 2.18 for FreeBSD. GNOME 2.18 is a departure from recent GNOME
releases in that it focuses more on stability and functionality than on
new features. Not that it doesn't have its share of new and exciting
items. See http://www.gnome.org/start/2.18/ for all the goodies in
this release.
GNOME 2.18 for FreeBSD would not have been possible without the hard work
of the FreeBSD GNOME Team and our intrepid band of testers including
J. W. Ballantine, Pawel Worach, Yasuda Keisuke, Pascal Hofstee, miwi,
Yoshihiro Ota, Vladimir Grebenschikov, Jukka A. Ukkonen,
Phillip Neumann, Franz Klammer, and Neal Delmonico.
2007-03-19 06:14:07 +01:00
|
|
|
${TAR} -cf - *.so | ${TAR} --unlink -C ${PREFIX}/lib/nss -xf -
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/nss-config ${PREFIX}/bin
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/nss.pc ${PREFIX}/libdata/pkgconfig
|
2001-12-19 10:30:28 +01:00
|
|
|
|
2004-03-27 19:01:50 +01:00
|
|
|
.include <bsd.port.post.mk>
|