[128854] trunk/dports/textproc/tinyxml
mmoll at macports.org
mmoll at macports.org
Fri Nov 28 08:42:36 PST 2014
Revision: 128854
https://trac.macports.org/changeset/128854
Author: mmoll at macports.org
Date: 2014-11-28 08:42:36 -0800 (Fri, 28 Nov 2014)
Log Message:
-----------
textproc/tinyxml: add pkconfig file, closes #46042
Modified Paths:
--------------
trunk/dports/textproc/tinyxml/Portfile
trunk/dports/textproc/tinyxml/files/CMakeLists.txt
Added Paths:
-----------
trunk/dports/textproc/tinyxml/files/tinyxml.pc
Modified: trunk/dports/textproc/tinyxml/Portfile
===================================================================
--- trunk/dports/textproc/tinyxml/Portfile 2014-11-28 11:04:59 UTC (rev 128853)
+++ trunk/dports/textproc/tinyxml/Portfile 2014-11-28 16:42:36 UTC (rev 128854)
@@ -25,6 +25,8 @@
post-extract {
copy ${filespath}/CMakeLists.txt ${worksrcpath}
+ copy ${filespath}/tinyxml.pc ${worksrcpath}
+ reinplace "s|@@PREFIX@@|${prefix}|g;s|@@VERSION@@|${version}|g" ${worksrcpath}/tinyxml.pc
}
livecheck.type sourceforge
Modified: trunk/dports/textproc/tinyxml/files/CMakeLists.txt
===================================================================
--- trunk/dports/textproc/tinyxml/files/CMakeLists.txt 2014-11-28 11:04:59 UTC (rev 128853)
+++ trunk/dports/textproc/tinyxml/files/CMakeLists.txt 2014-11-28 16:42:36 UTC (rev 128854)
@@ -1,4 +1,5 @@
project(TinyXML CXX)
add_library(tinyxml SHARED tinystr.cpp tinyxml.cpp tinyxmlerror.cpp tinyxmlparser.cpp)
install(TARGETS tinyxml LIBRARY DESTINATION lib)
-install(FILES tinystr.h tinyxml.h DESTINATION include)
\ No newline at end of file
+install(FILES tinystr.h tinyxml.h DESTINATION include)
+install(FILES tinyxml.pc DESTINATION lib/pkgconfig)
Added: trunk/dports/textproc/tinyxml/files/tinyxml.pc
===================================================================
--- trunk/dports/textproc/tinyxml/files/tinyxml.pc (rev 0)
+++ trunk/dports/textproc/tinyxml/files/tinyxml.pc 2014-11-28 16:42:36 UTC (rev 128854)
@@ -0,0 +1,10 @@
+prefix=@@PREFIX@@
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: TinyXml
+Description: simple, small, C++ XML parser
+Version: @@VERSION@@
+Libs: -L${libdir} -ltinyxml
+Cflags: -I${includedir}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141128/e88d077a/attachment-0001.html>
More information about the macports-changes
mailing list