aboutsummaryrefslogtreecommitdiffstats
path: root/dns/py-adns/Makefile
blob: 93b5eced4d135d579923cb4f3bc6f792d3515f14 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# New ports collection makefile for:    py-adns
# Date created:     24 February 2002
# Whom:         Hye-Shik Chang <perky@fallin.lv>
#
# $FreeBSD$
#

PORTNAME=   adns
PORTVERSION=    1.1.0
PORTREVISION=   1
CATEGORIES= dns python
MASTER_SITES=   http://dustman.net/andy/python/adns-python/${PORTVERSION}/
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   adns-python-${PORTVERSION}

MAINTAINER= perky@FreeBSD.org
COMMENT=    A Python Interface to adns, the asynchronous DNS library

LIB_DEPENDS=    adns.1:${PORTSDIR}/dns/adns

USE_PYTHON= yes
USE_PYDISTUTILS=    yes
PLIST_SUB+= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S/^${LOCALBASE}\///g}

post-patch:
    @${REINPLACE_CMD} -e 's|^\(include_dirs = \).*$$|\1\["${LOCALBASE}/include"\]|g' \
        -e 's|^\(library_dirs = \).*$$|\1\["${LOCALBASE}/lib"\]|g' \
        -e 's|\(extra_objects=.*\)$$|\1define_macros=[("adns__rrt_typemask","adns_rrt_typemask")],|g' \
        ${WRKSRC}/setup.py

.include <bsd.port.mk>