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
107 lines
2.9 KiB
Makefile
107 lines
2.9 KiB
Makefile
# Created by: Roman Bogorodskiy
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= wzdftpd
|
|
PORTVERSION= 0.8.3
|
|
PORTREVISION= 5
|
|
CATEGORIES= ftp ipv6
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-sources/${PORTNAME}-${PORTVERSION:R}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Modular FTP server configurable online using SITE commands
|
|
|
|
LICENSE= GPLv2 # (or later)
|
|
|
|
OPTIONS_DEFINE= ICONV IPV6 MYSQL PERL PGSQL SQLITE TCL DOCS
|
|
OPTIONS_RADIO= TLS ZEROCONF
|
|
OPTIONS_RADIO_TLS= GNUTLS OPENSSL
|
|
OPTIONS_RADIO_ZEROCONF= AVAHI HOWL
|
|
OPTIONS_DEFAULT= AVAHI GNUTLS
|
|
HOWL_DESC= Zeroconf support via Howl
|
|
|
|
OPTIONS_SUB= yes
|
|
|
|
USES= autoreconf gettext-tools libtool pkgconfig
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --sysconfdir=${ETCDIR} --without-pam --disable-bonjour
|
|
INSTALL_TARGET= install-strip
|
|
USE_LDCONFIG= yes
|
|
|
|
USE_RC_SUBR= wzdftpd
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LIBS+= -L${LOCALBASE}/lib
|
|
|
|
ICONV_CONFIGURE_ON= ${ICONV_CONFIGURE_ARG}
|
|
ICONV_CONFIGURE_OFF= --disable-utf8
|
|
ICONV_USES= iconv
|
|
|
|
TCL_CONFIGURE_ON= --with-tcl=${TCL_LIBDIR}
|
|
TCL_CONFIGURE_OFF= --without-tcl
|
|
TCL_USES= tcl
|
|
|
|
OPENSSL_CONFIGURE_ENABLE= openssl
|
|
OPENSSL_USE= OPENSSL=yes
|
|
|
|
GNUTLS_CONFIGURE_ENABLE= gnutls
|
|
GNUTLS_LIB_DEPENDS= libgnutls.so:${PORTSDIR}/security/gnutls
|
|
|
|
IPV6_CONFIGURE_ENABLE= ipv6
|
|
|
|
PERL_CONFIGURE_ENABLE= perl
|
|
PERL_USES= perl5
|
|
|
|
MYSQL_CONFIGURE_ENABLE= mysql
|
|
MYSQL_USE= MYSQL=yes
|
|
|
|
PGSQL_CONFIGURE_ON= --with-pgsql=${LOCALBASE}
|
|
PGSQL_CONFIGURE_OFF= --disable-pgsql
|
|
PGSQL_USES= pgsql
|
|
|
|
SQLITE_CONFIGURE_ENABLE= sqlite3
|
|
SQLITE_USE= SQLITE=3
|
|
|
|
AVAHI_CONFIGURE_ON= --with-zeroconf --enable-avahi
|
|
AVAHI_LIB_DEPENDS= libdbus-1.so:${PORTSDIR}/devel/dbus \
|
|
libavahi-core.so:${PORTSDIR}/net/avahi-app
|
|
|
|
HOWL_CONFIGURE_ON= --with-zeroconf --enable-howl
|
|
HOWL_CPPFLAGS= -I${LOCALBASE}/include/howl
|
|
HOWL_LIB_DEPENDS= libhowl.so:${PORTSDIR}/net/howl
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MAVAHI} || ${PORT_OPTIONS:MHOWL}
|
|
PLIST_SUB+= ZEROCONF=""
|
|
.else
|
|
PLIST_SUB+= ZEROCONF="@comment "
|
|
.endif
|
|
|
|
post-patch:
|
|
@${TOUCH} ${WRKSRC}/config.rpath
|
|
@${ECHO_CMD} "ACLOCAL_AMFLAGS= -I ac-helpers" >> ${WRKSRC}/Makefile.am
|
|
@${REINPLACE_CMD} -e \
|
|
'/LDFLAGS/s|@PTHREAD_CFLAGS@|@LTLIBICONV@|' \
|
|
${WRKSRC}/libwzd-core/Makefile.am
|
|
@${REINPLACE_CMD} -e \
|
|
's|INSTALLDIRS=vendor|INSTALLPRIVLIB=$${prefix}/lib| ; \
|
|
/MAKE/s| install| pure_install|' \
|
|
${WRKSRC}/libwzd-perl/Makefile.am
|
|
.for i in backends modules
|
|
@${FIND} ${WRKSRC}/${i} -name "Makefile.am" | ${XARGS} \
|
|
${REINPLACE_CMD} -e \
|
|
'/^libdir/s|$${pkgdatadir}|$${prefix}/lib/wzdftpd|'
|
|
.endfor
|
|
@${FIND} ${WRKSRC} -name "*_tls.c" | ${XARGS} ${REINPLACE_CMD} -e \
|
|
'/<gcrypt.h>/d ; \
|
|
/gcry_control/d' \
|
|
|
|
post-install:
|
|
(cd ${WRKSRC} && ${INSTALL_DATA} *.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig )
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.for i in AUTHORS ChangeLog NEWS Permissions.ReadMeFirst README \
|
|
TLS.ReadMeFirst UPGRADING wzd_tls.cnf
|
|
(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR})
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|