mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
Install both the shared and static library.
Approved by: maintainer
This commit is contained in:
parent
91500a7d54
commit
ea5c24d69b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=366086
@ -13,6 +13,4 @@ LICENSE= MIT
|
||||
USES= cmake
|
||||
CMAKE_SOURCE_PATH= ${WRKSRC}/scripts
|
||||
|
||||
PLIST_FILES= include/pugiconfig.hpp include/pugixml.hpp lib/libpugixml.a
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
20
textproc/pugixml/files/patch-scripts__CMakeLists.txt
Normal file
20
textproc/pugixml/files/patch-scripts__CMakeLists.txt
Normal file
@ -0,0 +1,20 @@
|
||||
--- ./scripts/CMakeLists.txt.orig 2014-08-23 08:28:21.562183999 -0400
|
||||
+++ ./scripts/CMakeLists.txt 2014-08-23 08:41:29.301439998 -0400
|
||||
@@ -10,13 +10,11 @@
|
||||
set(HEADERS ../src/pugixml.hpp ../src/pugiconfig.hpp)
|
||||
set(SOURCES ${HEADERS} ../src/pugixml.cpp)
|
||||
|
||||
-if(BUILD_SHARED_LIBS)
|
||||
- add_library(pugixml SHARED ${SOURCES})
|
||||
-else()
|
||||
- add_library(pugixml STATIC ${SOURCES})
|
||||
-endif()
|
||||
+add_library(pugixml SHARED ${SOURCES})
|
||||
+add_library(pugixml_static STATIC ${SOURCES})
|
||||
|
||||
set_target_properties(pugixml PROPERTIES VERSION 1.4 SOVERSION 1)
|
||||
+set_target_properties(pugixml_static PROPERTIES OUTPUT_NAME pugixml)
|
||||
|
||||
-install(TARGETS pugixml LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
+install(TARGETS pugixml pugixml_static LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
install(FILES ${HEADERS} DESTINATION include)
|
6
textproc/pugixml/pkg-plist
Normal file
6
textproc/pugixml/pkg-plist
Normal file
@ -0,0 +1,6 @@
|
||||
include/pugiconfig.hpp
|
||||
include/pugixml.hpp
|
||||
lib/libpugixml.a
|
||||
lib/libpugixml.so
|
||||
lib/libpugixml.so.1
|
||||
lib/libpugixml.so.1.4
|
Loading…
Reference in New Issue
Block a user