[127884] trunk/dports/devel/streamlog
khindenburg at macports.org
khindenburg at macports.org
Wed Nov 5 19:18:12 PST 2014
Revision: 127884
https://trac.macports.org/changeset/127884
Author: khindenburg at macports.org
Date: 2014-11-05 19:18:11 -0800 (Wed, 05 Nov 2014)
Log Message:
-----------
streamlog: patch to not hard code /opt/local and remove /usr/local #44989
Modified Paths:
--------------
trunk/dports/devel/streamlog/Portfile
Added Paths:
-----------
trunk/dports/devel/streamlog/files/
trunk/dports/devel/streamlog/files/patch-cmakelists.diff
Modified: trunk/dports/devel/streamlog/Portfile
===================================================================
--- trunk/dports/devel/streamlog/Portfile 2014-11-06 03:17:38 UTC (rev 127883)
+++ trunk/dports/devel/streamlog/Portfile 2014-11-06 03:18:11 UTC (rev 127884)
@@ -7,6 +7,7 @@
PortGroup compiler_blacklist_versions 1.0
bitbucket.setup nwehr streamlog 1.0 v
+revision 1
categories devel
platforms darwin
maintainers gmail.com:gtolemans
@@ -22,4 +23,10 @@
checksums rmd160 155dd5e4f4c1526c0516656d9d77d3bf610b447e \
sha256 dc1dd26ce084a557b6e3a013fa87c1269344b94034de8598c4f17cc16625e6cd
+patchfiles patch-cmakelists.diff
+
+post-patch {
+ reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/CMakeLists.txt
+}
+
compiler.blacklist *gcc* {clang < 137}
Added: trunk/dports/devel/streamlog/files/patch-cmakelists.diff
===================================================================
--- trunk/dports/devel/streamlog/files/patch-cmakelists.diff (rev 0)
+++ trunk/dports/devel/streamlog/files/patch-cmakelists.diff 2014-11-06 03:18:11 UTC (rev 127884)
@@ -0,0 +1,28 @@
+--- CMakeLists.txt 2014-11-05 22:03:10.000000000 -0500
++++ CMakeLists.txt 2014-11-05 22:06:47.000000000 -0500
+@@ -5,9 +5,7 @@
+
+ include_directories( "${PROJECT_SOURCE_DIR}" )
+
+-include_directories( "/usr/include" )
+-include_directories( "/usr/local/include" )
+-include_directories( "/opt/local/include" )
++include_directories( "@PREFIX@/include" )
+
+ ADD_DEFINITIONS( -std=c++0x )
+
+@@ -19,12 +17,8 @@
+ ##############################################################################
+ # Install - Library
+ ##############################################################################
+-if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
+- set( MAKE_INSTALL_PREFIX "/opt/local" )
+- set_target_properties( streamlog PROPERTIES MACOSX_RPATH 1 )
+-else()
+- set( MAKE_INSTALL_PREFIX "/usr/local" )
+-endif()
++set( MAKE_INSTALL_PREFIX "@PREFIX@" )
++set_target_properties( streamlog PROPERTIES MACOSX_RPATH 1 )
+
+ install( FILES "${PROJECT_SOURCE_DIR}/streamlog.h" DESTINATION "${MAKE_INSTALL_PREFIX}/include/streamlog" )
+ install( TARGETS streamlog LIBRARY DESTINATION "${MAKE_INSTALL_PREFIX}/lib" )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141105/e064e48b/attachment.html>
More information about the macports-changes
mailing list