freebsd-ports/net/py-pcapy/Makefile
Muhammad Moinur Rahman 95274bf4f9 */*: Fix build with llvm16 on 13.2-STABLE
As like as HEAD(14.0-RELEASE) llvm16 was merged in base for 13.2-STABLE
with the OSVERSION 1302507.

- Utilize USE_CXXSTD=c++14 or similar solution where applicable
- Update conditionals to addtionally check for OSVERSION greater than
  1302507 and less than 1400000

Approved by:	portmgr (blanket)
Sponsored by:	The FreeBSD Foundation
2023-07-26 02:48:20 +02:00

31 lines
711 B
Makefile

PORTNAME= pcapy
PORTVERSION= 0.11.1
CATEGORIES= net python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= anastasios@mageirias.com
COMMENT= Python pcap extension
WWW= http://www.coresecurity.com/corelabs-research/open-source-tools/pcapy
LICENSE= APACHE11
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= python dos2unix
USE_PYTHON= autoplist distutils
CFLAGS+= --std=c++14
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
PORTDOCS= README pcapy.html
OPTIONS_DEFINE= DOCS
post-install:
@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/pcapy*.so
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>