mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-07-26 00:45:46 +02:00
bump copyright of touched ebuilds to 2024 Signed-off-by: Lucio Sauer <watermanpaint@posteo.net> Signed-off-by: Michał Górny <mgorny@gentoo.org>
43 lines
938 B
Bash
43 lines
938 B
Bash
# Copyright 1999-2024 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit toolchain-funcs
|
|
|
|
DESCRIPTION="SDL app to test joysticks and game controllers"
|
|
HOMEPAGE="https://sdljoytest.sourceforge.net/"
|
|
SRC_URI="https://downloads.sourceforge.net/sdljoytest/SDLJoytest-GL-${PV}.tar.bz2"
|
|
S="${WORKDIR}"/SDLJoytest-GL
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
DEPEND="media-libs/libsdl[joystick,opengl,video]
|
|
virtual/opengl
|
|
media-libs/sdl-image"
|
|
RDEPEND="${DEPEND}"
|
|
|
|
PATCHES=( "${FILESDIR}"/${P}-no-common.patch )
|
|
|
|
src_prepare() {
|
|
default
|
|
emake clean
|
|
sed -i -e 's:/usr/local:/usr:' joytest.h || die
|
|
sed -i -e 's:SDL/::' *.c || die
|
|
}
|
|
|
|
src_compile() {
|
|
emake \
|
|
CC="$(tc-getCC)" \
|
|
CFLAGS="$(sdl-config --cflags) ${CFLAGS}" \
|
|
LDFLAGS="$(sdl-config --libs) -lGL ${LDFLAGS}"
|
|
}
|
|
|
|
src_install() {
|
|
dobin SDLJoytest-GL
|
|
insinto /usr/share/SDLJoytest-GL
|
|
doins *.bmp
|
|
doman SDLJoytest.1
|
|
}
|