aboutsummaryrefslogtreecommitdiff
path: root/databases/leveldb
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2015-07-06 17:46:17 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2015-07-06 17:46:17 +0000
commit50b8db09da9ba5c277e5473e165dd7e926722a7e (patch)
treee4b5278d72717ce8f441117da4d3d3faecfcb451 /databases/leveldb
parenteba2982f65d51bc377f5d2d1d16cf397602756d6 (diff)
downloadports-50b8db09da9ba5c277e5473e165dd7e926722a7e.tar.gz
ports-50b8db09da9ba5c277e5473e165dd7e926722a7e.zip
- Convert to new option target helper
Notes
Notes: svn path=/head/; revision=391445
Diffstat (limited to 'databases/leveldb')
-rw-r--r--databases/leveldb/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/databases/leveldb/Makefile b/databases/leveldb/Makefile
index bfc5787fc8b5..354251e48a8d 100644
--- a/databases/leveldb/Makefile
+++ b/databases/leveldb/Makefile
@@ -44,12 +44,12 @@ SNAPPY= 0
post-patch:
@${REINPLACE_CMD} -e '/PLATFORM_IS_LITTLE_ENDIAN/ s|__|_|g' ${WRKSRC}/port/port_posix.h
-.if !${PORT_OPTIONS:MGPERFTOOLS}
+
+post-patch-GPERFTOOLS-off:
@${REINPLACE_CMD} -e 's| -ltcmalloc||' ${WRKSRC}/build_detect_platform
-.endif
-.if !${PORT_OPTIONS:MSNAPPY}
+
+post-patch-SNAPPY-off:
@${REINPLACE_CMD} -e 's| -DSNAPPY||; s| -lsnappy||' ${WRKSRC}/build_detect_platform
-.endif
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/include/leveldb/ ${STAGEDIR}${PREFIX}/include/memenv/ ${STAGEDIR}${DATADIR}/