openbsd-ports/net/py-libpcap/Makefile

39 lines
798 B
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.18 2007/10/08 08:22:42 steven Exp $
SHARED_ONLY= Yes
COMMENT= libpcap bindings for Python
2005-12-03 17:03:44 -05:00
DISTNAME= pylibpcap-0.5.1
PKGNAME= ${DISTNAME:S/py/py-/}p1
CATEGORIES= net
HOMEPAGE= http://pylibpcap.sourceforge.net/
# BSD
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
2004-12-15 19:31:20 -05:00
WANTLIB= pcap
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pylibpcap/}
2004-08-04 15:14:30 -04:00
MODULES= lang/python
BUILD_DEPENDS= :swig-*:devel/swig
2002-10-27 20:38:44 -05:00
NO_REGRESS= Yes
EXAMPLESDIR= ${PREFIX}/share/examples/py-libpcap
2005-12-03 17:03:44 -05:00
pre-build:
@perl -p -i -e "s,^(\#\S+ )python2\$$,#!${LOCALBASE}/bin/python${MODPY_VERSION}," \
${WRKSRC}/examples/*.py
post-install:
${INSTALL_DATA_DIR} ${EXAMPLESDIR}
2005-12-03 17:03:44 -05:00
${INSTALL_SCRIPT} ${WRKSRC}/examples/*.py ${EXAMPLESDIR}
.include <bsd.port.mk>