1 # $NetBSD: Makefile,v 1.2 2012/10/23 17:19:03 asau Exp $
5 PKGNAME
= ${PYPKGPREFIX}-pcap-1.1
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
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
28 FILES_SUBST
+= PYTHONBIN
=${PYTHONBIN
:Q
}
31 cd
${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
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"