svn commit: r391445 - head/databases/leveldb

Sunpoet Po-Chuan Hsieh sunpoet at FreeBSD.org
Mon Jul 6 17:46:18 UTC 2015


Author: sunpoet
Date: Mon Jul  6 17:46:17 2015
New Revision: 391445
URL: https://svnweb.freebsd.org/changeset/ports/391445

Log:
  - Convert to new option target helper

Modified:
  head/databases/leveldb/Makefile

Modified: head/databases/leveldb/Makefile
==============================================================================
--- head/databases/leveldb/Makefile	Mon Jul  6 17:46:12 2015	(r391444)
+++ head/databases/leveldb/Makefile	Mon Jul  6 17:46:17 2015	(r391445)
@@ -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}/


More information about the svn-ports-all mailing list