openbsd-ports/databases/py-sybase/Makefile
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

40 lines
929 B
Makefile

# $OpenBSD: Makefile,v 1.27 2021/02/23 19:39:12 sthen Exp $
COMMENT= Python interface to the Sybase relational database system
DISTNAME= sybase-0.37
PKGNAME= py-${DISTNAME}
CATEGORIES= databases
REVISION= 0
HOMEPAGE= http://www.object-craft.com.au/projects/sybase/
MASTER_SITES= ${HOMEPAGE}download/
# BSD
PERMIT_PACKAGE= Yes
WANTLIB = ${MODPY_WANTLIB}
WANTLIB += ct iconv intl pthread
MODULES= lang/python
MODPY_VERSION = ${MODPY_DEFAULT_VERSION_2}
MODPY_DISTUTILS_BUILD= build_ext
MODPY_DISTUTILS_BUILDARGS= -D HAVE_FREETDS=61
LIB_DEPENDS = databases/freetds
MAKE_ENV= SYBASE="${LOCALBASE}"
NO_TEST= Yes
EXAMPLESDIR= ${PREFIX}/share/examples/py-sybase
post-install:
${INSTALL_DATA_DIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/README ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/timeout.readme ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/*.{py,sql} ${EXAMPLESDIR}
.include <bsd.port.mk>