Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Aug 2013 16:03:33 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r325350 - head/databases/leveldb
Message-ID:  <201308251603.r7PG3X9v086903@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308251603.r7PG3X9v086903>