Use CFLAGS instead of CPPFLAGS

- Bump PORTREVISION for package change

PR:		218784
Submitted by:	lx
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2017-04-23 17:09:21 +00:00
parent 866c0f4e95
commit 249ffb7f9f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=439242

View file

@ -4,6 +4,7 @@
PORTNAME= rocksdb
PORTVERSION= 5.2.1
DISTVERSIONPREFIX= ${PORTNAME}-
PORTREVISION= 1
CATEGORIES= databases
MAINTAINER?= sunpoet@FreeBSD.org
@ -26,10 +27,10 @@ OPTIONS_DEFINE= DEBUG LZ4 ZSTD
OPTIONS_DEFAULT=LZ4
ALL_TARGET= shared_lib static_lib all
CFLAGS+= -DOS_FREEBSD
CONFIGURE_ARGS= make_config.mk
CONFIGURE_ENV= PORTABLE=0 ROCKSDB_ROOT=${WRKSRC}
CONFIGURE_SCRIPT= build_tools/build_detect_platform
CPPFLAGS+= -DOS_FREEBSD
HAS_CONFIGURE= yes
MAKE_ENV= CXX=${CXX} INSTALL_PATH=${STAGEDIR}${PREFIX}
USE_CXXSTD= c++11
@ -58,7 +59,7 @@ PLIST_SUB+= LITE=""
.else
PKGNAMESUFFIX= -lite
CONFLICTS_INSTALL= rocksdb-[0-9]*
CPPFLAGS+= -DROCKSDB_LITE=1
CFLAGS+= -DROCKSDB_LITE=1
MAKE_ENV+= LIBNAME=librocksdb${PKGNAMESUFFIX}
PLIST_SUB+= LITE=${PKGNAMESUFFIX}
.endif