pkgsrc/net/py-pcap/Makefile
wiz aa67e11089 Mark packages as not ready for python-3.x where applicable;
either because they themselves are not ready or because a
dependency isn't. This is annotated by
PYTHON_VERSIONS_INCOMPATIBLE=  33 # not yet ported as of x.y.z
or
PYTHON_VERSIONS_INCOMPATIBLE=  33 # py-foo, py-bar
respectively, please use the same style for other packages,
and check during updates.

Use versioned_dependencies.mk where applicable.
Use REPLACE_PYTHON instead of handcoded alternatives, where applicable.
Reorder Makefile sections into standard order, where applicable.

Remove PYTHON_VERSIONS_INCLUDE_3X lines since that will be default
with the next commit.

Whitespace cleanups and other nits corrected, where necessary.
2014-01-25 10:29:56 +00:00

42 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.4 2014/01/25 10:30:17 wiz Exp $
DISTNAME= pypcap-1.1
PKGNAME= ${PYPKGPREFIX}-pcap-1.1
PKGREVISION= 1
CATEGORIES= net python
MASTER_SITES= http://pypcap.googlecode.com/files/
MAINTAINER= pettai@NetBSD.org
HOMEPAGE= http://code.google.com/p/pypcap/
COMMENT= Simplified object-oriented python module for libpcap
LICENSE= modified-bsd
BUILD_DEPENDS+= ${PYPKGPREFIX}-pyrex-[0-9]*:../../lang/py-pyrex
SUBST_CLASSES+= python
SUBST_FILES.python= Makefile
SUBST_SED.python+= -e 's,@PYTHON@,${PYTHONBIN},g'
SUBST_STAGE.python= post-patch
SUBST_CLASSES+= prefix
SUBST_FILES.prefix= Makefile
SUBST_SED.prefix= -e "s|@PREFIX@|${PREFIX}|g"
SUBST_STAGE.prefix= post-patch
PYDISTUTILSPKG= yes
PYTHON_VERSIONS_INCOMPATIBLE= 33 # py-pyrex
FILES_SUBST+= PYTHONBIN=${PYTHONBIN:Q}
pre-configure:
cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
pyrexc pcap.pyx
do-configure:
cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
${PYTHONBIN} setup.py config
# --with-pcap=${PREFIX}
.include "../../net/libpcap/buildlink3.mk"
.include "../../lang/python/extension.mk"
.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"