37 lines
716 B
Makefile
37 lines
716 B
Makefile
# $OpenBSD: Makefile,v 1.6 2010/11/11 16:27:55 espie Exp $
|
|
|
|
SHARED_ONLY= Yes
|
|
|
|
COMMENT= python interface to adns
|
|
|
|
V= 1.2.1
|
|
DISTNAME= adns-python-$V
|
|
PKGNAME= py-adns-$V
|
|
REVISION= 1
|
|
|
|
HOMEPAGE= http://adns-python.googlecode.com/
|
|
|
|
# GPLv2
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MASTER_SITES= ${HOMEPAGE}/files/
|
|
|
|
MODULES= lang/python
|
|
CATEGORIES = net
|
|
|
|
LIB_DEPENDS= ::net/adns
|
|
WANTLIB = adns
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
pre-configure:
|
|
perl -pi -e 's,!!PREFIX!!,${PREFIX},g' ${WRKSRC}/setup.py
|
|
find ${WRKSRC} -name \*.py | \
|
|
xargs perl -pi -e 's,/usr/bin/env python,${MODPY_BIN},g;' \
|
|
-e 's,/usr/bin/python,${MODPY_BIN},g'
|
|
|
|
.include <bsd.port.mk>
|