media-gfx/synfig: add v1.5.0
Package-Manager: Portage-3.0.20, Repoman-3.0.3
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST synfig-1.4.2.tar.gz 5132756 BLAKE2B 6027c4a39e72af5d85f7409cb46f5dc04084b4a845d592d1cebb2207ee9a2241f47a79e65b2cb6fe3bcecfac1984be4e12105f6a7e18b1aeb1767788f286e210 SHA512 0d94027505d5ea3780f54bd8f606e1e4cc6cb1e18debdff66d4871642a0a321fe687042a0d2d1dbe1037007ac44d02e74edd7fa9dcda62ea3e5486ec47de948c
|
||||
DIST synfigstudio-1.5.0.tar.gz 11633997 BLAKE2B fbdba1f310cabe105267a3aa90b94e0be76e36a238246f18e1e6e396e9eaefd79b7ac3dbe2075caddbb4c319e8a5e66850f1139925a61962431c230ab25e9e99 SHA512 a3beecdfae5508c6ccf0aa9ec44d817264266a5bb4b7dd580ade53c613658d34e5edc860c17ba5a2d7aa5c3c91a30bb8550b87623ccaad53a4b584cc93852c40
|
||||
|
||||
23
media-gfx/synfig/files/synfigstudio-1.5.0-fix-cflags.patch
Normal file
23
media-gfx/synfig/files/synfigstudio-1.5.0-fix-cflags.patch
Normal file
@@ -0,0 +1,23 @@
|
||||
Keep sed from mangling our CFLAGS
|
||||
especially -frecord-gcc-flags, which was half removed because it contains -g
|
||||
|
||||
--- a/m4/subs.m4
|
||||
+++ b/m4/subs.m4
|
||||
@@ -80,13 +80,13 @@
|
||||
debug_flags="-D_DEBUG -g -O0"
|
||||
BIGOBJ_FLAGS=""
|
||||
($CC --version | grep -q mingw) && BIGOBJ_FLAGS="-Wa,-mbig-obj"
|
||||
- CXXFLAGS="`echo $CXXFLAGS | sed s:-O.::` $debug_flags -fno-inline $BIGOBJ_FLAGS"
|
||||
- CFLAGS="`echo $CFLAGS | sed s:-O.::` $debug_flags"
|
||||
+ CXXFLAGS="${CXXFLAGS} $debug_flags -fno-inline $BIGOBJ_FLAGS"
|
||||
+ CFLAGS="${CFLAGS} $debug_flags"
|
||||
;;
|
||||
no|*)
|
||||
debug_flags="-DNDEBUG"
|
||||
- CXXFLAGS="`echo $CXXFLAGS | sed 's:-g[[a-z-]]*\s::g' | sed 's:-g[[a-z-]]*$::'` $debug_flags"
|
||||
- CFLAGS="`echo $CFLAGS | sed 's:-g[[a-z-]]*\s::g' | sed 's:-g[[a-z-]]*$::'` $debug_flags"
|
||||
+ CXXFLAGS="${CXXFLAGS} $debug_flags"
|
||||
+ CFLAGS="${CFLAGS} $debug_flags"
|
||||
;;
|
||||
esac
|
||||
|
||||
79
media-gfx/synfig/synfig-1.5.0.ebuild
Normal file
79
media-gfx/synfig/synfig-1.5.0.ebuild
Normal file
@@ -0,0 +1,79 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
#Ebuild based on the booboo overlay version
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit autotools eutils multilib flag-o-matic
|
||||
|
||||
# Original TODO from bgo-overlay
|
||||
# Todo: enable OpenGL (currently not compiling)
|
||||
# enable OpenCl, needs check whether OpenCL is actually usable
|
||||
|
||||
DESCRIPTION="Film-Quality Vector Animation (core engine)"
|
||||
HOMEPAGE="http://www.synfig.org/"
|
||||
SRC_URI="https://github.com/synfig/synfig/archive/refs/tags/v${PV}.tar.gz -> synfigstudio-${PV}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="imagemagick ffmpeg dv openexr truetype jpeg fontconfig opencl"
|
||||
|
||||
DEPEND="
|
||||
~dev-cpp/ETL-${PV}
|
||||
>=dev-cpp/glibmm-2.4:2
|
||||
dev-cpp/libxmlpp:2.6
|
||||
dev-libs/boost:=
|
||||
dev-libs/libsigc++:2
|
||||
media-libs/libpng:=
|
||||
media-libs/mlt:=
|
||||
sci-libs/fftw:3.0
|
||||
sys-libs/zlib:=
|
||||
x11-libs/cairo:=
|
||||
x11-libs/pango:=
|
||||
ffmpeg? ( media-video/ffmpeg:= )
|
||||
fontconfig? ( media-libs/fontconfig )
|
||||
jpeg? ( virtual/jpeg )
|
||||
opencl? ( dev-libs/ocl-icd )
|
||||
openexr? ( media-libs/openexr:= )
|
||||
truetype? ( media-libs/freetype:= )
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
dv? ( media-libs/libdv:= )
|
||||
imagemagick? ( media-gfx/imagemagick:= )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/synfigstudio-1.5.0-fix-cflags.patch
|
||||
)
|
||||
|
||||
S="${WORKDIR}/synfig-${PV}/synfig-core"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_with ffmpeg) \
|
||||
$(use_with fontconfig) \
|
||||
$(use_with imagemagick) \
|
||||
$(use_with dv libdv) \
|
||||
$(use_with openexr ) \
|
||||
$(use_with truetype freetype) \
|
||||
$(use_with jpeg) \
|
||||
$(use_with opencl)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
dodoc AUTHORS NEWS README TODO
|
||||
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
|
||||
echo "LDPATH=\"${EPREFIX}/usr/$(get_libdir)/synfig/modules\"" > "${T}/99synfig"
|
||||
doenvd "${T}/99synfig"
|
||||
}
|
||||
Reference in New Issue
Block a user