a374acb969
<file> on ELF systems, but this doesn't really do what -export-symbols is meant to do. On GNU ELF systems it converts <file> to a simple version script first and then uses -version-script instead of -retain-symbols-file. Let USES=libtool patch libtool scripts to do this on all systems with GNU ld(1). Bump PORTREVISION on all ports where the build log contains -export-symbols. audio/calf: This port builds a module that now exports only one function, but it also builds a number of executables that link to this module and expect to see other functions. Because it's already a bit dodgy to link to a module (libtool warns about this) let the module continue to export only one function and instead build an ordinary library from the same source that the executables can link to. Fix a number of other issues in the same Makefile.am and clean up the port Makefile. japanese/scim-honoka: Tries to hide all symbols that start with an underscore, but because this library is written in C++ all symbols start with _Z so it ends up hiding everything. Just don't hide anything at all like the textproc/scim configure script does. multimedia/schroedinger: Apply an upstream patch. textproc/scim-input-pad: Same as japanese/scim-honoka. PR: 201922 Approved by: portmgr (antoine) Exp-run by: antoine
74 lines
2 KiB
Makefile
74 lines
2 KiB
Makefile
# Created by: Sergei Kolobov <sergei@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= libpreludedb
|
|
PORTVERSION= 1.0.1p1
|
|
PORTREVISION= 10
|
|
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 # or later
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
LIB_DEPENDS= libltdl.so:${PORTSDIR}/devel/libltdl \
|
|
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
|
|
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,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}
|
|
.endif
|
|
.if ${PORT_OPTIONS:MPYTHON}
|
|
@${FIND} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} \
|
|
-name "*.so" | ${XARGS} ${STRIP_CMD}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|