diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /media-libs/libmng |
reinit the tree, so we can have metadata
Diffstat (limited to 'media-libs/libmng')
-rw-r--r-- | media-libs/libmng/Manifest | 9 | ||||
-rw-r--r-- | media-libs/libmng/files/libmng-2.0.2-jpeg-9a.patch | 39 | ||||
-rw-r--r-- | media-libs/libmng/files/libmng-2.0.2-stdio.patch | 14 | ||||
-rw-r--r-- | media-libs/libmng/libmng-2.0.2-r1.ebuild | 47 | ||||
-rw-r--r-- | media-libs/libmng/libmng-2.0.3.ebuild | 44 | ||||
-rw-r--r-- | media-libs/libmng/metadata.xml | 11 |
6 files changed, 164 insertions, 0 deletions
diff --git a/media-libs/libmng/Manifest b/media-libs/libmng/Manifest new file mode 100644 index 000000000000..a46d080eb032 --- /dev/null +++ b/media-libs/libmng/Manifest @@ -0,0 +1,9 @@ +AUX libmng-2.0.2-jpeg-9a.patch 1183 SHA256 743504ea59784305b30597c0350dd5b506ac2ecae6915080fdd3c14255648517 SHA512 f8c3b7296b046b5fdb6ef03b06f83a8d2034fb405c7fa8f61ebe06e71722bc6961ba09107080e08f0d57669eeab4b1fad70b9bb3fbdced039efa862ca53bc1d0 WHIRLPOOL 0da7edc7ea4e1ac90deffc481075e3aaa9054c0659fe7b4eaf721ba2455f83fb852157564e7d12f52554a00dcb9136ecef412ce18a5e9e52bda40a96990ff888 +AUX libmng-2.0.2-stdio.patch 261 SHA256 88889dfd561ca537e11560506cb4bb63c3c47a700c02647e118900babb3aa707 SHA512 44492809618df0ff3e7a41c55561703ad1331853c8872237b828f767a07236be9630bb3955b4c3c444d9fb80440697b2a52fa99fdbbe2054bc35ca6eba065c06 WHIRLPOOL 476a885470ae3023f0de952190a9670e226d52020f5228a5076b9c28c6a1fcfef2635568b784dad0d742e67cdec9d647f7d13d7dc8c0cf726270acb9fba0cdef +DIST libmng-2.0.2.tar.xz 951844 SHA256 278c04c781e5a679c91df006fee7e71233e6f15557aef513a19fe49cd650bc50 SHA512 76ff107df43297837e075a4b57dac75ece501a57060884720a22518d9514ad0af64d69d22fe12a92d3bce3e50ae8ca3c8081680535743d2bde9ae9fa11e32687 WHIRLPOOL 33d18313d8d317ae299f45c97944f6c6074e0c6fbe16f84950a4b6315235bdb382c4dfd1abec3071ee9b548b357fe63a7ee1697a5461df2a9c38d1fdef085634 +DIST libmng-2.0.3.tar.xz 951808 SHA256 4a462fdd48d4bc82c1d7a21106c8a18b62f8cc0042454323058e6da0dbb57dd3 SHA512 764efd94643c17c449abcb8f676ec2aa750a2461cf46bc961343f8d443a16ac2caa135c27d846deb2351b9f25d6170c42a500d21f63c13276905fdd743b8fec6 WHIRLPOOL b781cd6ac541aeb825f916f7384b1801f162a28b637c80a1950ca10a6daebd88d02f74548a9165c9183ff6dea0e9311f73a77cc2229560fa0c4d4c3b23696c1b +EBUILD libmng-2.0.2-r1.ebuild 1305 SHA256 0d9a67b42564e31ec7f9f075f715e985e6ed38b959374d41e3bb47f030b24af6 SHA512 110a9b7ae16ca61b8792f8c3bed88612fecd3b5fea6eae9b516103e22ae4dc78c129272961ac213a8feeb1e8f457aba86cc742cd464dd5169565395f4fae073e WHIRLPOOL 0786209aa1a11fcaa2b753567b4e6bed869417e26c57ffbdb1f638215af41dfeb7938589519017a71da52cb8421676d3456a2718ec82835e243cb24f0397b502 +EBUILD libmng-2.0.3.ebuild 1266 SHA256 82b00747de5e9b3fdd4202cc443b86de14d1b9b0f93323d703d25a9a1b2f0ca3 SHA512 28a97fb863cd56e526d7e2a5c9fc2efeeec803b8563c0e14aa35c4cf352724868c3bd0f77154d66743d563f93a7515663d361aa831b5203b1edbcee49edc6b9c WHIRLPOOL f357a562fc4b582105b4a8e3d1fcdbe8c5a8c98d339d5cc6180df8c145a5ed4d489d4c14a9d02c056d72e0ad457051d3a7d6b2ae708b119bcb1de49f553a44e1 +MISC ChangeLog 2552 SHA256 4d50774d55be10a0c68092b0dc9f1b900883e37da0d2c3d17caf8406fb96c49e SHA512 4ed595455c59595025a1fa286e4694a9d6671e5169b37b158198f9fbddef92220c9ca666ffb418a3573060ceb287b23f1b9e63b1ca0b82e75aa1de3e392dae57 WHIRLPOOL c832305f5e8d8377523bf134a665e7e541b78344b35883947d82ac35452cf594dd39d6481222a9d4727895aff9d6c8e3743106d439b296063fd38e8b9b927784 +MISC ChangeLog-2015 13561 SHA256 f2df92af0241b1f215945cc50a8362e4424832a03b46991ace2abbdd925d3cb6 SHA512 19ebe21f7563ff394005a7fbb36e278791fdd506c063045f01defd5753fe117f534a2ad31b2e5e314908b0858ae75f1f89f9234dd44c9a41b8cfe1c8e6944441 WHIRLPOOL 5e9e7531c6165be58f0ff18b670c437df900915bd250e09e075440d3ae3bd7a10f49c2f32fece9cd83075319fe64feedc01114343443b6b79485b3ed00e7a325 +MISC metadata.xml 335 SHA256 6fab8bfb6645ee9a8ece77e9b92d7f6e7c605fea14df8e1211cace9e644205b4 SHA512 a870b439c25b0dc7d251b15c53eded27ed9a4c708dd81bb4facc7cda49b57abb4a24c013b36c11db4d8a27af2cd55ad012792fe81e8893f5c92007790c4fd8f8 WHIRLPOOL 39fee64c4b1a50f5b20f657e2f4b930fdcd1495c15b6edc1d57b1a066852a3a7fa3989688bcb9034e6423e679ce9c82f220c59b7cebe66a8528a1880cc9e2484 diff --git a/media-libs/libmng/files/libmng-2.0.2-jpeg-9a.patch b/media-libs/libmng/files/libmng-2.0.2-jpeg-9a.patch new file mode 100644 index 000000000000..adb12c2d4a7f --- /dev/null +++ b/media-libs/libmng/files/libmng-2.0.2-jpeg-9a.patch @@ -0,0 +1,39 @@ +http://bugs.gentoo.org/520906 + +This kludge is unnecessary with jpeg-9a and is in fact breaking the build... + +libmng_jpeg.c:108:10: error: 'FALSE' undeclared (first use in this function) +libmng_jpeg.c:536:48: error: 'TRUE' undeclared (first use in this function) +libmng_jpeg_c:890:49: error: 'TRUE' undeclared (first use in this function) + +...because jmorecfg.h of jpeg-9a has this: + +#ifndef HAVE_BOOLEAN +#if defined FALSE || defined TRUE || defined QGLOBAL_H +/* Qt3 defines FALSE and TRUE as "const" variables in qglobal.h */ +typedef int boolean; +#ifndef FALSE /* in case these macros already exist */ +#define FALSE 0 /* values of boolean */ +#endif +#ifndef TRUE +#define TRUE 1 +#endif +#else +typedef enum { FALSE = 0, TRUE = 1 } boolean; +#endif +#endif + +--- libmng_types.h ++++ libmng_types.h +@@ -199,11 +199,6 @@ + #undef FAR /* possibly defined by zlib or lcms */ + #endif + #define JPEG_INTERNAL_OPTIONS /* for RGB_PIXELSIZE */ +-/* There has been a change in jpeg-9 : */ +-#ifndef _WIN32 +-#define HAVE_BOOLEAN +-typedef int boolean; +-#endif + #include <stdio.h> + #include <jpeglib.h> + #endif /* MNG_INCLUDE_IJG6B */ diff --git a/media-libs/libmng/files/libmng-2.0.2-stdio.patch b/media-libs/libmng/files/libmng-2.0.2-stdio.patch new file mode 100644 index 000000000000..0a906d4c2f35 --- /dev/null +++ b/media-libs/libmng/files/libmng-2.0.2-stdio.patch @@ -0,0 +1,14 @@ +http://bugs.gentoo.org/499480 + +Patch is from ArchLinux git libmng-2.0.2-3 + +--- libmng_types.h ++++ libmng_types.h +@@ -204,6 +204,7 @@ + #define HAVE_BOOLEAN + typedef int boolean; + #endif ++#include <stdio.h> + #include <jpeglib.h> + #endif /* MNG_INCLUDE_IJG6B */ + diff --git a/media-libs/libmng/libmng-2.0.2-r1.ebuild b/media-libs/libmng/libmng-2.0.2-r1.ebuild new file mode 100644 index 000000000000..424dfc5b6140 --- /dev/null +++ b/media-libs/libmng/libmng-2.0.2-r1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils autotools-multilib + +DESCRIPTION="Multiple Image Networkgraphics lib (animated png's)" +HOMEPAGE="http://www.libmng.com/" +SRC_URI="mirror://sourceforge/libmng/${P}.tar.xz" + +LICENSE="libmng" +SLOT="0/2" +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="lcms static-libs" + +RDEPEND=">=virtual/jpeg-0-r2:0[${MULTILIB_USEDEP}] + >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] + lcms? ( >=media-libs/lcms-2.5:2[${MULTILIB_USEDEP}] ) + abi_x86_32? ( !<=app-emulation/emul-linux-x86-baselibs-20131008-r9 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] )" +DEPEND="${RDEPEND}" + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-stdio.patch \ + "${FILESDIR}"/${P}-jpeg-9a.patch + emake distclean + autotools-multilib_src_prepare +} + +src_configure() { + local myeconfargs=( + $(use_enable static-libs static) + --with-jpeg + $(use_with lcms lcms2) + --without-lcms + ) + + autotools-multilib_src_configure +} + +src_install() { + autotools-multilib_src_install + + dodoc CHANGES README* doc/{doc.readme,libmng.txt} + doman doc/man/*.{3,5} +} diff --git a/media-libs/libmng/libmng-2.0.3.ebuild b/media-libs/libmng/libmng-2.0.3.ebuild new file mode 100644 index 000000000000..10b866b04fb7 --- /dev/null +++ b/media-libs/libmng/libmng-2.0.3.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit autotools-multilib + +DESCRIPTION="Multiple Image Networkgraphics lib (animated png's)" +HOMEPAGE="http://www.libmng.com/" +SRC_URI="mirror://sourceforge/libmng/${P}.tar.xz" + +LICENSE="libmng" +SLOT="0/2" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="lcms static-libs" + +RDEPEND=">=virtual/jpeg-0-r2:0[static-libs?,${MULTILIB_USEDEP}] + >=sys-libs/zlib-1.2.8-r1[static-libs?,${MULTILIB_USEDEP}] + lcms? ( >=media-libs/lcms-2.5:2[static-libs?,${MULTILIB_USEDEP}] ) + abi_x86_32? ( !<=app-emulation/emul-linux-x86-baselibs-20131008-r9 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] )" +DEPEND="${RDEPEND}" + +src_prepare() { + emake distclean + autotools-multilib_src_prepare +} + +src_configure() { + local myeconfargs=( + $(use_enable static-libs static) + --with-jpeg + $(use_with lcms lcms2) + --without-lcms + ) + + autotools-multilib_src_configure +} + +src_install() { + autotools-multilib_src_install + + dodoc CHANGES README* doc/{doc.readme,libmng.txt} + doman doc/man/*.{3,5} +} diff --git a/media-libs/libmng/metadata.xml b/media-libs/libmng/metadata.xml new file mode 100644 index 000000000000..95cf3d4b1dc6 --- /dev/null +++ b/media-libs/libmng/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>graphics@gentoo.org</email> + <name>Gentoo Graphics Project</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">libmng</remote-id> + </upstream> +</pkgmetadata> |