diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-01-31 18:57:01 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-01-31 18:57:01 +0000 |
commit | 69051588e2f955485fe5d45d45e616bc60a2de57 (patch) | |
tree | ef8699cca7ce3773b1de747b167ceeacdc60cb92 /media-libs/jpeg | |
parent | d7ed2b01311f15ba54fe8ea872aab7d59ab2b193 (diff) |
gentoo resync : 31.01.2021
Diffstat (limited to 'media-libs/jpeg')
-rw-r--r-- | media-libs/jpeg/Manifest | 5 | ||||
-rw-r--r-- | media-libs/jpeg/files/jpeg-7-maxmem_sysconf.patch | 49 | ||||
-rw-r--r-- | media-libs/jpeg/jpeg-9d.ebuild | 71 | ||||
-rw-r--r-- | media-libs/jpeg/metadata.xml | 5 |
4 files changed, 0 insertions, 130 deletions
diff --git a/media-libs/jpeg/Manifest b/media-libs/jpeg/Manifest deleted file mode 100644 index b05b6b2211ec..000000000000 --- a/media-libs/jpeg/Manifest +++ /dev/null @@ -1,5 +0,0 @@ -AUX jpeg-7-maxmem_sysconf.patch 1313 BLAKE2B 7289891453e5b4ecb474ab7b77a107f7d2446ac34362f53327353e29719500cf8eaf420886114a04b052e0d38ef81a3b2cf7e2ee2ff00b7d30cb4cb948c40165 SHA512 42a3bccf20db20d1b0e9dee3b5a8b1733b81b5d3dcda83aae8e910d023af0fcbce920c010d11dc8b637935886eede05161393d8e594f48189f72a346f3f8fed8 -DIST jpegsrc.v9d.tar.gz 1070160 BLAKE2B a905a15c0eadc8ebd797fe009685a2c300dc39600ed7416d58adf1ed326a26ca45146387fe73a87a589f4bed95e652f5385b4df5e7544a4e348bda27356295c2 SHA512 c425cf413e679e4112b428592e6facc813cadf92e42a6b850c5d348b3dd47b0599e2f4a119d7ff543b762cdcadd42a77ed1429a08874e73f64a54fb869714357 -DIST libjpeg8_8d-1.debian.tar.gz 13676 BLAKE2B ac6fab3e52f91c9ece95ed809fc972afc92c55754a59358f7dacb056917b1878f6f9be85a20ccb34eb13489a9963a00659fe25c27e8b18b44961c6ba5f3214cd SHA512 7def4f13524f0af3b9adf35a370027a18f43b9a635f56a17d5bb7883370db8b18b8a12737d0f0cb4b0287ccf8fb474eb5f754de6b398ffe7d522c54e5bf68040 -EBUILD jpeg-9d.ebuild 1962 BLAKE2B d6ac1f20a5deb79b846d9c1eaf3b32094c28edbeaa285fd8542ba9623424a5d572d177f3cd9da369b7552c4c2554c4cd72cf1ce95fe0926eb88e3321476fc528 SHA512 76e8ef989401996128de2f837e7ce33bb69a2661d489ef4455af955ee2d6a3989ce811400207f0ecbd2ff9aac352d62e6b9f01d8c9c71b5c2c36262e8d213c02 -MISC metadata.xml 166 BLAKE2B c254f1fb642881aba57637be14fb0a89b10384f91a128feaec3a8c870d76efc2cbacb92caccc0dee2dd19a5ac5eaf8643080dafa05c4e2ac96a68568927e5afd SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 diff --git a/media-libs/jpeg/files/jpeg-7-maxmem_sysconf.patch b/media-libs/jpeg/files/jpeg-7-maxmem_sysconf.patch deleted file mode 100644 index 9ea87d4fa399..000000000000 --- a/media-libs/jpeg/files/jpeg-7-maxmem_sysconf.patch +++ /dev/null @@ -1,49 +0,0 @@ -# Make a reasonable guess about memory limits using sysconf(). -# includes 5% slop factor as suggested in documentation. - ---- jpeg-7/jmemansi.c -+++ jpeg-7/jmemansi.c -@@ -12,6 +12,15 @@ - * is shoved onto the user. - */ - -+#include <unistd.h> -+ -+#ifdef __FreeBSD__ -+# include <sys/types.h> -+# include <sys/sysctl.h> -+# include <sys/vmmeter.h> -+# include <vm/vm_param.h> -+#endif -+ - #define JPEG_INTERNALS - #include "jinclude.h" - #include "jpeglib.h" -@@ -157,7 +166,26 @@ - GLOBAL(long) - jpeg_mem_init (j_common_ptr cinfo) - { -- return DEFAULT_MAX_MEM; /* default for max_memory_to_use */ -+#ifdef _SC_AVPHYS_PAGES -+ long phys_size; -+ -+ if ((phys_size = sysconf(_SC_AVPHYS_PAGES)) == -1) -+ return DEFAULT_MAX_MEM; /* default for max_memory_to_use */ -+ if ((phys_size *= sysconf(_SC_PAGESIZE)) < 0) -+ return DEFAULT_MAX_MEM; -+ return (long) (phys_size * 0.95); -+#elif defined(HAVE_SYSCTL) && defined(HW_PHYSMEM) -+ /* This works on *bsd and darwin. */ -+ unsigned int physmem; -+ size_t len = sizeof physmem; -+ static int mib[2] = { CTL_HW, HW_PHYSMEM }; -+ -+ if (sysctl (mib, ARRAY_SIZE (mib), &physmem, &len, NULL, 0) == 0 -+ && len == sizeof (physmem)) -+ return (long) (physmem * 0.95); -+#endif -+ -+ return DEFAULT_MAX_MEM; - } - - GLOBAL(void) diff --git a/media-libs/jpeg/jpeg-9d.ebuild b/media-libs/jpeg/jpeg-9d.ebuild deleted file mode 100644 index a9830591cae8..000000000000 --- a/media-libs/jpeg/jpeg-9d.ebuild +++ /dev/null @@ -1,71 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit libtool toolchain-funcs multilib-minimal - -DESCRIPTION="Library to load, handle and manipulate images in the JPEG format" -HOMEPAGE="http://jpegclub.org/ http://www.ijg.org/" -SRC_URI="http://www.ijg.org/files/${PN}src.v${PV}.tar.gz - mirror://debian/pool/main/libj/lib${PN}8/lib${PN}8_8d-1.debian.tar.gz" - -LICENSE="IJG" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" -IUSE="static-libs" - -DEPEND="" -RDEPEND="!media-libs/libjpeg-turbo:0" - -DOCS=( change.log example.c README {coderules,filelist,install,jconfig,libjpeg,structure,usage,wizard}.txt ) - -PATCHES=( "${FILESDIR}"/${PN}-7-maxmem_sysconf.patch ) - -src_prepare() { - default - elibtoolize -} - -multilib_src_configure() { - # Fix building against this library on eg. Solaris and DragonFly BSD, see: - # http://mail-index.netbsd.org/pkgsrc-bugs/2010/01/18/msg035644.html - local ldverscript= - [[ ${CHOST} == *-solaris* ]] && ldverscript="--disable-ld-version-script" - - ECONF_SOURCE=${S} \ - econf \ - $(use_enable static-libs static) \ - --enable-maxmem=64 \ - ${ldverscript} -} - -multilib_src_compile() { - emake - - if multilib_is_native_abi; then - # Build exifautotran and jpegexiforient - cd ../debian/extra - emake CC="$(tc-getCC)" CFLAGS="${LDFLAGS} ${CFLAGS}" - fi -} - -multilib_src_install() { - emake DESTDIR="${D}" install -} - -multilib_src_install_all() { - find "${D}" -name '*.la' -delete || die - - einstalldocs - - # Install exifautotran and jpegexiforient - newdoc ../debian/changelog changelog.debian - cd ../debian/extra - emake \ - DESTDIR="${D}" prefix="${EPREFIX}"/usr \ - INSTALL="install -m755" INSTALLDIR="install -d -m755" \ - install - # Remove +x bits from man pages. - find "${ED}"/usr/share/man/ -type f -perm /1 -exec chmod a-x {} + || die -} diff --git a/media-libs/jpeg/metadata.xml b/media-libs/jpeg/metadata.xml deleted file mode 100644 index 6f49eba8f496..000000000000 --- a/media-libs/jpeg/metadata.xml +++ /dev/null @@ -1,5 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> -<!-- maintainer-needed --> -</pkgmetadata> |