3186e08e7c
ports to build against it. Most changes are rather minor and mechanical except for the devel/gdb (obtained via their bugtracker [1], courtesy of Doug Evans). One port (science/meep) I had to mark BROKEN after fixing it proved to be very tedious and actually unreliable. It is very old, there are newer versions available so it should be fixed by updating. One port (devel/libruin) had revealed a bug in the new Guile code (an auxiliary script, really) that had to be worked-round; reference to the problematic upstream commit is provided in the patch. PR: 229613 Exp-run by: antoine [1] https://sourceware.org/bugzilla/show_bug.cgi?id=21104#c8
66 lines
1.6 KiB
Makefile
66 lines
1.6 KiB
Makefile
# Created by: Goran Tal
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= dico
|
|
PORTVERSION= 2.7
|
|
PORTREVISION= 2
|
|
CATEGORIES= net textproc
|
|
MASTER_SITES= GNU
|
|
PKGNAMEPREFIX= gnu-
|
|
|
|
MAINTAINER= goran.tal@gmail.com
|
|
COMMENT= Flexible modular implementation of DICT server
|
|
|
|
LIB_DEPENDS= libltdl.so:devel/libltdl
|
|
|
|
USE_LDCONFIG= yes
|
|
USES= tar:xz gmake libtool localbase pkgconfig
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
INFO= dico
|
|
|
|
PLIST_SUB= PORTVERSION=${PORTVERSION}
|
|
SUB_FILES= pkg-message
|
|
USE_RC_SUBR= dicod
|
|
|
|
OPTIONS_DEFINE= PYTHON GUILE PCRE GSASL PAM LDAP NLS
|
|
OPTIONS_DEFAULT= PYTHON PCRE
|
|
OPTIONS_SUB= yes
|
|
GSASL_DESC= GSASL support
|
|
|
|
PYTHON_USES= python
|
|
PYTHON_CONFIGURE_ENV= PYTHON_CONFIG=${PYTHON_CMD}-config
|
|
PYTHON_CONFIGURE_OFF= --without-python
|
|
|
|
GUILE_LIB_DEPENDS= libguile-2.2.so:lang/guile2
|
|
GUILE_CONFIGURE_OFF= --without-guile
|
|
|
|
PCRE_LIB_DEPENDS= libpcre.so:devel/pcre
|
|
PCRE_CONFIGURE_OFF= --without-pcre
|
|
|
|
GSASL_LIB_DEPENDS= libgsasl.so:security/gsasl
|
|
GSASL_CONFIGURE_WITH= gsasl
|
|
|
|
PAM_CONFIGURE_ENABLE= pam
|
|
|
|
LDAP_USE= OPENLDAP=yes
|
|
LDAP_CONFIGURE_OFF= --without-ldap
|
|
|
|
NLS_USES= gettext
|
|
NLS_CONFIGURE_ENABLE= nls
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} 's/@bindir@/@sbindir@/' ${WRKSRC}/dicod/Makefile.in
|
|
@${REINPLACE_CMD} 's/(bindir)..dir/&\/gdico/' ${WRKSRC}/dico/Makefile.in
|
|
@${REINPLACE_CMD} '/INSTALL.*charset/d' ${WRKSRC}/gnu/Makefile.in
|
|
@${REINPLACE_CMD} \
|
|
-e 's/mu_check_lib_save_LIBS/LIBS/' \
|
|
-e 's/python-config/$${PYTHON_CONFIG}/' \
|
|
${WRKSRC}/configure
|
|
@${REINPLACE_CMD} 's/mergesort/xmergesort/' ${WRKSRC}/lib/mergesort.c
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${FILESDIR}/dicod.conf ${STAGEDIR}${PREFIX}/etc/dicod.conf.sample
|
|
|
|
.include <bsd.port.mk>
|