diff options
Diffstat (limited to 'games-emulation/geolith-jg/geolith-jg-0.2.1.ebuild')
-rw-r--r-- | games-emulation/geolith-jg/geolith-jg-0.2.1.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/games-emulation/geolith-jg/geolith-jg-0.2.1.ebuild b/games-emulation/geolith-jg/geolith-jg-0.2.1.ebuild new file mode 100644 index 000000000000..acce54ecab21 --- /dev/null +++ b/games-emulation/geolith-jg/geolith-jg-0.2.1.ebuild @@ -0,0 +1,51 @@ +# Copyright 2022-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +MY_PN=${PN%-*} +MY_P=${MY_PN}-${PV} +DESCRIPTION="Jolly Good Neo Geo AES/MVS Emulator" +HOMEPAGE="https://gitlab.com/jgemu/geolith" +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}" + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" +fi + +LICENSE="BSD MIT" +SLOT="1" + +DEPEND=" + dev-libs/miniz:= + media-libs/jg:1= + media-libs/speexdsp +" +RDEPEND=" + ${DEPEND} + games-emulation/jgrf +" +BDEPEND=" + virtual/pkgconfig +" + +src_compile() { + emake \ + CC="$(tc-getCC)" \ + PKG_CONFIG="$(tc-getPKG_CONFIG)" \ + USE_EXTERNAL_MINIZ=1 +} + +src_install() { + emake install \ + DESTDIR="${D}" \ + PREFIX="${EPREFIX}"/usr \ + DOCDIR="${EPREFIX}"/usr/share/doc/${PF} \ + LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ + USE_EXTERNAL_MINIZ=1 +} |