summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/simage/Manifest1
-rw-r--r--media-libs/simage/files/simage-1.8.1-0001-Gentoo-specific-remove-RELEASE-flag-from-pkg-config.patch28
-rw-r--r--media-libs/simage/simage-1.8.1.ebuild86
-rw-r--r--media-libs/simage/simage-9999.ebuild86
4 files changed, 201 insertions, 0 deletions
diff --git a/media-libs/simage/Manifest b/media-libs/simage/Manifest
index 9b5912ad3db9..6af22527239c 100644
--- a/media-libs/simage/Manifest
+++ b/media-libs/simage/Manifest
@@ -1 +1,2 @@
DIST simage-1.8.0-src.tar.gz 797069 BLAKE2B 6f9e3512c9815974b1b2799306c6567f6b5aec6771fe31e0a5fa47a827819df02e80e976063ddbae3e3aa3a4d33da68a23c9067e7b91f82c28592f83d0e782cc SHA512 fb4943c38f418461b087d5d013c2054f25d553a872fc80f9445a5e907901eb40265d838c5cc1031032dd84885f066f1c640a1949bc450591fb0ea88c05d1e38f
+DIST simage-1.8.1.tar.gz 829490 BLAKE2B 05d3a3f7ff7c195b55d454a2bc6e086cd4439fd6e9fb694c1926a4c0be5142661bf2c7d6593f6b7ae0681234f28c7b92e325ed0928a0fb4df5e846b30fbf9156 SHA512 e6f211f453f67f601d157e36c6c4845af1e0601dd3d8d97fbb993c50dc54c8908c2e1e345ea1dd578b8fa2dca823d8e1bab7f29a0a0d73732ca597cc5c673cbe
diff --git a/media-libs/simage/files/simage-1.8.1-0001-Gentoo-specific-remove-RELEASE-flag-from-pkg-config.patch b/media-libs/simage/files/simage-1.8.1-0001-Gentoo-specific-remove-RELEASE-flag-from-pkg-config.patch
new file mode 100644
index 000000000000..341cee6db318
--- /dev/null
+++ b/media-libs/simage/files/simage-1.8.1-0001-Gentoo-specific-remove-RELEASE-flag-from-pkg-config.patch
@@ -0,0 +1,28 @@
+From 8c4fda363a940a365571ae0985e742f7df1f9620 Mon Sep 17 00:00:00 2001
+From: Bernd Waibel <waebbl@gmail.com>
+Date: Wed, 13 Jan 2021 22:03:46 +0100
+Subject: [PATCH] [Gentoo-specific] remove RELEASE flag from pkg-config
+
+Signed-off-by: Bernd Waibel <waebbl@gmail.com>
+---
+ CMakeLists.txt | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index d869715..a980571 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -794,8 +794,8 @@ if(UNIX OR MINGW)
+ set(PKG_CONFIG_REQUIRES "$<$<BOOL:${PKG_CONFIG_REQUIRES}>:$<JOIN:${PKG_CONFIG_REQUIRES}, >>")
+ set(PKG_CONFIG_REQUIRES_PRIVATE "$<$<BOOL:${PKG_CONFIG_REQUIRES_PRIVATE}>:$<JOIN:${PKG_CONFIG_REQUIRES_PRIVATE}, >>")
+
+- set(PKG_CONFIG_CFLAGS "${CMAKE_C_FLAGS} ${CMAKE_C_FLAGS_RELEASE} ${PKG_CONFIG_CFLAGS}")
+- set(PKG_CONFIG_CXXFLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_RELEASE} ${PKG_CONFIG_CXXFLAGS}")
++ set(PKG_CONFIG_CFLAGS "${CMAKE_C_FLAGS} ${PKG_CONFIG_CFLAGS}")
++ set(PKG_CONFIG_CXXFLAGS "${CMAKE_CXX_FLAGS} ${PKG_CONFIG_CXXFLAGS}")
+
+ # PKG-CONFIG settings
+ # according to https://www.gnu.org/prep/standards/html_node/Directory-Variables.html
+--
+2.30.0
+
diff --git a/media-libs/simage/simage-1.8.1.ebuild b/media-libs/simage/simage-1.8.1.ebuild
new file mode 100644
index 000000000000..abb7ac24fcbc
--- /dev/null
+++ b/media-libs/simage/simage-1.8.1.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake flag-o-matic
+
+DESCRIPTION="Image and video texturing library"
+HOMEPAGE="https://github.com/coin3d/simage/"
+
+if [[ ${PV} = *9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/coin3d/simage.git"
+else
+ SRC_URI="https://github.com/coin3d/simage/releases/download/v${PV}/${P}-src.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+ S="${WORKDIR}/${PN}"
+fi
+
+LICENSE="BSD-1"
+SLOT="0"
+IUSE="gif jpeg png qt5 sndfile test tiff vorbis zlib"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ gif? ( media-libs/giflib:= )
+ jpeg? ( virtual/jpeg:0 )
+ png? ( media-libs/libpng:0= )
+ qt5? (
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ )
+ sndfile? (
+ media-libs/libsndfile
+ media-libs/flac
+ )
+ tiff? (
+ media-libs/tiff[lzma,zstd]
+ app-arch/xz-utils
+ app-arch/zstd:=
+ )
+ vorbis? (
+ media-libs/libogg
+ media-libs/libvorbis
+ media-libs/opus
+ )
+ zlib? ( sys-libs/zlib:= )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="test? ( media-libs/libsndfile )"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-0001-Gentoo-specific-remove-RELEASE-flag-from-pkg-config.patch
+)
+
+DOCS=(AUTHORS ChangeLog NEWS README)
+
+src_configure() {
+ local mycmakeargs=(
+ -DSIMAGE_BUILD_DOCUMENTATION=OFF
+ -DSIMAGE_BUILD_EXAMPLES=OFF
+ -DSIMAGE_BUILD_SHARED_LIBS=ON
+ -DSIMAGE_BUILD_TESTS=$(usex test)
+ -DSIMAGE_EPS_SUPPORT=ON
+ -DSIMAGE_GIF_SUPPORT=$(usex gif)
+ -DSIMAGE_JPEG_SUPPORT=$(usex jpeg)
+ -DSIMAGE_LIBSNDFILE_SUPPORT=$(usex sndfile)
+ -DSIMAGE_MPEG2ENC_SUPPORT=ON
+ -DSIMAGE_OGGVORBIS_SUPPORT=$(usex vorbis)
+ -DSIMAGE_PIC_SUPPORT=ON
+ -DSIMAGE_PNG_SUPPORT=$(usex png)
+ -DSIMAGE_RGB_SUPPORT=ON
+ -DSIMAGE_TGA_SUPPORT=ON
+ -DSIMAGE_TIFF_SUPPORT=$(usex tiff)
+ -DSIMAGE_USE_AVIENC=OFF # Windows only
+ -DSIMAGE_USE_CGIMAGE=OFF # OS X only
+ -DSIMAGE_USE_GDIPLUS=OFF # Windows only
+ -DSIMAGE_USE_QIMAGE=$(usex qt5)
+ -DSIMAGE_USE_QT5=$(usex qt5)
+ -DSIMAGE_USE_QUICKTIME=OFF # OS X only
+ -DSIMAGE_XWD_SUPPORT=ON
+ -DSIMAGE_ZLIB_SUPPORT=$(usex zlib)
+ )
+
+ cmake_src_configure
+}
diff --git a/media-libs/simage/simage-9999.ebuild b/media-libs/simage/simage-9999.ebuild
new file mode 100644
index 000000000000..4dc309e659c7
--- /dev/null
+++ b/media-libs/simage/simage-9999.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake flag-o-matic
+
+DESCRIPTION="Image and video texturing library"
+HOMEPAGE="https://github.com/coin3d/simage/"
+
+if [[ ${PV} = *9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/coin3d/simage.git"
+else
+ SRC_URI="https://github.com/coin3d/simage/releases/download/v${PV}/${P}-src.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+ S="${WORKDIR}/${PN}"
+fi
+
+LICENSE="BSD-1"
+SLOT="0"
+IUSE="gif jpeg png qt5 sndfile test tiff vorbis zlib"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ gif? ( media-libs/giflib:= )
+ jpeg? ( virtual/jpeg:0 )
+ png? ( media-libs/libpng:0= )
+ qt5? (
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ )
+ sndfile? (
+ media-libs/libsndfile
+ media-libs/flac
+ )
+ tiff? (
+ media-libs/tiff[lzma,zstd]
+ app-arch/xz-utils
+ app-arch/zstd:=
+ )
+ vorbis? (
+ media-libs/libogg
+ media-libs/libvorbis
+ media-libs/opus
+ )
+ zlib? ( sys-libs/zlib:= )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="test? ( media-libs/libsndfile )"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.8.1-0001-Gentoo-specific-remove-RELEASE-flag-from-pkg-config.patch
+)
+
+DOCS=(AUTHORS ChangeLog NEWS README)
+
+src_configure() {
+ local mycmakeargs=(
+ -DSIMAGE_BUILD_DOCUMENTATION=OFF
+ -DSIMAGE_BUILD_EXAMPLES=OFF
+ -DSIMAGE_BUILD_SHARED_LIBS=ON
+ -DSIMAGE_BUILD_TESTS=$(usex test)
+ -DSIMAGE_EPS_SUPPORT=ON
+ -DSIMAGE_GIF_SUPPORT=$(usex gif)
+ -DSIMAGE_JPEG_SUPPORT=$(usex jpeg)
+ -DSIMAGE_LIBSNDFILE_SUPPORT=$(usex sndfile)
+ -DSIMAGE_MPEG2ENC_SUPPORT=ON
+ -DSIMAGE_OGGVORBIS_SUPPORT=$(usex vorbis)
+ -DSIMAGE_PIC_SUPPORT=ON
+ -DSIMAGE_PNG_SUPPORT=$(usex png)
+ -DSIMAGE_RGB_SUPPORT=ON
+ -DSIMAGE_TGA_SUPPORT=ON
+ -DSIMAGE_TIFF_SUPPORT=$(usex tiff)
+ -DSIMAGE_USE_AVIENC=OFF # Windows only
+ -DSIMAGE_USE_CGIMAGE=OFF # OS X only
+ -DSIMAGE_USE_GDIPLUS=OFF # Windows only
+ -DSIMAGE_USE_QIMAGE=$(usex qt5)
+ -DSIMAGE_USE_QT5=$(usex qt5)
+ -DSIMAGE_USE_QUICKTIME=OFF # OS X only
+ -DSIMAGE_XWD_SUPPORT=ON
+ -DSIMAGE_ZLIB_SUPPORT=$(usex zlib)
+ )
+
+ cmake_src_configure
+}