diff options
author | Stephan Hartmann <sultan@gentoo.org> | 2021-12-22 21:24:23 +0100 |
---|---|---|
committer | Stephan Hartmann <sultan@gentoo.org> | 2021-12-22 21:25:02 +0100 |
commit | e8a0601218b33c6cf81039017917e1449d415cda (patch) | |
tree | c58edd953663ad471cac2dd5da11977d59a6427c /media-gfx/apngasm/files | |
parent | media-gfx/apngasm: remove apng dependency (diff) | |
download | gentoo-e8a0601218b33c6cf81039017917e1449d415cda.tar.gz gentoo-e8a0601218b33c6cf81039017917e1449d415cda.tar.bz2 gentoo-e8a0601218b33c6cf81039017917e1449d415cda.zip |
media-gfx/apngasm: bump to 3.1.10
Bug: https://bugs.gentoo.org/824830
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Stephan Hartmann <sultan@gentoo.org>
Diffstat (limited to 'media-gfx/apngasm/files')
-rw-r--r-- | media-gfx/apngasm/files/apngasm-3.1.10-static.patch | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/media-gfx/apngasm/files/apngasm-3.1.10-static.patch b/media-gfx/apngasm/files/apngasm-3.1.10-static.patch new file mode 100644 index 000000000000..a624d03278f3 --- /dev/null +++ b/media-gfx/apngasm/files/apngasm-3.1.10-static.patch @@ -0,0 +1,55 @@ +--- a/lib/CMakeLists.txt ++++ b/lib/CMakeLists.txt +@@ -55,18 +55,6 @@ set_target_properties(${APNGASM_DYNAMIC_LIB_TARGET} + CXX_STANDARD 20 + ) + +-# Add the static library/archive +-set(APNGASM_STATIC_LIB_TARGET apngasm-static) +-add_library(${APNGASM_STATIC_LIB_TARGET} +- ${APNGASM_SOURCES} +-) +-set_target_properties(${APNGASM_STATIC_LIB_TARGET} +- PROPERTIES +- POSITION_INDEPENDENT_CODE TRUE +- OUTPUT_NAME apngasm +- CXX_STANDARD 20 +-) +- + # Add libraries/includes + #target_link_libraries(${APNGASM_DYNAMIC_LIB_TARGET} stdc++fs) + #target_link_libraries(${APNGASM_STATIC_LIB_TARGET} stdc++fs) +@@ -74,11 +62,9 @@ set_target_properties(${APNGASM_STATIC_LIB_TARGET} + find_package(PNG REQUIRED) + include_directories(${PNG_INCLUDE_DIR}) + target_link_libraries(${APNGASM_DYNAMIC_LIB_TARGET} ${PNG_LIBRARY}) +-target_link_libraries(${APNGASM_STATIC_LIB_TARGET} ${PNG_LIBRARY}) + message(${PNG_VERSION_STRING}) + + target_link_libraries(${APNGASM_DYNAMIC_LIB_TARGET} ${ZLIB_LIBRARIES}) +-target_link_libraries(${APNGASM_STATIC_LIB_TARGET} ${ZLIB_LIBRARIES}) + + #if (APPLE OR WIN32) + # set(Boost_USE_STATIC_LIBS ON) +@@ -88,13 +74,10 @@ target_link_libraries(${APNGASM_STATIC_LIB_TARGET} ${ZLIB_LIBRARIES}) + find_package(Boost REQUIRED COMPONENTS program_options regex system) + include_directories(SYSTEM ${Boost_INCLUDE_DIRS}) + target_link_libraries(${APNGASM_DYNAMIC_LIB_TARGET} Boost::program_options Boost::regex Boost::system) +-target_link_libraries(${APNGASM_STATIC_LIB_TARGET} Boost::program_options Boost::regex Boost::system) + + get_target_property(APNGASM_DYNAMIC_LIB_TARGET_NAME ${APNGASM_DYNAMIC_LIB_TARGET} OUTPUT_NAME) +-get_target_property(APNGASM_STATIC_LIB_TARGET_NAME ${APNGASM_STATIC_LIB_TARGET} OUTPUT_NAME) + set(APNGASM_LIBRARIES + ${PROJECT_BINARY_DIR}/${CMAKE_SHARED_LIBRARY_PREFIX}${APNGASM_DYNAMIC_LIB_TARGET_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX} +- ${PROJECT_BINARY_DIR}/${CMAKE_STATIC_LIBRARY_PREFIX}${APNGASM_STATIC_LIB_TARGET_NAME}${CMAKE_STATIC_LIBRARY_SUFFIX} + ) + + # Installation +@@ -107,7 +90,6 @@ endif () + install( + TARGETS + ${APNGASM_DYNAMIC_LIB_TARGET} +- ${APNGASM_STATIC_LIB_TARGET} + DESTINATION ${LIB_INSTALL_DIR} + ) + |