svn commit: r325350 - head/databases/leveldb

Sunpoet Po-Chuan Hsieh sunpoet at FreeBSD.org
Sun Aug 25 16:03:33 UTC 2013


Author: sunpoet
Date: Sun Aug 25 16:03:32 2013
New Revision: 325350
URL: http://svnweb.freebsd.org/changeset/ports/325350

Log:
  - Use -pthread instead of deprecated PTHREAD_LIBS
  - Use !${PORT_OPTIONS:Mfoo} instead of empty(PORT_OPTIONS:Mfoo)

Modified:
  head/databases/leveldb/Makefile

Modified: head/databases/leveldb/Makefile
==============================================================================
--- head/databases/leveldb/Makefile	Sun Aug 25 15:27:10 2013	(r325349)
+++ head/databases/leveldb/Makefile	Sun Aug 25 16:03:32 2013	(r325350)
@@ -39,11 +39,11 @@ SNAPPY=		0
 .endif
 
 post-patch:
-	@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|' ${WRKSRC}/build_detect_platform
-.if empty(PORT_OPTIONS:MGPERFTOOLS)
+	@${REINPLACE_CMD} -e 's|-lpthread|-pthread|' ${WRKSRC}/build_detect_platform
+.if !${PORT_OPTIONS:MGPERFTOOLS}
 	@${REINPLACE_CMD} -e 's| -ltcmalloc||' ${WRKSRC}/build_detect_platform
 .endif
-.if empty(PORT_OPTIONS:MSNAPPY)
+.if !${PORT_OPTIONS:MSNAPPY}
 	@${REINPLACE_CMD} -e 's| -DSNAPPY||; s| -lsnappy||' ${WRKSRC}/build_detect_platform
 .endif
 


More information about the svn-ports-head mailing list