mirror of
https://git.freebsd.org/ports.git
synced 2025-05-06 19:06:44 -04:00
31 lines
996 B
Makefile
31 lines
996 B
Makefile
PORTNAME= nanodbc
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 2.14.0
|
|
CATEGORIES= databases devel
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
COMMENT= Small C++ wrapper for the native C ODBC API
|
|
WWW= https://nanodbc.github.io/nanodbc/
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
LIB_DEPENDS= libodbc.so:databases/unixODBC
|
|
|
|
USES= cmake:testing compiler:c++14-lang localbase:ldflags # pkgconfig python:build
|
|
USE_LDCONFIG= yes
|
|
USE_CXXSTD= c++14 # fix build broken by deprecated feature std::char_traits, see https://github.com/nanodbc/nanodbc/issues/387
|
|
|
|
USE_GITHUB= yes
|
|
|
|
CMAKE_ON= BUILD_SHARED_LIBS \
|
|
NANODBC_DISABLE_TESTS NANODBC_DISABLE_EXAMPLES
|
|
CMAKE_TESTING_ARGS= -DNANODBC_DISABLE_TESTS=OFF # many tests fail: Data source name not found and no default
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
|
|
CFLAGS+= -Wno-error=deprecated-declarations -Wno-error=unused-command-line-argument
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|