1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/devel/poco/Makefile
Thomas Zander 0c32d28225 Fix build / plist when SSL OPTION is not selected
PR:		219506
Submitted by:	henry.hu.sh@gmail.com (maintainer)
MFH:		2017Q3 (ports-secteam build fix blanket)
2017-07-23 17:21:37 +00:00

67 lines
1.7 KiB
Makefile

# Created by: Wes Peters <wes@FreeBSD.org>
# $FreeBSD$
PORTNAME= poco
PORTVERSION= 1.7.8
DISTVERSIONSUFFIX= -all
PORTREVISION= 1
CATEGORIES= devel net
MASTER_SITES= http://pocoproject.org/releases/${PORTNAME}-${PORTVERSION}/
MAINTAINER= henry.hu.sh@gmail.com
COMMENT= C++ libraries with a network/internet focus
LICENSE= BSL
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libpcre.so:devel/pcre \
libexpat.so:textproc/expat2
CONFLICTS= poco-ssl-[0-9]*
USES= cmake localbase pkgconfig
CMAKE_ARGS= -DPOCO_UNBUNDLED:BOOL=ON
USE_LDCONFIG= yes
SHLIB_MAJOR= 48
PLIST_SUB= SHLIB_MAJOR=${SHLIB_MAJOR}
OPTIONS_DEFINE= MYSQL SQLITE SSL TEST
OPTIONS_RADIO= ODBC
OPTIONS_RADIO_ODBC= IODBC UNIXODBC
OPTIONS_DEFAULT= MYSQL SQLITE SSL
OPTIONS_SUB= yes
MYSQL_USES= mysql
MYSQL_CMAKE_OFF= -DENABLE_DATA_MYSQL:BOOL=OFF
IODBC_LIB_DEPENDS= libiodbc.so:databases/libiodbc
IODBC_CMAKE_ON= -DODBC_INCLUDE_DIRECTORIES:PATH=${LOCALBASE}/include/libiodbc \
-DODBC_LIBRARIES:FILEPATH=${LOCALBASE}/lib/libiodbc.so
SQLITE_USES= sqlite
SQLITE_CMAKE_OFF= -DENABLE_DATA_SQLITE:BOOL=OFF
SSL_USES= ssl
SSL_CMAKE_OFF= -DENABLE_CRYPTO:BOOL=OFF \
-DENABLE_NETSSL:BOOL=OFF
UNIXODBC_LIB_DEPENDS= libodbc.so:databases/unixODBC
UNIXODBC_CMAKE_ON= -DODBC_INCLUDE_DIRECTORIES:PATH=${LOCALBASE}/include \
-DODBC_LIBRARIES:FILEPATH=${LOCALBASE}/lib/libodbc.so
TEST_CMAKE_ON= -DENABLE_TESTS:BOOL=ON
TEST_IMPLIES= SQLITE
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MIODBC} || ${PORT_OPTIONS:MUNIXODBC}
PLIST_SUB+= ODBC=""
.else
CMAKE_ARGS+= -DENABLE_DATA_ODBC:BOOL=OFF
PLIST_SUB+= ODBC="@comment "
.endif
post-patch:
@${REINPLACE_CMD} -e \
's|-D_XOPEN_SOURCE=500 || ; \
s|_EPOLL|_POLL| ; \
s|dl rt|rt|' ${WRKSRC}/cmake/DefinePlatformSpecifc.cmake
.include <bsd.port.mk>