You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.1 KiB
54 lines
1.1 KiB
4 months ago
|
# Copyright 2022-2024 Gentoo Authors
|
||
1 year ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=8
|
||
|
|
||
|
inherit toolchain-funcs
|
||
|
|
||
|
MY_PN=${PN%-*}
|
||
|
MY_P=${MY_PN}-${PV}
|
||
2 months ago
|
DESCRIPTION="Jolly Good Fork of bsnes"
|
||
|
HOMEPAGE="https://gitlab.com/jgemu/bsnes"
|
||
1 year ago
|
if [[ "${PV}" == *9999 ]] ; then
|
||
|
inherit git-r3
|
||
|
EGIT_REPO_URI="https://gitlab.com/jgemu/${MY_PN}.git"
|
||
|
else
|
||
|
SRC_URI="https://gitlab.com/jgemu/${MY_PN}/-/archive/${PV}/${MY_P}.tar.bz2"
|
||
|
S="${WORKDIR}/${MY_P}"
|
||
4 months ago
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
|
||
1 year ago
|
fi
|
||
|
|
||
2 months ago
|
LICENSE="ISC GPL-3+ LGPL-2.1+ MIT ZLIB"
|
||
1 year ago
|
SLOT="1"
|
||
|
|
||
|
DEPEND="
|
||
|
media-libs/jg:1=
|
||
2 months ago
|
media-libs/libsamplerate
|
||
1 year ago
|
"
|
||
|
RDEPEND="
|
||
|
${DEPEND}
|
||
|
games-emulation/jgrf
|
||
|
"
|
||
|
BDEPEND="
|
||
|
virtual/pkgconfig
|
||
|
"
|
||
|
|
||
2 months ago
|
PATCHES=(
|
||
|
# https://bugs.gentoo.org/891201#c9
|
||
|
"${FILESDIR}"/${P}-endianness.patch
|
||
|
# https://bugs.gentoo.org/926077
|
||
|
"${FILESDIR}"/${P}-strict-aliasing.patch
|
||
|
)
|
||
|
|
||
1 year ago
|
src_compile() {
|
||
2 months ago
|
emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" PKG_CONFIG="$(tc-getPKG_CONFIG)"
|
||
1 year ago
|
}
|
||
|
|
||
|
src_install() {
|
||
2 months ago
|
emake install \
|
||
1 year ago
|
DESTDIR="${D}" \
|
||
|
PREFIX="${EPREFIX}"/usr \
|
||
|
DOCDIR="${EPREFIX}"/usr/share/doc/${PF} \
|
||
|
LIBDIR="${EPREFIX}/usr/$(get_libdir)"
|
||
|
}
|