openbsd-ports/net/py-pcapy/Makefile
fgsch d20b03a1d6 install doc under py-XXX making this ready for python 2 and 3.
benoit@ ok as part of a bigger diff sent to ports@.
2011-12-25 23:59:06 +00:00

36 lines
749 B
Makefile

# $OpenBSD: Makefile,v 1.9 2011/12/25 23:59:06 fgsch Exp $
COMMENT = libpcap module for Python
MODPY_EGG_VERSION = 0.10.5
DISTNAME = pcapy-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME}
REVISION = 6
CATEGORIES = net devel
HOMEPAGE = http://oss.coresecurity.com/projects/pcapy.html
# Apache
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
WANTLIB += ${MODPY_WANTLIB} m stdc++ pcap
MASTER_SITES = http://oss.coresecurity.com/repo/
MODULES = lang/python
NO_REGRESS = Yes
MAKE_ENV += LDSHARED="${CC} -shared -fPIC"
MAKE_ENV += LDFLAGS="-L${LOCALBASE}/lib"
# fix msdos line-endings
pre-patch:
cd ${WRKSRC}; perl -i -pe 's/\r$$//' `find . -type f`
.include <bsd.port.mk>