mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-08 06:48:28 +00:00
ea8c8ec7da
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3 to GCC 9.1 under most circumstances now after revision 507371. This includes ports - with USE_GCC=yes or USE_GCC=any, - with USES=fortran, - using Mk/bsd.octave.mk which in turn features USES=fortran, and - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang, c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib plus, everything INDEX-11 shows with a dependency on lang/gcc9 now. PR: 238330
92 lines
2.6 KiB
Makefile
92 lines
2.6 KiB
Makefile
# Created by: Tobias Kortkamp <t@tobik.me>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= kore
|
|
PORTVERSION= 3.3.1
|
|
PORTREVISION= 1
|
|
CATEGORIES= devel www
|
|
MASTER_SITES= https://kore.io/releases/
|
|
|
|
MAINTAINER= tobik@FreeBSD.org
|
|
COMMENT= Web application framework for writing web APIs in C
|
|
|
|
LICENSE= ISCL
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
FLAVORS= default notls
|
|
notls_PKGNAMESUFFIX= -notls
|
|
|
|
USES= compiler:c11 gmake ssl
|
|
|
|
CFLAGS+= ${CFLAGS_${CHOSEN_COMPILER_TYPE}} -I${OPENSSLINC}
|
|
CFLAGS_clang= -Wno-error=c11-extensions # 12.0 + -pedantic
|
|
LDFLAGS+= -L${OPENSSLLIB}
|
|
|
|
DATADIR= ${PREFIX}/share/kore${PKGNAMESUFFIX}
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/kore${PKGNAMESUFFIX}
|
|
PLIST_SUB= SUFFIX=${PKGNAMESUFFIX}
|
|
|
|
OPTIONS_DEFINE= CURL DEBUG EXAMPLES HTTP JSONRPC PGSQL PYTHON TASKS TLS
|
|
OPTIONS_DEFAULT= CURL HTTP JSONRPC PGSQL PYTHON TASKS TLS
|
|
.if ${FLAVOR:U} == notls
|
|
OPTIONS_EXCLUDE= TLS
|
|
.endif
|
|
OPTIONS_SUB= yes
|
|
|
|
HTTP_DESC= Build with HTTP support
|
|
JSONRPC_DESC= Build with JSON-RPC support
|
|
TASKS_DESC= Build with tasks support
|
|
|
|
CURL_LIB_DEPENDS= libcurl.so:ftp/curl
|
|
CURL_MAKE_ARGS= CURL=1
|
|
|
|
DEBUG_MAKE_ARGS= DEBUG=1
|
|
|
|
PORTEXAMPLES= *
|
|
|
|
JSONRPC_IMPLIES= HTTP
|
|
JSONRPC_LIB_DEPENDS= libyajl.so:devel/yajl
|
|
JSONRPC_MAKE_ARGS= JSONRPC=1
|
|
|
|
HTTP_MAKE_ARGS_OFF= NOHTTP=1
|
|
|
|
PGSQL_IMPLIES= HTTP
|
|
PGSQL_MAKE_ARGS= PGSQL=1
|
|
PGSQL_USES= pgsql
|
|
|
|
PYTHON_BINARY_ALIAS= python3-config=${PYTHON_CMD}-config
|
|
PYTHON_MAKE_ARGS= PYTHON=1
|
|
PYTHON_USES= gettext-runtime python:3.6+
|
|
|
|
TASKS_MAKE_ARGS= TASKS=1
|
|
|
|
TLS_MAKE_ARGS_OFF= NOTLS=1
|
|
|
|
post-patch:
|
|
# Disable kore's own optimizations flags, make sure the correct paths
|
|
# are set when LOCALBASE is not /usr/local
|
|
@${REINPLACE_CMD} -e 's|CFLAGS+=-O|#|g' \
|
|
-e 's|/usr/local/|${LOCALBASE}/|g' \
|
|
${WRKSRC}/Makefile
|
|
@${REINPLACE_CMD} -e 's|%%SUFFIX%%|${PKGNAMESUFFIX}|g' \
|
|
-e 's|%%OPENSSLINC%%|${OPENSSLINC}|g' \
|
|
${WRKSRC}/src/cli.c ${WRKSRC}/src/utils.c
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/kore ${STAGEDIR}${PREFIX}/bin/kore${PKGNAMESUFFIX}
|
|
${INSTALL_PROGRAM} ${WRKSRC}/kodev/kodev ${STAGEDIR}${PREFIX}/bin/kodev${PKGNAMESUFFIX}
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
${INSTALL_DATA} ${WRKSRC}/kore.features ${STAGEDIR}${DATADIR}/features
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/include/kore${PKGNAMESUFFIX}
|
|
@cd ${WRKSRC}/include && ${COPYTREE_SHARE} . \
|
|
${STAGEDIR}${PREFIX}/include/kore${PKGNAMESUFFIX}
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/man/man1
|
|
${INSTALL_DATA} ${WRKSRC}/share/man/kodev.1 \
|
|
${STAGEDIR}${PREFIX}/man/man1/kodev${PKGNAMESUFFIX}.1
|
|
|
|
do-install-EXAMPLES-on:
|
|
@cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
|
|
@cd ${WRKSRC}/conf && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
.include <bsd.port.mk>
|