1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
freebsd-ports/security/libpreludedb/Makefile
William Grzybowski 3d526ec71f security/libpreludedb: support stage
- Use options helpers
- Add LICENSE
- Install stripped libs

PR:		193164
Submitted by:	Ports Fury
2014-08-31 13:34:18 +00:00

76 lines
2.0 KiB
Makefile

# Created by: Sergei Kolobov <sergei@FreeBSD.org>
# $FreeBSD$
PORTNAME= libpreludedb
PORTVERSION= 1.0.1p1
PORTREVISION= 7
CATEGORIES= security
MASTER_SITES= https://www.prelude-ids.org/attachments/download/287/
MAINTAINER= ports@FreeBSD.org
COMMENT= Framework library for access to Prelude NIDS database
LICENSE= GPLv2
LIB_DEPENDS= libgmp.so:${PORTSDIR}/math/gmp \
libgnutls.so:${PORTSDIR}/security/gnutls \
libgcrypt.so:${PORTSDIR}/security/libgcrypt \
libgpg-error.so:${PORTSDIR}/security/libgpg-error \
libprelude.so:${PORTSDIR}/security/libprelude \
libnettle.so:${PORTSDIR}/security/nettle \
libp11-kit.so:${PORTSDIR}/security/p11-kit
USES= gettext gmake iconv libtool
USE_AUTOTOOLS= libltdl
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-gtk-doc=no \
--with-html-dir=${PREFIX}/share/doc
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
PORTDOCS= *
OPTIONS_DEFINE= DOCS PERL PYTHON
OPTIONS_MULTI= DB
OPTIONS_MULTI_DB= MYSQL PGSQL SQLITE
OPTIONS_DEFAULT= MYSQL
OPTIONS_SUB= yes
MYSQL_DESC= MySQL plugin
MYSQL_USE= mysql=yes
MYSQL_CONFIGURE_WITH= mysql
PERL_DESC= Perl bindings
PERL_USES= perl5
PERL_USE= perl5=build,fixpacklist,run
PERL_CONFIGURE_WITH= perl
PGSQL_DESC= PostgreSQL plugin
PGSQL_USES= pgsql
PGSQL_CONFIGURE_WITH= postgresql
PYTHON_USES= python
PYTHON_CONFIGURE_WITH= python
PYTHON_PLIST_SUB= PYTHON_VER="${PYTHON_VER}"
SQLITE_DESC= SQLite3 plugin
SQLITE_USE= sqlite=yes
SQLITE_CONFIGURE_WITH= sqlite3
.include <bsd.port.options.mk>
post-install:
(cd ${WRKSRC}/docs/manpages && ${INSTALL_MAN} *.1 \
${STAGEDIR}${MAN1PREFIX}/man/man1)
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/docs/api/html && ${INSTALL_DATA} * \
${STAGEDIR}${DOCSDIR})
.if ${PORT_OPTIONS:MPERL}
@${FIND} ${STAGEDIR}${PREFIX}/lib/perl5 \
-name "*.so" | ${XARGS} ${STRIP_CMD}
@${FIND} ${STAGEDIR}${PREFIX}/lib/perl5 \
-name "perllocal.pod*" -delete
.endif
.if ${PORT_OPTIONS:MPYTHON}
@${FIND} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} \
-name "*.so" | ${XARGS} ${STRIP_CMD}
.endif
.include <bsd.port.mk>