summaryrefslogtreecommitdiff
path: root/media-libs/jasper
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-libs/jasper
reinit the tree, so we can have metadata
Diffstat (limited to 'media-libs/jasper')
-rw-r--r--media-libs/jasper/Manifest6
-rw-r--r--media-libs/jasper/jasper-2.0.12.ebuild63
-rw-r--r--media-libs/jasper/jasper-9999.ebuild65
-rw-r--r--media-libs/jasper/metadata.xml11
4 files changed, 145 insertions, 0 deletions
diff --git a/media-libs/jasper/Manifest b/media-libs/jasper/Manifest
new file mode 100644
index 000000000000..b63bc360a3dd
--- /dev/null
+++ b/media-libs/jasper/Manifest
@@ -0,0 +1,6 @@
+DIST jasper-2.0.12.tar.gz 1311323 SHA256 f0bcc1c4de5fab199f2e792acf269eb34d54689777c305d80e2498788f9f204b SHA512 a308983511119d85e6580772f5164c188e2e170500fa4b98c8831aa63aa87cb661b88952b278e390497571f9ebf9286855a8aa946037692309ba5f41cffe265a WHIRLPOOL 375eebf63f99081171d04414bae4ef0ce5514955818ddf5c985e9dc7bb93e539bf4b90adecdd497c43bcf0658d68c9261cc7e53f164d3fe5436e02da778f6ee3
+EBUILD jasper-2.0.12.ebuild 1819 SHA256 cd77463942d7139cd9334a231e2827a46a1b6568b993122844d363bc225f9288 SHA512 ab4f51bf7574f4fefffce4113c9f7ff293b9349579c3be135b6b50c043705ed0c3b5ee57ed9243e8cee7ac354ba9a6c69d2e0795484d9d74a17a6b45cd7158a6 WHIRLPOOL 957df8ad3a51737cfd1b22e7898d6e1a332646e4d9079efaceccc7ec50fe0a3dcd4114586d75b860dca502fd363bf72b28d3f9f460c59bb408cbbe53b1396b57
+EBUILD jasper-9999.ebuild 1834 SHA256 abb6335be008f1181b2739655df2e21909d97bbdd4c2634fcfa57a754c505be4 SHA512 448b80064da111aa3b344493d5741053ad7d5f710e917fc106556fa7246b223cc860a6cb7c40c938a073517cbd8134f8354d941581dbd23c13288e820caf93a5 WHIRLPOOL d85c34911cd50ca6bb7b7484301d52b5ad479ed864cd5f4a739c00a485b228167603e8ac9564fbf7d72e8c13395501fbcf6af6676216e13145046ce958ab394f
+MISC ChangeLog 9559 SHA256 9ce3da87ab9fabe0f7fda018955f3edb882d8047fd8cbf4d65ff5016e274ea83 SHA512 c923a7c584ed54e5e5dae3a4ce6c327325aa58d93473a0be6a5c2b93a8ffd0d913e5d1e51aca3a3dcca064497cd8b5e6f1af97e66010d30fc5f099fc7b969f44 WHIRLPOOL a7e7754becb9eb423562ddf9b86b3f970481809cf5211dfdd1b7be447602b174603c8b785d9e9b6ecc61bea19933443f09f139f8f2bf789a5761e00cfce4cdae
+MISC ChangeLog-2015 15700 SHA256 1e458468b1f998563a01e5de8050bd68348e6f8ff0b65f55082075536b1709b7 SHA512 eb0cb935f82df00d60c54bdb976dd99e016f64e209915c1c83abdf8650bb3d74889ccd87fc3b0b8303fb789b172db87e54607b36308b7ee1d084f73f436792bf WHIRLPOOL cbae62a501fe1e0a13662aa02574adad57e9c67cf76411fd11e4b5a3488b29e7d11822ed4ab29807e1d18907eab9e30c7694cf1e6ae79fc409e3f6885139a1ba
+MISC metadata.xml 342 SHA256 7effe891a05b28569ccde4207765e980438f35d07ce6859d761413aea56c7383 SHA512 a01344f985dc6b7a24ca568fe859f2a593b55df39ba7b711c4db62eb7df5389007cb6c8dd1ab399f70bf8cb221a22681a9eab279ce8ab1ea6b198fa65f1b8a20 WHIRLPOOL bc9cb5715885e13b4fe2bfcfbed82c0ec3925d33a8c180926c20160171ffdf299b1748d272921a955cb8dfa6c9ce7ced449098f1ab73d7f23e2a6ea566aae11b
diff --git a/media-libs/jasper/jasper-2.0.12.ebuild b/media-libs/jasper/jasper-2.0.12.ebuild
new file mode 100644
index 000000000000..6e89a5e716af
--- /dev/null
+++ b/media-libs/jasper/jasper-2.0.12.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-multilib
+
+DESCRIPTION="Implementation of the codec specified in the JPEG-2000 Part-1 standard"
+HOMEPAGE="https://www.ece.uvic.ca/~mdadams/jasper/"
+
+if [[ ${PV} == *9999* ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/mdadams/jasper.git"
+else
+ inherit vcs-snapshot
+ SRC_URI="https://github.com/mdadams/${PN}/archive/version-${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
+fi
+
+# We limit memory usage to 128 MiB by default, specified in bytes
+: ${JASPER_MEM_LIMIT:=134217728}
+
+LICENSE="JasPer2.0"
+SLOT="0/4"
+IUSE="doc jpeg opengl"
+
+RDEPEND="
+ jpeg? ( >=virtual/jpeg-0-r2:0[${MULTILIB_USEDEP}] )
+ opengl? (
+ >=virtual/opengl-7.0-r1:0[${MULTILIB_USEDEP}]
+ >=media-libs/freeglut-2.8.1:0[${MULTILIB_USEDEP}]
+ virtual/glu[${MULTILIB_USEDEP}]
+ x11-libs/libXi[${MULTILIB_USEDEP}]
+ x11-libs/libXmu[${MULTILIB_USEDEP}]
+ )"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )"
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ -DALLOW_IN_SOURCE_BUILD=OFF
+ -DBASH_PROGRAM="${EPREFIX}"/bin/bash
+ -DJAS_ENABLE_ASAN=OFF
+ -DJAS_ENABLE_LSAN=OFF
+ -DJAS_ENABLE_MSAN=OFF
+ -DJAS_ENABLE_SHARED=ON
+ -DJAS_ENABLE_STRICT=ON
+ -DJAS_ENABLE_USAN=OFF
+ -DCMAKE_INSTALL_DOCDIR=share/doc/${PF}
+
+ # JPEG
+ -DJAS_ENABLE_LIBJPEG=$(usex jpeg)
+ -DCMAKE_DISABLE_FIND_PACKAGE_JPEG=$(usex !jpeg)
+
+ # OpenGL
+ -DJAS_ENABLE_OPENGL=$(usex opengl)
+ -DCMAKE_DISABLE_FIND_PACKAGE_OpenGL=$(usex !opengl)
+
+ # Doxygen
+ -DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=$(multilib_native_usex doc OFF ON)
+ )
+ cmake-utils_src_configure
+}
diff --git a/media-libs/jasper/jasper-9999.ebuild b/media-libs/jasper/jasper-9999.ebuild
new file mode 100644
index 000000000000..d0e060bfd024
--- /dev/null
+++ b/media-libs/jasper/jasper-9999.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-multilib
+
+DESCRIPTION="Implementation of the codec specified in the JPEG-2000 Part-1 standard"
+HOMEPAGE="https://www.ece.uvic.ca/~mdadams/jasper/"
+
+if [[ ${PV} == *9999* ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/mdadams/jasper.git"
+else
+ inherit vcs-snapshot
+ SRC_URI="https://github.com/mdadams/${PN}/archive/version-${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 \
+ ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux \
+ ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
+fi
+
+# We limit memory usage to 128 MiB by default, specified in bytes
+: ${JASPER_MEM_LIMIT:=134217728}
+
+LICENSE="JasPer2.0"
+SLOT="0"
+IUSE="doc jpeg opengl"
+
+RDEPEND="
+ jpeg? ( >=virtual/jpeg-0-r2:0[${MULTILIB_USEDEP}] )
+ opengl? (
+ >=virtual/opengl-7.0-r1:0[${MULTILIB_USEDEP}]
+ >=media-libs/freeglut-2.8.1:0[${MULTILIB_USEDEP}]
+ virtual/glu[${MULTILIB_USEDEP}]
+ x11-libs/libXi[${MULTILIB_USEDEP}]
+ x11-libs/libXmu[${MULTILIB_USEDEP}]
+ )"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )"
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ -DALLOW_IN_SOURCE_BUILD=OFF
+ -DBASH_PROGRAM="${EPREFIX}"/bin/bash
+ -DJAS_ENABLE_ASAN=OFF
+ -DJAS_ENABLE_LSAN=OFF
+ -DJAS_ENABLE_MSAN=OFF
+ -DJAS_ENABLE_SHARED=ON
+ -DJAS_ENABLE_STRICT=ON
+ -DJAS_ENABLE_USAN=OFF
+ -DCMAKE_INSTALL_DOCDIR=share/doc/${PF}
+
+ # JPEG
+ -DJAS_ENABLE_LIBJPEG=$(usex jpeg)
+ -DCMAKE_DISABLE_FIND_PACKAGE_JPEG=$(usex !jpeg)
+
+ # OpenGL
+ -DJAS_ENABLE_OPENGL=$(usex opengl)
+ -DCMAKE_DISABLE_FIND_PACKAGE_OpenGL=$(usex !opengl)
+
+ # Doxygen
+ -DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=$(multilib_native_usex doc OFF ON)
+ )
+ cmake-utils_src_configure
+}
diff --git a/media-libs/jasper/metadata.xml b/media-libs/jasper/metadata.xml
new file mode 100644
index 000000000000..2925a2331766
--- /dev/null
+++ b/media-libs/jasper/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>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">mdadams/jasper</remote-id>
+ </upstream>
+</pkgmetadata>