aboutsummaryrefslogtreecommitdiffstats
path: root/net/py-adns/Makefile
blob: 83e40776422b6df3fd380d6bf2b3ac8a2b5d3a39 (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
32
33
34
35
36
# New ports collection makefile for:    py-adns
# Date created:     24 February 2002
# Whom:         Hye-Shik Chang <perky@fallin.lv>
#
# $FreeBSD$
#

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

MAINTAINER= perky@fallin.lv

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

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

.include <bsd.port.pre.mk>

post-patch:
.if ${OSVERSION} < 500036
    @${PERL} -pi -e 's|^(include_dirs = ).*$$|\1\["${LOCALBASE}/include"\]|g; \
        s|^(library_dirs = ).*$$|\1\["${LOCALBASE}/lib"\]|g' \
        ${WRKSRC}/setup.py
.else
    @${SED} -i.orig -e 's|^\(include_dirs = \).*$$|\1\["${LOCALBASE}/include"\]|g' \
        -e 's|^\(library_dirs = \).*$$|\1\["${LOCALBASE}/lib"\]|g' \
        ${WRKSRC}/setup.py
.endif

.include <bsd.port.post.mk>