if a port needs 2.x then set MODPY_VERSION=${MODPY_DEFAULT_VERSION_2}. This commit doesn't change any versions currently used; it may be that some ports have MODPY_DEFAULT_VERSION_2 but don't require it, those should be cleaned up in the course of updating ports where possible. Python module ports providing py3-* packages should still use FLAVOR=python3 so that we don't have a mixture of dependencies some using ${MODPY_FLAVOR} and others not.
51 lines
1.1 KiB
Makefile
51 lines
1.1 KiB
Makefile
# $OpenBSD: Makefile,v 1.47 2021/02/23 19:39:32 sthen Exp $
|
|
|
|
COMMENT-main= portable low-level networking library
|
|
COMMENT-python= python interface to libdnet
|
|
|
|
MODPY_EGG_VERSION= 1.12
|
|
REVISION= 13
|
|
DISTNAME= libdnet-${MODPY_EGG_VERSION}
|
|
PKGNAME-main= ${DISTNAME}
|
|
PKGNAME-python= py-${DISTNAME}
|
|
|
|
SHARED_LIBS= dnet 1.0
|
|
|
|
CATEGORIES= net
|
|
HOMEPAGE= https://github.com/dugsong/libdnet
|
|
|
|
# BSD
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
WANTLIB= c
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GOOGLECODE:=libdnet/}
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
PSEUDO_FLAVORS= no_python
|
|
FLAVOR?=
|
|
|
|
CONFIGURE_STYLE= gnu
|
|
MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/config
|
|
MULTI_PACKAGES= -main -python
|
|
|
|
# override python.port.mk's RUN_DEPENDS
|
|
RUN_DEPENDS-main=
|
|
|
|
CONFIGURE_ARGS += --without-check
|
|
|
|
.include <bsd.port.arch.mk>
|
|
.if ${BUILD_PACKAGES:M-python}
|
|
MODULES+= lang/python
|
|
MODPY_VERSION = ${MODPY_DEFAULT_VERSION_2}
|
|
CONFIGURE_ARGS+= --with-python
|
|
MAKE_FLAGS= PYTHON=${MODPY_BIN}
|
|
TEST_DEPENDS= net/libdnet,-python
|
|
TEST_FLAGS= TESTS_ENVIRONMENT=${MODPY_BIN}
|
|
WANTLIB-python= ${MODPY_WANTLIB} m pthread util
|
|
.else
|
|
CONFIGURE_ARGS+= --without-python
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|