54a0b86543
in bsd.autotools.mk essentially makes this a no-op given that all the old variables set a USE_AUTOTOOLS_COMPAT variable, which is parsed in exactly the same way as USE_AUTOTOOLS itself. Moreover, USE_AUTOTOOLS has already been extensively tested by the GNOME team -- all GNOME 2.12.x ports use it. Preliminary documentation can be found at: http://people.FreeBSD.org/~ade/autotools.txt which is in the process of being SGMLized before introduction into the Porters Handbook. Light blue touch-paper. Run.
62 lines
1.5 KiB
Makefile
62 lines
1.5 KiB
Makefile
# New ports collection makefile for: newpki-lib
|
|
# Date created: 2005-07-05
|
|
# Whom: Vsevolod Stakhov <vsevolod@highsecure.ru>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= newpki-server
|
|
DISTVERSION= 2.0.0-beta4
|
|
CATEGORIES= security
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= newpki
|
|
|
|
MAINTAINER= vsevolod@FreeBSD.org
|
|
COMMENT= C++ PKI server from newpki project
|
|
|
|
LIB_DEPENDS= newpki.2:${PORTSDIR}/security/newpki-lib
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-2.0.0
|
|
|
|
USE_AUTOTOOLS= libtool:15
|
|
USE_ICONV= yes
|
|
USE_OPENSSL= yes
|
|
USE_GMAKE= yes
|
|
USE_MYSQL= yes
|
|
USE_OPENLDAP= yes
|
|
USE_REINPLACE= yes
|
|
MANCOMPRESSED= yes
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -DLDAP_DEPRECATED" LDFLAGS="-L${LOCALBASE}/lib"
|
|
CONFIGURE_ARGS+= --with-newpki-include=${LOCALBASE}/include/newpki \
|
|
--with-newpki-lib=${LOCALBASE}/lib \
|
|
--with-mysql-lib=${LOCALBASE}/lib/mysql \
|
|
--with-libiconv-prefix=${LOCALBASE} \
|
|
--program-transform-name=
|
|
|
|
MAN1= newpki-server.1
|
|
|
|
.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
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure \
|
|
${WRKSRC}/publication/ldap/configure
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/conf/config.conf ${PREFIX}/etc/newpki.conf.sample
|
|
${INSTALL_MAN} ${WRKSRC}/docs/newpki-server.1.gz ${MAN1PREFIX}/man/man1
|
|
|
|
.include <bsd.port.post.mk>
|