gentoo-ebuilds/media-video/xvattr/xvattr-1.3-r4.ebuild
NHOrus 1f191a3a50
media-video/xvattr: Fix build
Corrects incompatible pointer types by casting GTK-style.
Also removes fallback definition of getopt, leaving only POSIX one,
because it is present both on glibc and musl systems

Closes: https://bugs.gentoo.org/945292
Closes: https://bugs.gentoo.org/919367
Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
Closes: https://github.com/gentoo/gentoo/pull/40639
Signed-off-by: Sam James <sam@gentoo.org>
2025-02-19 11:15:17 +00:00

39 lines
740 B
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
DESCRIPTION="X11 XVideo Querying/Setting Tool from Ogle project"
HOMEPAGE="http://www.dtek.chalmers.se/groups/dvd"
SRC_URI="http://www.dtek.chalmers.se/groups/dvd/dist/${P}.tar.gz"
LICENSE="GPL-2"
SLOT=0
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="gtk"
RDEPEND="
x11-libs/libX11
x11-libs/libXv
x11-libs/libXext
gtk? ( x11-libs/gtk+:2 )"
DEPEND="${RDEPEND}
x11-libs/libXt"
BDEPEND="virtual/pkgconfig"
PATCHES=(
"${FILESDIR}"/${P}-gtk.patch
"${FILESDIR}"/${P}-pod-encoding.patch
"${FILESDIR}"/${P}-conflicting-types.patch
)
src_prepare() {
default
eautoreconf
}
src_configure() {
econf $(use_with gtk)
}