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
50 lines
1.6 KiB
Makefile
50 lines
1.6 KiB
Makefile
# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= leveldb
|
|
PORTVERSION= 1.22
|
|
PORTREVISION= 1
|
|
CATEGORIES= databases
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
COMMENT= Fast and lightweight key/value database library by Google
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
OPTIONS_DEFINE= GPERFTOOLS SNAPPY
|
|
OPTIONS_DEFAULT=SNAPPY
|
|
|
|
USES= cmake compiler:c++11-lang localbase
|
|
|
|
CMAKE_OFF= LEVELDB_BUILD_TESTS
|
|
CMAKE_ON= BUILD_SHARED_LIBS LEVELDB_BUILD_BENCHMARKS LEVELDB_INSTALL
|
|
USE_CXXSTD= c++11
|
|
USE_LDCONFIG= yes
|
|
|
|
PLIST_SUB= SHLIB_MAJOR=${SHLIB_MAJOR} \
|
|
SHLIB_MINOR=${SHLIB_MINOR}
|
|
|
|
SHLIB_MAJOR= ${PORTVERSION:R}
|
|
SHLIB_MINOR= ${PORTVERSION:E}
|
|
|
|
GH_ACCOUNT= google
|
|
USE_GITHUB= yes
|
|
|
|
GPERFTOOLS_LIB_DEPENDS= libtcmalloc.so:devel/google-perftools
|
|
SNAPPY_LIB_DEPENDS= libsnappy.so:archivers/snappy
|
|
SNAPPY_VARS= SNAPPY=1 SNAPPY_CFLAGS=-DSNAPPY
|
|
SNAPPY_VARS_OFF= SNAPPY=0 SNAPPY_CFLAGS=
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|%%SHLIB_MAJOR%%|${SHLIB_MAJOR}|; s|%%SHLIB_MINOR%%|${SHLIB_MINOR}|' ${WRKSRC}/CMakeLists.txt
|
|
|
|
post-install:
|
|
${AR} cq ${STAGEDIR}${PREFIX}/lib/libleveldb.a ${BUILD_WRKSRC}/CMakeFiles/leveldb.dir/*/*.o
|
|
# backward compatibility (for databases/p5-Tie-LevelDB)
|
|
${MKDIR} ${STAGEDIR}${DATADIR}/
|
|
${ECHO_CMD} "PLATFORM_CFLAGS=-std=c++11 -D_REENTRANT -DOS_FREEBSD -DLEVELDB_PLATFORM_POSIX ${SNAPPY_CFLAGS}" > ${STAGEDIR}${DATADIR}/build_config.mk
|
|
${ECHO_CMD} "PORT_CFLAGS=-std=c++11 -D_REENTRANT -DOS_FREEBSD -DLEVELDB_PLATFORM_POSIX ${SNAPPY_CFLAGS}" >> ${STAGEDIR}${DATADIR}/build_config.mk
|
|
${ECHO_CMD} "SNAPPY=${SNAPPY}" >> ${STAGEDIR}${DATADIR}/build_config.mk
|
|
|
|
.include <bsd.port.mk>
|