mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-19 00:13:33 +00:00
77d68471ad
PR: 267994 Differential revision: D37518 Approved by: bapt
26 lines
612 B
Makefile
26 lines
612 B
Makefile
PORTNAME= pypcap
|
|
PORTVERSION= 1.3.0
|
|
CATEGORIES= net python
|
|
MASTER_SITES= PYPI
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
COMMENT= Simplified object-oriented Python wrapper for libpcap
|
|
WWW= https://github.com/pynetwork/pypcap
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
USES= python:3.6+
|
|
USE_PYTHON= autoplist concurrent cython distutils
|
|
|
|
# PR 239725: workaround to avoid using /usr/lib32 over /usr/lib
|
|
LDFLAGS+= -L/usr/lib
|
|
|
|
pre-configure:
|
|
cd ${WRKSRC} && cython-${PYTHON_VER} pcap.pyx
|
|
|
|
post-install:
|
|
${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
|
|
|
|
.include <bsd.port.mk>
|