openbsd-ports/devel/py-mxDateTime/Makefile
rpointel 971bb4763a Update mxDatetime to 3.2.1.
looks good jasper@ aja@, ok sthen@.
2011-11-13 17:32:12 +00:00

44 lines
1.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.34 2011/11/13 17:32:12 rpointel Exp $
SHARED_ONLY = Yes
COMMENT = date and time types for Python
MODPY_EGG_VERSION = 3.2.1
DISTNAME = egenix-mx-base-${MODPY_EGG_VERSION}
PKGNAME = py-mxDateTime-${MODPY_EGG_VERSION}
CATEGORIES = devel
HOMEPAGE = http://www.egenix.com/products/python/mxBase/
# eGenix.com Public License Agreement
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
MASTER_SITES = http://downloads.egenix.com/python/
FLAVORS = python2.4 python2.7 # 2.4 needed for Zope, e.g.
FLAVOR ?= python2.7
WANTLIB += m ${MODPY_WANTLIB}
.if !${FLAVOR} || ${FLAVOR:L:Npython?.?}
ERRORS += "Fatal: You must select one version: ${FLAVORS}"
.endif
MODPY_VERSION = ${FLAVOR:S/python//}
MODULES = lang/python
NO_REGRESS = Yes
# Avoid collisions with libc' bm_free
post-configure:
@perl -pi -e 's|bm_free|mxbm_free|g' \
${WRKSRC}/mx/TextTools/mxTextTools/mxbmse.[ch] \
${WRKSRC}/mx/TextTools/mxTextTools/mxTextTools.c
.include <bsd.port.mk>