2005-07-14 15:01:35 +02:00
|
|
|
# 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
|
|
|
|
|
2006-04-14 20:14:59 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2005-07-14 15:01:35 +02:00
|
|
|
COMMENT= C++ PKI libraries from newpki project
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-2.0.0
|
|
|
|
|
|
|
|
USE_OPENSSL= yes
|
|
|
|
USE_GMAKE= yes
|
2006-08-15 03:04:55 +02:00
|
|
|
USE_LDCONFIG= yes
|
2005-07-14 15:01:35 +02:00
|
|
|
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
CONFIGURE_ARGS+= --includedir=${PREFIX}/include/newpki
|
|
|
|
|
|
|
|
.if defined(WITHOUT_NLS)
|
2006-01-23 00:03:15 +01:00
|
|
|
BROKEN= "Does not build without gettext"
|
2005-07-14 15:01:35 +02:00
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
|
|
.else
|
|
|
|
USE_GETTEXT= yes
|
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
CONFIGURE_ARGS+= --with-libintl-prefix=${LOCALBASE}
|
|
|
|
.endif
|
|
|
|
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
2005-07-14 15:01:35 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} < 500000
|
|
|
|
USE_GCC= 3.4
|
|
|
|
.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>
|