Created
April 2, 2014 14:45
-
-
Save francesco-romano/9935649 to your computer and use it in GitHub Desktop.
Patch to tinyxml sources to add pkg-config file. This file is for homebrew installation and must be used after the other 3 patches.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -Nu /Library/Caches/Homebrew/tinyxml/CMakeLists.txt tinyxml-2.6.2.patch/CMakeLists.txt | |
--- /Library/Caches/Homebrew/tinyxml/CMakeLists.txt 2014-04-02 16:38:38.000000000 +0200 | |
+++ tinyxml-2.6.2.patch/CMakeLists.txt 2014-04-02 16:32:21.000000000 +0200 | |
@@ -3,6 +3,11 @@ | |
add_library(tinyxml SHARED tinyxml.cpp tinyxmlerror.cpp tinyxmlparser.cpp) | |
set_target_properties(tinyxml PROPERTIES | |
INSTALL_NAME_DIR ${CMAKE_INSTALL_PREFIX}/lib) | |
+ | |
+configure_file( | |
+"${CMAKE_CURRENT_SOURCE_DIR}/tinyxml.pc.in" | |
+"${CMAKE_CURRENT_BINARY_DIR}/tinyxml.pc" | |
+@ONLY) | |
install(TARGETS tinyxml | |
LIBRARY DESTINATION lib | |
@@ -10,3 +15,4 @@ | |
RUNTIME DESTINATION lib) | |
install(FILES tinyxml.h | |
DESTINATION include) | |
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/tinyxml.pc DESTINATION lib/pkgconfig) | |
Common subdirectories: /Library/Caches/Homebrew/tinyxml/docs and tinyxml-2.6.2.patch/docs | |
diff -Nu /Library/Caches/Homebrew/tinyxml/tinyxml.pc.in tinyxml-2.6.2.patch/tinyxml.pc.in | |
--- /Library/Caches/Homebrew/tinyxml/tinyxml.pc.in 1970-01-01 01:00:00.000000000 +0100 | |
+++ tinyxml-2.6.2.patch/tinyxml.pc.in 2014-04-02 16:25:35.000000000 +0200 | |
@@ -0,0 +1,10 @@ | |
+prefix=@CMAKE_INSTALL_PREFIX@ | |
+exec_prefix=${prefix} | |
+libdir=${exec_prefix}/lib | |
+includedir=${prefix}/include | |
+ | |
+Name: TinyXml | |
+Description: Simple, small, C++ XML parser | |
+Version: 2.6.2 | |
+Libs: -L${libdir} -ltinyxml | |
+Cflags: -I${includedir} | |
\ No newline at end of file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment