diff options
| author | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
|---|---|---|
| committer | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
| commit | ecdac123787b96ce6649f0f91da12ea6458cc2b1 (patch) | |
| tree | b89c74d9e6fe6e8aebc4c77bcbeb4ab73214127d /media-gfx/apngasm | |
| parent | 1be72aa41cf41dedadeecf59dca9f01de6381f5e (diff) | |
| download | baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.gz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.xz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.zip | |
Updating liguros repo
Diffstat (limited to 'media-gfx/apngasm')
| -rw-r--r-- | media-gfx/apngasm/Manifest | 1 | ||||
| -rw-r--r-- | media-gfx/apngasm/apngasm-2.91.ebuild | 52 | ||||
| -rw-r--r-- | media-gfx/apngasm/files/apngasm-2.91-makefile.patch | 22 | ||||
| -rw-r--r-- | media-gfx/apngasm/metadata.xml | 13 |
4 files changed, 88 insertions, 0 deletions
diff --git a/media-gfx/apngasm/Manifest b/media-gfx/apngasm/Manifest new file mode 100644 index 000000000000..1c19c3e95c96 --- /dev/null +++ b/media-gfx/apngasm/Manifest @@ -0,0 +1 @@ +DIST apngasm-2.91-src.zip 597267 BLAKE2B a34a765fef49aa0ac29973b8dc450bfcdfe7aa83dffe19919f916a136db3d0bfebf3c1fac79bfb81a3900cee87afd888469e5432500d181a9539696b4573a42b SHA512 2415389a989f7a7ff7f3e1328f7920c7515c9a492c89ef216ff53db68fe2f1a674ff60d5f4bfd5a8c710f625456557ae7d5b25f486ac826e3113976cd9fc11dc diff --git a/media-gfx/apngasm/apngasm-2.91.ebuild b/media-gfx/apngasm/apngasm-2.91.ebuild new file mode 100644 index 000000000000..f9c2fdf64fb9 --- /dev/null +++ b/media-gfx/apngasm/apngasm-2.91.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="create an APNG from multiple PNG files" +HOMEPAGE="https://sourceforge.net/projects/apngasm/" +SRC_URI="mirror://sourceforge/${PN}/${PV}/${P}-src.zip" + +LICENSE="ZLIB 7z? ( LGPL-2.1 )" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="7z zopfli" + +RDEPEND="media-libs/libpng:0=[apng] + sys-libs/zlib + zopfli? ( app-arch/zopfli:= )" +DEPEND="${RDEPEND} + app-arch/unzip" + +S=${WORKDIR} + +PATCHES=( "${FILESDIR}"/${P}-makefile.patch ) + +src_prepare() { + default + + # remove bundled libs + rm -r zopfli zlib libpng || die + + if use 7z; then + append-cflags -DFEATURE_7ZIP + else + sed -i '/^SRC_DIRS\s\+=/s/7z//' Makefile || die + fi + + if use zopfli; then + append-cflags -DFEATURE_ZOPFLI + sed -i '/^LIBS\s\+=/s/$/ -lzopfli/' Makefile || die + fi +} + +src_compile() { + emake CC="$(tc-getCC)" +} + +src_install() { + dobin ${PN} + dodoc readme.txt +} diff --git a/media-gfx/apngasm/files/apngasm-2.91-makefile.patch b/media-gfx/apngasm/files/apngasm-2.91-makefile.patch new file mode 100644 index 000000000000..b9fb9c20ee89 --- /dev/null +++ b/media-gfx/apngasm/files/apngasm-2.91-makefile.patch @@ -0,0 +1,22 @@ +--- apngasm-2.91-src/Makefile ++++ apngasm-2.91-src/Makefile +@@ -1,8 +1,7 @@ + PACKAGE = apngasm + CC = gcc +-SRC_DIRS = . 7z zopfli +-CFLAGS = -Wall -pedantic -DFEATURE_7ZIP -DFEATURE_ZOPFLI +-CFLAGS_OPT = -O2 ++SRC_DIRS = . 7z ++CFLAGS += -Wall -pedantic + CFLAGS_7Z = -Wno-sign-compare -Wno-reorder -Wno-maybe-uninitialized -Wno-parentheses + LIBS = -lstdc++ -lm -lpng -lz + +@@ -16,7 +15,7 @@ + all : $(PACKAGE) + + $(PACKAGE) : objdirs $(OBJECTS) +- $(CC) -o $@ $(OBJECTS) -s $(LIBS) ++ $(CC) -o $@ $(OBJECTS) $(LDFLAGS) $(LIBS) + + objdirs : + mkdir -p $(OBJ_DIRS) diff --git a/media-gfx/apngasm/metadata.xml b/media-gfx/apngasm/metadata.xml new file mode 100644 index 000000000000..7d99542a9f3b --- /dev/null +++ b/media-gfx/apngasm/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + <use> + <flag name="7z">Enable support for 7zip compression</flag> + <flag name="zopfli">Enable support for Zopfli compression</flag> + </use> + <upstream> + <remote-id type="sourceforge">apngasm</remote-id> + </upstream> + <origin>gentoo-staging</origin> +</pkgmetadata> |
