sthen 745105c362 automatically handle ports which use the python module and have flavours
other than the usual "python3/<blank>" python version selection and
remove setting MODPY_VERSION=${MODPY_DEFAULT_VERSION_3} again from the
affected ports.
2021-02-23 22:04:35 +00:00

69 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.27 2021/02/23 22:04:35 sthen Exp $
COMMENT = web application framework for writing scalable web APIs in C
DISTNAME = kore-4.1.0
CATEGORIES = www
HOMEPAGE = https://kore.io/
# ISC
PERMIT_PACKAGE = Yes
WANTLIB += c crypto pthread ssl
MASTER_SITES = https://kore.io/releases/
FLAVORS = acme curl debug pgsql python
FLAVOR ?=
.if ${FLAVOR} == "acme"
MAKE_ENV += ACME=1
WANTLIB += curl
LIB_DEPENDS += net/curl
.endif
.if ${FLAVOR} == "curl"
MAKE_ENV += CURL=1
WANTLIB += curl
LIB_DEPENDS += net/curl
.endif
.if ${FLAVOR} == "debug"
MAKE_ENV += DEBUG=1
.endif
.if ${FLAVOR} == "pgsql"
MAKE_ENV += PGSQL=1
WANTLIB += pq
LIB_DEPENDS += databases/postgresql,-main
.endif
.if ${FLAVOR} == "python"
CONFIGURE_STYLE = none
MODULES = lang/python
MAKE_ENV += PYTHON=1
WANTLIB += ${MODPY_WANTLIB} intl m util
LIB_DEPENDS += devel/gettext,-runtime
.endif
USE_GMAKE = Yes
MAKE_ENV += CC="${CC}" TASKS=1
FAKE_FLAGS = DESTDIR=
NO_TEST = Yes
post-configure:
${SUBST_CMD} ${WRKSRC}/misc/python3-config.sh
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/kore
${INSTALL_DATA} ${WRKSRC}/README.md ${PREFIX}/share/doc/kore
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/kore
${INSTALL_DATA} ${WRKSRC}/conf/kore.conf.example ${PREFIX}/share/examples/kore
.include <bsd.port.mk>