diff options
Diffstat (limited to 'games-emulation/jgrf/jgrf-1.0.2-r1.ebuild')
-rw-r--r-- | games-emulation/jgrf/jgrf-1.0.2-r1.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/games-emulation/jgrf/jgrf-1.0.2-r1.ebuild b/games-emulation/jgrf/jgrf-1.0.2-r1.ebuild new file mode 100644 index 000000000000..6f5ecb9db5e1 --- /dev/null +++ b/games-emulation/jgrf/jgrf-1.0.2-r1.ebuild @@ -0,0 +1,51 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs xdg + +DESCRIPTION="The Jolly Good Reference Frontend" +HOMEPAGE="https://jgemu.gitlab.io/jgrf.html" +if [[ "${PV}" == *9999 ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://gitlab.com/jgemu/${PN}.git" +else + SRC_URI="https://gitlab.com/jgemu/${PN}/-/archive/${PV}/${P}.tar.bz2" + KEYWORDS="~amd64" +fi + +LICENSE="BSD CC0-1.0 MIT ZLIB" +SLOT="1" + +DEPEND=" + dev-libs/miniz + dev-libs/openssl:0= + media-libs/jg:1= + media-libs/libepoxy[egl] + media-libs/libsdl2[opengl,sound,video] + media-libs/speexdsp +" +RDEPEND="${DEPEND}" +BDEPEND=" + virtual/pkgconfig +" + +src_compile() { + emake \ + CC="$(tc-getCC)" \ + PKG_CONFIG="$(tc-getPKG_CONFIG)" \ + PREFIX="${EPREFIX}"/usr \ + LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ + USE_EXTERNAL_MD5=1 \ + USE_EXTERNAL_MINIZ=1 +} + +src_install() { + emake install \ + DESTDIR="${D}" \ + PREFIX="${EPREFIX}"/usr \ + DOCDIR="${EPREFIX}"/usr/share/doc/${PF} \ + USE_EXTERNAL_MD5=1 \ + USE_EXTERNAL_MINIZ=1 +} |