3cbe1c2f30
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.
44 lines
868 B
Makefile
44 lines
868 B
Makefile
# $OpenBSD: Makefile,v 1.18 2021/02/23 19:39:32 sthen Exp $
|
|
|
|
COMMENT = public suffix list library
|
|
|
|
V = 0.21.1
|
|
DISTNAME = libpsl-${V}
|
|
|
|
SHARED_LIBS += psl 1.2 # 8.3
|
|
|
|
CATEGORIES = net www
|
|
|
|
HOMEPAGE = https://github.com/rockdaboot/libpsl/
|
|
|
|
# MIT
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
WANTLIB += c iconv idn2 intl unistring
|
|
|
|
MASTER_SITES = ${HOMEPAGE}/releases/download/${V}/
|
|
|
|
DEBUG_PACKAGES = ${BUILD_PACKAGES}
|
|
|
|
MODULES = lang/python
|
|
|
|
MODPY_RUNDEP = No
|
|
|
|
BUILD_DEPENDS = devel/gettext,-tools \
|
|
sysutils/coreutils
|
|
LIB_DEPENDS = converters/libunistring \
|
|
devel/gettext,-runtime \
|
|
devel/libidn2
|
|
|
|
CONFIGURE_STYLE = gnu
|
|
|
|
CONFIGURE_ARGS += --enable-builtin=libidn2 \
|
|
--enable-runtime=libidn2
|
|
CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib ${LDFLAGS}"
|
|
|
|
pre-configure:
|
|
@ln -sf ${MODPY_BIN} ${WRKDIR}/bin/python
|
|
|
|
.include <bsd.port.mk>
|