summaryrefslogtreecommitdiff
path: root/media-libs/sdl2-image
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/sdl2-image
reinit the tree, so we can have metadata
Diffstat (limited to 'media-libs/sdl2-image')
-rw-r--r--media-libs/sdl2-image/Manifest5
-rw-r--r--media-libs/sdl2-image/metadata.xml11
-rw-r--r--media-libs/sdl2-image/sdl2-image-2.0.1.ebuild59
3 files changed, 75 insertions, 0 deletions
diff --git a/media-libs/sdl2-image/Manifest b/media-libs/sdl2-image/Manifest
new file mode 100644
index 000000000000..353d5c4401e1
--- /dev/null
+++ b/media-libs/sdl2-image/Manifest
@@ -0,0 +1,5 @@
+DIST SDL2_image-2.0.1.tar.gz 7797848 SHA256 3a3eafbceea5125c04be585373bfd8b3a18f259bd7eae3efc4e6d8e60e0d7f64 SHA512 99ed5f7b69966cea5fcf9173e7270167c24b55ab459774f10dbf90f26dcb9d5f118971ffd4e583a83148976f44ca166474669398a561169d24ffba80f852306f WHIRLPOOL ba4a78ae19ba1921b0d11208f93390cc0ec31aed86f302c2b8d4ac8c55a8e783c29a3180d8557309b2874d74a081734256e9cb0d8215b369090abddf64bd0a7c
+EBUILD sdl2-image-2.0.1.ebuild 1513 SHA256 37d0d29f5cf6e48328e45634a691daddb4ae990374ae2511ae221a1e02ad71c6 SHA512 f3da0090838a632b6a6999671e1c89b907f601d80f7c9e09c98480ed117d7f8c5e210c3febb492cb0df9e47c5b5beae01d0bcee60aaef3e53a31588f959d5266 WHIRLPOOL 79c8f0e5b9c3dea8963733931e4258569a168e5cb82b539096ac9f140e46a1b221e29e73f61fca255571e506d5054303ad9c102ce9ddf8809972303c4f6cb6a8
+MISC ChangeLog 3606 SHA256 45c186c1382a593cf39ab74d450f2bcdbfb66dad6d4902abdffef3c62d438dca SHA512 b99296c7206e8027c687e372a88c29056e51166a7019fe0c14ee116e4077e708053e57f712d60cba691f803034c483290e6b1630fa80c9e11c0836b3a967aa9b WHIRLPOOL 4970b1b8155102eaed2552aaac65bcb02bb158e3e9ede32bea06012a562533f4d8074f57fb7036eff16377c86dd109ce73d00038b5e7385a46aac0043d89a84d
+MISC ChangeLog-2015 1105 SHA256 5f3cbf870a93886092bdaf7bd49eb23777d56a8e63a4d54501a6c382af4df859 SHA512 1b4b0407964aacdfe9c24a40773718afafafc27cfd186b3b736c0c59bc835df51614cc5218ce48a3a927d6f74f22bb4ba759648f87f30dfd995c045238e755af WHIRLPOOL 89bc06fd27fae8cf3de9d024b25a175317025e34653f329d609cf75878a315d5defcaa8aa0c512e6e4627dff73956d3116400ba52567bca7895d6f1909df562b
+MISC metadata.xml 326 SHA256 d3443006e81a3c08b3227244fab49c4c7fada0c40176c4a80aebcbb91cd348b4 SHA512 144746a2179b9af1bc4adc7f08e2d6c798a4b9b3d4391719c899447e96f14cbdac47facdedf9e1ba9d81f650d647ab793d83a227f0a0321cafdb96ee5ec51d34 WHIRLPOOL bdac469c0aa2b64cf584bce2a387eda8066cf6d4d930e3966dc5b07632fdb2f13cc62a4795c33ce301a168a04cec0457501715ed65cb1b972ebb92039eeb20e9
diff --git a/media-libs/sdl2-image/metadata.xml b/media-libs/sdl2-image/metadata.xml
new file mode 100644
index 000000000000..3d3ba86206dd
--- /dev/null
+++ b/media-libs/sdl2-image/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>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <use>
+ <flag name="webp">support loading WEBP images</flag>
+ </use>
+</pkgmetadata>
diff --git a/media-libs/sdl2-image/sdl2-image-2.0.1.ebuild b/media-libs/sdl2-image/sdl2-image-2.0.1.ebuild
new file mode 100644
index 000000000000..2a8330c5f9d1
--- /dev/null
+++ b/media-libs/sdl2-image/sdl2-image-2.0.1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils multilib multilib-minimal
+
+MY_P=SDL2_image-${PV}
+DESCRIPTION="Image file loading library"
+HOMEPAGE="http://www.libsdl.org/projects/SDL_image/"
+SRC_URI="http://www.libsdl.org/projects/SDL_image/release/${MY_P}.tar.gz"
+
+LICENSE="ZLIB"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="gif jpeg png static-libs tiff webp"
+
+RDEPEND="
+ >=media-libs/libsdl2-2.0.1-r1[${MULTILIB_USEDEP}]
+ >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
+ png? ( >=media-libs/libpng-1.6.10:0[${MULTILIB_USEDEP}] )
+ jpeg? ( >=virtual/jpeg-0-r2:0[${MULTILIB_USEDEP}] )
+ tiff? ( >=media-libs/tiff-3.9.7-r1:0[${MULTILIB_USEDEP}] )
+ webp? ( >=media-libs/libwebp-0.3.0[${MULTILIB_USEDEP}] )"
+DEPEND=${RDEPEND}
+
+S=${WORKDIR}/${MY_P}
+
+multilib_src_configure() {
+ ECONF_SOURCE="${S}" econf \
+ $(use_enable static-libs static) \
+ --disable-sdltest \
+ --enable-bmp \
+ $(use_enable gif) \
+ $(use_enable jpeg jpg) \
+ --disable-jpg-shared \
+ --enable-lbm \
+ --enable-pcx \
+ $(use_enable png) \
+ --disable-png-shared \
+ --enable-pnm \
+ --enable-tga \
+ $(use_enable tiff tif) \
+ --disable-tif-shared \
+ --enable-xcf \
+ --enable-xpm \
+ --enable-xv \
+ $(use_enable webp) \
+ --disable-webp-shared
+}
+
+multilib_src_install() {
+ emake DESTDIR="${D}" install
+ multilib_is_native_abi && newbin .libs/showimage$(get_exeext) showimage2$(get_exeext)
+}
+
+multilib_src_install_all() {
+ dodoc {CHANGES,README}.txt
+ prune_libtool_files
+}