bd7b56ae18
- fix a warning about a wrong formatting specifier - exorcise -Werror so future warnings do not break the build - as a result, simplify Makefile - switch to C11 to avoid some warnings - reinstate %%OPENSSLINC%% patch bits dropped in previous commit - patch in %%LOCALBASE%% correctly MFH: 2023Q4
65 lines
1.7 KiB
Makefile
65 lines
1.7 KiB
Makefile
PORTNAME= kore
|
|
DISTVERSION= 4.2.3
|
|
PORTREVISON= 1
|
|
CATEGORIES= devel www
|
|
MASTER_SITES= https://kore.io/releases/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Web application framework for writing web APIs in C
|
|
WWW= http://www.kore.io/
|
|
|
|
LICENSE= ISCL
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BROKEN_SSL= openssl openssl31
|
|
BROKEN_SSL_REASON= Requires OpenSSL 3.0.0 deprecated RSA_* routines
|
|
|
|
USES= compiler:c11 gmake ssl
|
|
|
|
MAKE_ARGS= OPENSSL_PATH=${OPENSSLBASE}
|
|
CFLAGS+= -std=c11
|
|
|
|
PORTEXAMPLES= *
|
|
|
|
OPTIONS_DEFINE= ACME CURL DEBUG EXAMPLES HTTP JSONRPC PGSQL PYTHON \
|
|
TASKS TLS
|
|
OPTIONS_DEFAULT= ACME CURL HTTP JSONRPC PGSQL PYTHON TASKS TLS
|
|
OPTIONS_SUB= yes
|
|
|
|
ACME_DESC= Build with ACME support
|
|
HTTP_DESC= Build with HTTP support
|
|
JSONRPC_DESC= Build with JSON-RPC support
|
|
TASKS_DESC= Build with tasks support
|
|
|
|
ACME_MAKE_ARGS= ACME=1
|
|
CURL_LIB_DEPENDS= libcurl.so:ftp/curl
|
|
CURL_MAKE_ARGS= CURL=1
|
|
DEBUG_MAKE_ARGS= DEBUG=1
|
|
HTTP_MAKE_ARGS_OFF= NOHTTP=1
|
|
JSONRPC_IMPLIES= HTTP
|
|
JSONRPC_LIB_DEPENDS= libyajl.so:devel/yajl
|
|
JSONRPC_MAKE_ARGS= JSONRPC=1
|
|
PGSQL_IMPLIES= HTTP
|
|
PGSQL_USES= pgsql
|
|
PGSQL_MAKE_ARGS= PGSQL=1
|
|
PYTHON_USES= gettext-runtime python
|
|
PYTHON_MAKE_ARGS= PYTHON=1
|
|
PYTHON_BINARY_ALIAS= python3-config=${PYTHON_CMD}-config
|
|
TASKS_MAKE_ARGS= TASKS=1
|
|
TLS_MAKE_ARGS_OFF= NOTLS=1
|
|
|
|
pre-configure:
|
|
@${REINPLACE_CMD} 's|%%LOCALBASE%%|${LOCALBASE}/|g' \
|
|
${WRKSRC}/Makefile
|
|
@${REINPLACE_CMD} 's|%%OPENSSLINC%%|${OPENSSLINC}|g' \
|
|
${WRKSRC}/src/cli.c
|
|
|
|
post-install:
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/kodev \
|
|
${STAGEDIR}${PREFIX}/bin/kore
|
|
|
|
post-install-EXAMPLES-on:
|
|
@cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
|
|
@cd ${WRKSRC}/conf && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
.include <bsd.port.mk>
|