summaryrefslogtreecommitdiffstats
path: root/security/newpki-lib/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'security/newpki-lib/Makefile')
-rw-r--r--security/newpki-lib/Makefile61
1 files changed, 61 insertions, 0 deletions
diff --git a/security/newpki-lib/Makefile b/security/newpki-lib/Makefile
new file mode 100644
index 0000000..45d0087
--- /dev/null
+++ b/security/newpki-lib/Makefile
@@ -0,0 +1,61 @@
+# New ports collection makefile for: newpki-lib
+# Date created: 2005-07-05
+# Whom: Vsevolod Stakhov <vsevolod@highsecure.ru>
+#
+# $FreeBSD$
+#
+
+PORTNAME= newpki-lib
+DISTVERSION= 2.0.0-beta4
+CATEGORIES= security devel
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= newpki
+
+MAINTAINER= vsevolod@highsecure.ru
+COMMENT= C++ PKI libraries from newpki project
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-2.0.0
+
+USE_OPENSSL= yes
+USE_GMAKE= yes
+USE_REINPLACE= yes
+INSTALLS_SHLIB= yes
+
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
+CONFIGURE_ARGS+= --includedir=${PREFIX}/include/newpki
+
+.if defined(WITHOUT_NLS)
+PLIST_SUB+= NLS="@comment "
+CONFIGURE_ARGS+= --disable-nls
+.else
+USE_GETTEXT= yes
+PLIST_SUB+= NLS=""
+CONFIGURE_ARGS+= --with-libintl-prefix=${LOCALBASE}
+.endif
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 500000
+USE_GCC= 3.4
+USE_INC_LIBTOOL_VER= 15
+
+patch-autotools:
+ @(cd ${PATCH_WRKSRC}; \
+ for file in ${LIBTOOLFILES}; do \
+ ${CP} $$file $$file.tmp; \
+ ${SED} -e "/^ltmain=/s^\$$ac_aux_dir/ltmain.sh^${LTMAIN}^g" \
+ $$file.tmp > $$file; \
+ ${RM} $$file.tmp; \
+ done);
+
+.else
+USE_LIBTOOL_VER= 15
+.endif
+
+pre-patch:
+ @${FIND} ${WRKSRC} -name '*.cpp' -or -name '*.h' | ${XARGS} ${REINPLACE_CMD} -e 's| ||g'
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
+
+.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud