Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / net / py-pcap / Makefile
blob83479c9c4edafb97409c1a15e49526b5c33f9103
1 # $NetBSD: Makefile,v 1.2 2012/10/23 17:19:03 asau Exp $
4 DISTNAME= pypcap-1.1
5 PKGNAME= ${PYPKGPREFIX}-pcap-1.1
6 PKGREVISION= 1
7 CATEGORIES= net python
8 MASTER_SITES= http://pypcap.googlecode.com/files/
10 MAINTAINER= pettai@NetBSD.org
11 HOMEPAGE= http://code.google.com/p/pypcap/
12 COMMENT= Simplified object-oriented python module for libpcap
13 LICENSE= modified-bsd
15 BUILD_DEPENDS+= ${PYPKGPREFIX}-pyrex-[0-9]*:../../lang/py-pyrex
17 SUBST_CLASSES+= python
18 SUBST_FILES.python= Makefile
19 SUBST_SED.python+= -e 's,@PYTHON@,${PYTHONBIN},g'
20 SUBST_STAGE.python= post-patch
21 SUBST_CLASSES+= prefix
22 SUBST_FILES.prefix= Makefile
23 SUBST_SED.prefix= -e "s|@PREFIX@|${PREFIX}|g"
24 SUBST_STAGE.prefix= post-patch
26 PYDISTUTILSPKG= yes
28 FILES_SUBST+= PYTHONBIN=${PYTHONBIN:Q}
30 pre-configure:
31 cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
32 pyrexc pcap.pyx
34 do-configure:
35 cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
36 ${PYTHONBIN} setup.py config
37 # --with-pcap=${PREFIX}
39 .include "../../net/libpcap/buildlink3.mk"
40 .include "../../lang/python/extension.mk"
41 .include "../../lang/python/application.mk"
42 .include "../../mk/bsd.pkg.mk"