sthen 3cbe1c2f30 Reverse the polarity of MODPY_VERSION; default is now 3.x,
if a port needs 2.x then set MODPY_VERSION=${MODPY_DEFAULT_VERSION_2}.

This commit doesn't change any versions currently used; it may be that
some ports have MODPY_DEFAULT_VERSION_2 but don't require it, those
should be cleaned up in the course of updating ports where possible.

Python module ports providing py3-* packages should still use
FLAVOR=python3 so that we don't have a mixture of dependencies some
using ${MODPY_FLAVOR} and others not.
2021-02-23 19:39:08 +00:00

54 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.10 2021/02/23 19:39:31 sthen Exp $
COMMENT = GNU dictionary server
V = 2.10
DISTNAME = dico-$V
SHARED_LIBS += dico 0.0 # 2.0
CATEGORIES = net
HOMEPAGE = https://puszcza.gnu.org.ua/software/dico/
MAINTAINER = Anthony J. Bentley <anthony@anjbe.name>
# GPLv3+
PERMIT_PACKAGE = Yes
WANTLIB += c crypto curses gsasl iconv idn intl lber-2.4 ldap-2.4
WANTLIB += ltdl pam pcre readline sasl2 ssl z
MASTER_SITES = ${MASTER_SITE_GNU:=dico/}
MODULES = lang/python
LIB_DEPENDS = databases/openldap \
devel/gettext,-runtime \
devel/libtool,-ltdl \
devel/pcre \
security/libgsasl \
security/openpam
# soelim(1)
BUILD_DEPENDS += textproc/groff
USE_GMAKE = Yes
CONFIGURE_STYLE = gnu
CONFIGURE_ENV = CPPFLAGS=-I${LOCALBASE}/include \
LDFLAGS=-L${LOCALBASE}/lib \
PYTHON=python${MODPY_VERSION} \
PYTHON_CONFIG=python${MODPY_VERSION}-config \
DEFAULT_PIDFILE_NAME="${LOCALSTATEDIR}/dicod/dicod.pid"
CONFIGURE_ARGS = --without-wordnet
LIBTOOL_FLAGS = --tag=disable-static
SUBST_VARS += V
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/dico
${SUBST_CMD} -m 444 -c ${FILESDIR}/dicod.conf \
${PREFIX}/share/examples/dico/dicod.conf
.include <bsd.port.mk>