View previous topic :: View next topic |
Author |
Message |
fhorse n00b
Joined: 05 Aug 2007 Posts: 6
|
Posted: Mon Oct 26, 2015 4:27 pm Post subject: [Request] Help to write an ebuild for the puNES emulator |
|
|
Hello everyone and sorry for the trouble but I wanted to ask if some kind soul wanted to give me a hand to create an ebuild for my emulator puNES. It is now 10 years that I use Gentoo, but do not know yet write an ebuild. "PuNES" (Nintendo Entertainment System emulator) is open source (GPLv2) and uses the SDL (1.2) for the video management, ALSA for audio and QT4 for the GUI (but is also fully compatible with the QT5) and it is also considered one of the most accurate existing emulators. Thank you in advance for any help you can give me.
https://github.com/punesemu/puNES
http://forums.nesdev.com/viewtopic.php?f=3&t=6928 |
|
Back to top |
|
|
yoshi314 l33t
Joined: 30 Dec 2004 Posts: 850 Location: PL
|
|
Back to top |
|
|
moonchilde n00b
Joined: 13 Nov 2015 Posts: 18
|
Posted: Fri Nov 13, 2015 12:35 pm Post subject: |
|
|
Any update on this? |
|
Back to top |
|
|
fhorse n00b
Joined: 05 Aug 2007 Posts: 6
|
Posted: Sat Nov 21, 2015 12:02 am Post subject: punes-0.98.ebuild |
|
|
This is the ebuild games-emulation/punes-0.98.ebuild
Last edited by fhorse on Fri Apr 15, 2016 7:57 pm; edited 1 time in total |
|
Back to top |
|
|
fhorse n00b
Joined: 05 Aug 2007 Posts: 6
|
Posted: Fri Apr 15, 2016 7:56 pm Post subject: punes-0.99.ebuild |
|
|
This is the ebuild games-emulation/punes-0.99.ebuild
Code: | # Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit autotools games
DESCRIPTION="Nintendo Entertaiment System emulator"
HOMEPAGE="https://github.com/punesemu/puNES"
SRC_URI="https://github.com/punesemu/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="qt5"
DEPEND="
sys-devel/autoconf-archive
virtual/pkgconfig
"
RDEPEND="${DEPEND}
media-libs/alsa-lib
media-gfx/nvidia-cg-toolkit
media-libs/libsdl[opengl]
qt5? (
dev-qt/qtcore:5
dev-qt/qtgui:5
dev-qt/qtwidgets:5
)
!qt5? (
dev-qt/qtcore:4
dev-qt/qtgui:4
)
virtual/opengl
"
S=${WORKDIR}/puNES-${PV}
src_prepare() {
eautoreconf
cd src/extra/lib7zip-1.6.5
eautoreconf
}
src_configure() {
egamesconf $(use_enable qt5 ) || die "egamesconf failed"
}
src_install() {
dogamesbin src/${PN} || die "dogamesbin failed"
domenu misc/punes.desktop
for res in 16 32 48 256
do
newicon -s ${res} misc/hicolor_apps_${res}x${res}_punes.png punes.png
done
dodoc AUTHORS README.*
prepgamesdirs
}
|
|
|
Back to top |
|
|
moonchilde n00b
Joined: 13 Nov 2015 Posts: 18
|
Posted: Mon Jul 11, 2016 12:25 pm Post subject: |
|
|
Hi, do you have a new ebuild for 1.00? Any luck on getting this in the gentoo repo? |
|
Back to top |
|
|
fhorse n00b
Joined: 05 Aug 2007 Posts: 6
|
Posted: Tue Jul 12, 2016 8:46 am Post subject: |
|
|
moonchilde wrote: | Hi, do you have a new ebuild for 1.00? | This is the ebuild games-emulation/punes-0.100.ebuild
Code: | # Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit autotools games
DESCRIPTION="Nintendo Entertaiment System emulator"
HOMEPAGE="https://github.com/punesemu/puNES"
SRC_URI="https://github.com/punesemu/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="qt5"
DEPEND="
sys-devel/autoconf-archive
virtual/pkgconfig
"
RDEPEND="${DEPEND}
media-libs/alsa-lib
media-gfx/nvidia-cg-toolkit
media-libs/libsdl[opengl]
qt5? (
dev-qt/qtcore:5
dev-qt/qtgui:5
dev-qt/qtwidgets:5
)
!qt5? (
dev-qt/qtcore:4
dev-qt/qtgui:4
)
virtual/opengl
"
S=${WORKDIR}/puNES-${PV}
src_prepare() {
epatch "${FILESDIR}"/${P}-fix-compilation-xbrz.patch
eautoreconf
cd src/extra/lib7zip-1.6.5
eautoreconf
}
src_configure() {
egamesconf $(use_enable qt5 ) || die "egamesconf failed"
}
src_install() {
dogamesbin src/${PN} || die "dogamesbin failed"
domenu misc/punes.desktop
for res in 16 32 48 256
do
newicon -s ${res} misc/hicolor_apps_${res}x${res}_punes.png punes.png
done
dodoc AUTHORS README.*
prepgamesdirs
}
| and this is the patch punes-0.100-fix-compilation-xbrz.patch necessary to compile Code: | From 99f3f334ce6e23545b2398aede0f6dbbb52600f9 Mon Sep 17 00:00:00 2001
From: fhorse <punes.development@gmail.com>
Date: Thu, 16 Jun 2016 09:35:23 +0200
Subject: [PATCH] Corretto errore di compilazione con GCC 6.1.
---
src/c++/xBRZ/xbrz.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/c++/xBRZ/xbrz.cpp b/src/c++/xBRZ/xbrz.cpp
index 7684c10..a3ed4da 100644
--- a/src/c++/xBRZ/xbrz.cpp
+++ b/src/c++/xBRZ/xbrz.cpp
@@ -15,6 +15,7 @@
#include "c++/xBRZ/xbrz.h"
#include <cassert>
+#include <cmath>
#include <algorithm>
#include <vector>
--
2.9.0
|
moonchilde wrote: | Any luck on getting this in the gentoo repo? | For this I do not know how to do, I'm sorry |
|
Back to top |
|
|
|