Files
ports/net/gnu-dico/Makefile
T
Muhammad Moinur Rahman 6e1233be22 Mk/**ldap.mk: Convert USE_LDAP to USES=ldap
Convert the USE_LDAP=yes to USES=ldap and adds the following features:

- Adds the argument USES=ldap:server to add openldap2{4|5|6}-server as
  RUN_DEPENDS
- Adds the argument USES=ldap<version> and replaces WANT_OPENLDAP_VER
- Adds OPENLDAP versions in bsd.default-versions.mk
- Adds USE_OPENLDAP/WANT_OPENLDAP_VER in Mk/bsd.sanity.mk
- Changes consumers to use the features

Reviewed by:	delphij
Approved by:	portmgr
Differential Revision: https://reviews.freebsd.org/D38233
2023-02-08 04:53:56 -06:00

68 lines
1.5 KiB
Makefile

PORTNAME= dico
PORTVERSION= 2.10
PORTREVISION= 1
CATEGORIES= net textproc
MASTER_SITES= GNU
PKGNAMEPREFIX= gnu-
MAINTAINER= info@dikt.tv
COMMENT= Flexible modular implementation of DICT server
WWW= https://www.gnu.org/software/dico/
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libltdl.so:devel/libltdl
USES= gmake libtool localbase pkgconfig tar:xz
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
INFO= dico
LDFLAGS+= -lthr
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
GSASL_LIB_DEPENDS= libgsasl.so:security/libgsasl
GSASL_CONFIGURE_WITH= gsasl
GUILE_LIB_DEPENDS= libguile-2.2.so:lang/guile2
GUILE_CONFIGURE_OFF= --without-guile
LDAP_USES= ldap
LDAP_CONFIGURE_OFF= --without-ldap
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls
PAM_CONFIGURE_ENABLE= pam
PCRE_LIB_DEPENDS= libpcre.so:devel/pcre
PCRE_CONFIGURE_OFF= --without-pcre
PYTHON_USES= python
PYTHON_CONFIGURE_ENV= PYTHON_CONFIG=${PYTHON_CMD}-config
PYTHON_CONFIGURE_OFF= --without-python
post-patch:
@${REINPLACE_CMD} 's/@bindir@/@sbindir@/' ${WRKSRC}/dicod/Makefile.in
@${REINPLACE_CMD} 's/(bindir)..dir/&\/gdico/' ${WRKSRC}/dico/Makefile.in
@${REINPLACE_CMD} \
-e 's/mu_check_lib_save_LIBS/LIBS/' \
-e 's/python-config/$${PYTHON_CONFIG}/' \
${WRKSRC}/configure
post-install:
${INSTALL_DATA} ${FILESDIR}/dicod.conf ${STAGEDIR}${PREFIX}/etc/dicod.conf.sample
.include <bsd.port.mk>