2011-12-25 18:59:06 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.9 2011/12/25 23:59:06 fgsch Exp $
|
2009-04-03 11:45:41 -04:00
|
|
|
|
|
|
|
COMMENT = libpcap module for Python
|
|
|
|
|
|
|
|
MODPY_EGG_VERSION = 0.10.5
|
|
|
|
DISTNAME = pcapy-${MODPY_EGG_VERSION}
|
2010-07-12 18:07:37 -04:00
|
|
|
PKGNAME = py-${DISTNAME}
|
2011-12-25 18:59:06 -05:00
|
|
|
REVISION = 6
|
2009-04-03 11:45:41 -04:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2011-06-07 03:33:24 -04:00
|
|
|
WANTLIB += ${MODPY_WANTLIB} m stdc++ pcap
|
2009-04-03 11:45:41 -04:00
|
|
|
|
|
|
|
MASTER_SITES = http://oss.coresecurity.com/repo/
|
|
|
|
|
|
|
|
MODULES = lang/python
|
|
|
|
|
|
|
|
NO_REGRESS = Yes
|
|
|
|
|
2009-04-08 05:09:23 -04:00
|
|
|
MAKE_ENV += LDSHARED="${CC} -shared -fPIC"
|
2011-06-07 03:33:24 -04:00
|
|
|
MAKE_ENV += LDFLAGS="-L${LOCALBASE}/lib"
|
2009-04-08 05:09:23 -04:00
|
|
|
|
2009-04-03 11:45:41 -04:00
|
|
|
# fix msdos line-endings
|
|
|
|
pre-patch:
|
|
|
|
cd ${WRKSRC}; perl -i -pe 's/\r$$//' `find . -type f`
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|