sthen 0b4ca0c81e fix build following network header changes
note that this hasn't been updated since import in 2004 and seems un-
maintained upstream, so is a candidate for removal (especially if there
are any difficult changes in base) if nobody speaks up
2014-01-28 13:31:18 +00:00

40 lines
933 B
Makefile

# $OpenBSD: Makefile,v 1.16 2014/01/28 13:31:18 sthen Exp $
COMMENT= specific Python bindings for OpenBSD
V= 0.1.2
DISTNAME= pyopenbsd-${V}
PKGNAME= py-openbsd-${V}
REVISION= 13
CATEGORIES= devel
HOMEPAGE= http://dev.nullcube.com/
MAINTAINER= Aldo Cortesi <aldo@nullcube.com>
# BSD
PERMIT_PACKAGE_CDROM= Yes
WANTLIB= kvm pcap
WANTLIB+= ${MODPY_WANTLIB}
MASTER_SITES= http://spacehopper.org/mirrors/
EXTRACT_SUFX= .tgz
MODULES= lang/python
DOCSDIR= ${PREFIX}/share/doc/py-openbsd
EXAMPLESDIR= ${PREFIX}/share/examples/py-openbsd
post-install:
${INSTALL_DATA_DIR} ${DOCSDIR}
cd ${WRKSRC}/doc; tar cf - * | tar xf - -C ${DOCSDIR}
${INSTALL_DATA_DIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/*.py ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/README ${EXAMPLESDIR}
do-test: fake
@cd ${WRKSRC}/test && ${MAKE_ENV} \
PYTHONPATH=${WRKINST}${MODPY_SITEPKG} ${MODPY_BIN} ./run_all.py
.include <bsd.port.mk>