freebsd-ports/net/gnu-dico/Makefile
Mathieu Arnold 60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00

102 lines
2.2 KiB
Makefile

# Created by: Goran Tal
# $FreeBSD$
PORTNAME= dico
PORTVERSION= 2.2
PORTREVISION= 6
CATEGORIES= net textproc
MASTER_SITES= GNU
PKGNAMEPREFIX= gnu-
MAINTAINER= goran.tal@gmail.com
COMMENT= Flexible modular implementation of DICT server
LIB_DEPENDS= libltdl.so:${PORTSDIR}/devel/libltdl
USE_LDCONFIG= yes
USES= tar:xz gmake libtool
GNU_CONFIGURE= yes
CFLAGS+= -Wno-error=return-type
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS= --localstatedir=/var
OPTIONS_DEFINE= PYTHON GUILE PCRE GSASL PAM LDAP
OPTIONS_DEFAULT= PYTHON GUILE PCRE
GSASL_DESC= GSASL support
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MPYTHON}
USES+= python
CONFIGURE_ENV+= PYTHON_CONFIG=${PYTHON_CMD}-config
PLIST_SUB+= PYTHON=""
.else
CONFIGURE_ARGS+=--without-python
PLIST_SUB+= PYTHON="@comment "
.endif
.if ${PORT_OPTIONS:MGUILE}
LIB_DEPENDS+= libguile.so:${PORTSDIR}/lang/guile
PLIST_SUB+= GUILE=""
.else
CONFIGURE_ARGS+=--without-guile
PLIST_SUB+= GUILE="@comment "
.endif
.if ${PORT_OPTIONS:MPCRE}
LIB_DEPENDS+= libpcre.so:${PORTSDIR}/devel/pcre
PLIST_SUB+= PCRE=""
.else
CONFIGURE_ARGS+=--without-pcre
PLIST_SUB+= PCRE="@comment "
.endif
.if ${PORT_OPTIONS:MGSASL}
LIB_DEPENDS+= libgsasl.so:${PORTSDIR}/security/gsasl
CONFIGURE_ARGS+=--with-gsasl
.else
CONFIGURE_ARGS+=--without-gsasl
.endif
.if ${PORT_OPTIONS:MPAM}
PLIST_SUB+= PAM=""
CONFIGURE_ARGS+=--enable-pam
.else
PLIST_SUB+= PAM="@comment "
CONFIGURE_ARGS+=--disable-pam
.endif
.if ${PORT_OPTIONS:MLDAP}
USE_OPENLDAP= yes
PLIST_SUB+= LDAP=""
.else
CONFIGURE_ARGS+=--without-ldap
PLIST_SUB+= LDAP="@comment "
.endif
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif
INFO= dico
PLIST_SUB+= PORTVERSION=${PORTVERSION}
SUB_FILES+= pkg-message
USE_RC_SUBR= dicod
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} 's/python-config/$${PYTHON_CONFIG}/' ${WRKSRC}/configure
post-install:
@${INSTALL_DATA} ${FILESDIR}/dicod.conf ${STAGEDIR}${PREFIX}/etc/dicod.conf.sample
.include <bsd.port.mk>