32 lines
574 B
Makefile
32 lines
574 B
Makefile
# $OpenBSD: Makefile,v 1.8 2019/07/12 20:48:46 sthen Exp $
|
|
|
|
COMMENT = portable network interface information
|
|
|
|
CATEGORIES = net
|
|
|
|
MODPY_EGG_VERSION = 0.10.9
|
|
DISTNAME = netifaces-${MODPY_EGG_VERSION}
|
|
PKGNAME = py-${DISTNAME}
|
|
REVISION = 0
|
|
|
|
# MIT
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
WANTLIB += pthread ${MODPY_WANTLIB}
|
|
|
|
MODULES = lang/python
|
|
|
|
FLAVORS = python3
|
|
FLAVOR ?=
|
|
|
|
MODPY_PI = Yes
|
|
MODPY_SETUPTOOLS = Yes
|
|
|
|
TEST_DEPENDS = ${BUILD_PKGPATH}
|
|
|
|
do-test:
|
|
printf 'import netifaces\nprint (netifaces.interfaces(), netifaces.gateways())\n' | \
|
|
${MODPY_BIN} - | grep lo0
|
|
|
|
.include <bsd.port.mk>
|