1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00
freebsd-ports/net-mgmt/netxms/Makefile
Tijl Coosemans a374acb969 By default libtool replaces -export-symbols <file> with -retain-symbols-file
<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
2015-08-02 15:03:19 +00:00

94 lines
2.2 KiB
Makefile

# Created by: Vladimir Ermakov <samflanker@gmail.com>
# $FreeBSD$
PORTNAME= netxms
PORTVERSION= 1.2.17
PORTREVISION= 1
CATEGORIES= net-mgmt
MASTER_SITES= http://www.netxms.org/download/ \
http://www.netxms.org/download/archive/
MAINTAINER= bofh@FreeBSD.org
COMMENT= Network monitoring system
LICENSE= GPLv2 LGPL21
LICENSE_COMB= multi
PORTSCOUT= limit:^1\.
OPTIONS_DEFINE= SERVER CLIENT AGENT
OPTIONS_DEFAULT= CLIENT AGENT
SERVER_ENABLED_MODULES= MYSQL
SERVER_DISABLED_MODULES= PGSQL SQLITE ODBC
OPTIONS_SINGLE= SERVER
OPTIONS_SINGLE_SERVER= ${SERVER_ENABLED_MODULES} ${SERVER_DISABLED_MODULES}
OPTIONS_SUB= yes
SERVER_DESC= Install NetXMS server & agent
CLIENT_DESC= Install NetXMS client
AGENT_DESC= Install NetXMS agent
CLIENT_CONFIGURE_ON= --with-client
AGENT_CONFIGURE_ON= --with-agent
SERVER_CONFIGURE_ON= --with-server
MYSQL_CONFIGURE_ON= --with-mysql
MYSQL_USE= MYSQL=yes
PGSQL_CONFIGURE_ON= --with-pgsql
PGSQL_USES= pgsql
SQLITE_CONFIGURE_ON= --with-sqlite
SQLITE_USE= SQLITE=yes
ODBC_CONFIGURE_ON= --with-odbc
ODBC_LIB_DEPENDS= libodbc.so:${PORTSDIR}/databases/unixODBC
USE_OPENSSL= yes
USES= gmake iconv libtool perl5
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-silent-rules \
--with-internal-libjansson \
--with-internal-libtre
USE_LDCONFIG= yes
INSTALL_TARGET= install-strip
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
USERS= netxms
GROUPS= netxms
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MSERVER} || ${PORT_OPTIONS:MCLIENT}
PLIST_SUB+= NXMAP=""
.else
PLIST_SUB+= NXMAP="@comment "
.endif
.if ${PORT_OPTIONS:MSERVER} || ${PORT_OPTIONS:MAGENT}
PLIST_SUB+= NXCP=""
.else
PLIST_SUB+= NXCP="@comment "
.endif
.if ${PORT_OPTIONS:MSERVER}
USE_RC_SUBR+= netxmsd
.if !${PORT_OPTIONS:MAGENT}
USE_RC_SUBR+= nxagentd
.endif
.endif
.if ${PORT_OPTIONS:MAGENT}
USE_RC_SUBR+= nxagentd
.endif
post-install:
.if ${PORT_OPTIONS:MSERVER}
.if !exists(${STAGEDIR}${PREFIX}/etc/netxmsd.conf.sample)
${CP} ${WRKSRC}/contrib/netxmsd.conf-dist ${STAGEDIR}${PREFIX}/etc/netxmsd.conf.sample
.endif
.endif
.if ${PORT_OPTIONS:MSERVER} || ${PORT_OPTIONS:MAGENT}
.if !exists(${STAGEDIR}${PREFIX}/etc/nxagentd.conf.sample)
${CP} ${WRKSRC}/contrib/nxagentd.conf-dist ${STAGEDIR}${PREFIX}/etc/nxagentd.conf.sample
.endif
.endif
.include <bsd.port.mk>