gentoo-ebuilds/media-gfx/quat/quat-1.20-r4.ebuild
Ionen Wolkens 16e7f56d6a
media-gfx/quat: add binding := to fltk & fix build with 1.4
1.4.x drops the case sensitivity compat symlinks by default
and upstream strongly recommends to fix packages rather than
re-enable them.

:= due to new soname

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2024-12-26 12:48:31 -05:00

46 lines
1,006 B
Bash

# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit flag-o-matic
DESCRIPTION="A 3D quaternionic fractal generator"
HOMEPAGE="http://www.physcip.uni-stuttgart.de/phy11733/quat_e.html"
SRC_URI="http://www.physcip.uni-stuttgart.de/phy11733/download/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc x86"
IUSE="X debug"
DEPEND="
>=sys-libs/zlib-1.1.4
X? (
x11-libs/fltk:1=
x11-libs/libX11
x11-libs/libXext
x11-libs/libXft
)
"
RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}/${P}-fix-build-for-clang16.patch"
"${FILESDIR}/${P}-fltk1.4.patch"
)
src_configure() {
# throws tons of warnings otherwise
append-cxxflags -Wno-deprecated-declarations -Wno-writable-strings
export FLUID="/usr/bin/fluid" # needed because configure tries an invalid option
econf \
$(use_enable X gui) \
$(use_enable debug) \
$(use_enable debug prof)
}
src_install() {
emake DESTDIR="${D}" install
dodoc AUTHORS ChangeLog NEWS README
}