summaryrefslogtreecommitdiff
path: root/media-gfx/apngasm
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-12 19:09:37 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-12 19:09:37 -0500
commitb590c8d7572b727d565cc0b8ff660d43569845de (patch)
tree06f7a4102ea4e845df8b66660f252920d52952f9 /media-gfx/apngasm
parent24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff)
downloadbaldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz
baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz
baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip
Adding metadata
Diffstat (limited to 'media-gfx/apngasm')
-rw-r--r--media-gfx/apngasm/Manifest1
-rw-r--r--media-gfx/apngasm/apngasm-3.1.10-r1.ebuild41
-rw-r--r--media-gfx/apngasm/files/apngasm-3.1.10-boost-1.89.patch33
-rw-r--r--media-gfx/apngasm/files/apngasm-3.1.10-static.patch66
-rw-r--r--media-gfx/apngasm/metadata.xml5
5 files changed, 146 insertions, 0 deletions
diff --git a/media-gfx/apngasm/Manifest b/media-gfx/apngasm/Manifest
new file mode 100644
index 000000000000..0cecabb76b20
--- /dev/null
+++ b/media-gfx/apngasm/Manifest
@@ -0,0 +1 @@
+DIST apngasm-3.1.10.tar.gz 620031 BLAKE2B 6885b87815e76e8b9eed58548568bf821dfdf61579f83fc1aa977638f34c2112ebbfebba3454b0a2cfc01b465e570a7976e0fb8046a0762e9d35cf30e3d3f4cd SHA512 670d75251ddc771f9b2b4a1f401066f2012a6814bec781b918f1d9e8960835654c66c3d19b4c8920d5186d85af12cdc4bba8b61c8f3d349b4fc70513d8ecb34e
diff --git a/media-gfx/apngasm/apngasm-3.1.10-r1.ebuild b/media-gfx/apngasm/apngasm-3.1.10-r1.ebuild
new file mode 100644
index 000000000000..60d3ecf6c859
--- /dev/null
+++ b/media-gfx/apngasm/apngasm-3.1.10-r1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="create an APNG from multiple PNG files"
+HOMEPAGE="https://github.com/apngasm/apngasm"
+SRC_URI="https://github.com/${PN}/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="ZLIB"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+RDEPEND="
+ dev-libs/boost:=
+ media-libs/libpng:0=
+ virtual/zlib:=
+"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-3.1.10-static.patch"
+ "${FILESDIR}/${PN}-3.1.10-boost-1.89.patch"
+)
+
+src_prepare() {
+ sed -i -e 's|man/man1|share/man/man1|g' cli/CMakeLists.txt || die
+
+ cmake_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DLIB_INSTALL_DIR=$(get_libdir)
+ -DJAVA=OFF
+ -DRUBY=OFF
+ )
+ cmake_src_configure
+}
diff --git a/media-gfx/apngasm/files/apngasm-3.1.10-boost-1.89.patch b/media-gfx/apngasm/files/apngasm-3.1.10-boost-1.89.patch
new file mode 100644
index 000000000000..6586215e1591
--- /dev/null
+++ b/media-gfx/apngasm/files/apngasm-3.1.10-boost-1.89.patch
@@ -0,0 +1,33 @@
+Backported from: https://github.com/apngasm/apngasm/pull/111
+Manually fixed up for differences in lib/CMakeLists.txt due to
+our dynamic linking patch.
+
+From: Michael Cho <michael@michaelcho.dev>
+Date: Sun, 10 Aug 2025 19:23:29 -0400
+Subject: [PATCH] Fix build with Boost 1.89.0
+
+--- a/cli/CMakeLists.txt
++++ b/cli/CMakeLists.txt
+@@ -34,7 +34,7 @@ endif ()
+ if (APPLE OR WIN32)
+ set(Boost_USE_STATIC_LIBS ON)
+ endif ()
+-find_package(Boost REQUIRED COMPONENTS program_options regex system)
++find_package(Boost REQUIRED COMPONENTS program_options regex OPTIONAL_COMPONENTS system)
+ include_directories(${Boost_INCLUDE_DIRS})
+
+ # Generate executable
+--- a/lib/CMakeLists.txt
++++ b/lib/CMakeLists.txt
+@@ -71,9 +71,9 @@ target_link_libraries(${APNGASM_STATIC_LIB_TARGET} ${ZLIB_LIBRARIES})
+ #endif ()
+ #set(Boost_USE_STATIC_LIBS OFF)
+ #SET(CMAKE_FIND_LIBRARY_SUFFIXES .dll.a .a .lib ${CMAKE_FIND_LIBRARY_SUFFIXES})
+-find_package(Boost REQUIRED COMPONENTS program_options regex system)
++find_package(Boost REQUIRED COMPONENTS program_options regex OPTIONAL_COMPONENTS 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_DYNAMIC_LIB_TARGET} ${Boost_LIBRARIES})
+
+ get_target_property(APNGASM_DYNAMIC_LIB_TARGET_NAME ${APNGASM_DYNAMIC_LIB_TARGET} OUTPUT_NAME)
+ set(APNGASM_LIBRARIES
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..fdc4f5ea41e8
--- /dev/null
+++ b/media-gfx/apngasm/files/apngasm-3.1.10-static.patch
@@ -0,0 +1,66 @@
+--- a/cli/CMakeLists.txt
++++ b/cli/CMakeLists.txt
+@@ -51,7 +51,7 @@ set_target_properties(apngasm-cli
+
+ # Link to built apngasm library
+ target_link_libraries(apngasm-cli
+- apngasm
++ apngasm-dynamic
+ ${Boost_LIBRARIES}
+ )
+
+--- 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}
+ )
+
diff --git a/media-gfx/apngasm/metadata.xml b/media-gfx/apngasm/metadata.xml
new file mode 100644
index 000000000000..5f33304011d5
--- /dev/null
+++ b/media-gfx/apngasm/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd">
+<pkgmetadata>
+ <origin>baldeagleos-repo</origin>
+</pkgmetadata>