diff options
Diffstat (limited to 'games-emulation/yabause')
-rw-r--r-- | games-emulation/yabause/ChangeLog | 11 | ||||
-rw-r--r-- | games-emulation/yabause/files/yabause-0.9.12-RWX.patch | 22 | ||||
-rw-r--r-- | games-emulation/yabause/files/yabause-0.9.12-cmake.patch | 60 | ||||
-rw-r--r-- | games-emulation/yabause/metadata.xml | 3 | ||||
-rw-r--r-- | games-emulation/yabause/yabause-0.9.12.ebuild | 64 |
5 files changed, 158 insertions, 2 deletions
diff --git a/games-emulation/yabause/ChangeLog b/games-emulation/yabause/ChangeLog index 44f886f2e91f..26ad041e0bbd 100644 --- a/games-emulation/yabause/ChangeLog +++ b/games-emulation/yabause/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for games-emulation/yabause -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-emulation/yabause/ChangeLog,v 1.35 2012/10/10 15:18:12 ranger Exp $ +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-emulation/yabause/ChangeLog,v 1.36 2013/02/18 00:36:27 hasufell Exp $ + +*yabause-0.9.12 (18 Feb 2013) + + 18 Feb 2013; Julian Ospald <hasufell@gentoo.org> +yabause-0.9.12.ebuild, + +files/yabause-0.9.12-RWX.patch, +files/yabause-0.9.12-cmake.patch, + metadata.xml: + version bump wrt #452298 10 Oct 2012; Brent Baude <ranger@gentoo.org> yabause-0.9.10.ebuild: Marking yabause-0.9.10 ppc for bug 435688 diff --git a/games-emulation/yabause/files/yabause-0.9.12-RWX.patch b/games-emulation/yabause/files/yabause-0.9.12-RWX.patch new file mode 100644 index 000000000000..1a8d3a66db16 --- /dev/null +++ b/games-emulation/yabause/files/yabause-0.9.12-RWX.patch @@ -0,0 +1,22 @@ +http://www.gentoo.org/proj/en/hardened/gnu-stack.xml + +--- src/sh2_dynarec/linkage_x64.s ++++ src/sh2_dynarec/linkage_x64.s +@@ -747,3 +747,7 @@ + ret + /* Set breakpoint here for debugging */ + .size breakpoint, .-breakpoint ++ ++#if defined(__linux__) && defined(__ELF__) ++.section .note.GNU-stack,"",%progbits ++#endif +--- src/sh2_dynarec/linkage_x86.s ++++ src/sh2_dynarec/linkage_x86.s +@@ -743,3 +743,7 @@ + ret + /* Set breakpoint here for debugging */ + .size breakpoint, .-breakpoint ++ ++#if defined(__linux__) && defined(__ELF__) ++.section .note.GNU-stack,"",%progbits ++#endif diff --git a/games-emulation/yabause/files/yabause-0.9.12-cmake.patch b/games-emulation/yabause/files/yabause-0.9.12-cmake.patch new file mode 100644 index 000000000000..0ed719a70abc --- /dev/null +++ b/games-emulation/yabause/files/yabause-0.9.12-cmake.patch @@ -0,0 +1,60 @@ +From: Julian Ospald <hasufell@gentoo.org> +Date: Mon Feb 18 00:04:44 UTC 2013 +Subject: build system + + make bindir translation dir modifiable + +--- yabause-0.9.12/src/gtk/CMakeLists.txt ++++ yabause-0.9.12/src/gtk/CMakeLists.txt +@@ -59,7 +59,10 @@ + yab_port_success(yabause-gtk) + configure_file(yabause.desktop.in ${YAB_PORT_NAME}.desktop) + +-install(TARGETS yabause-gtk DESTINATION "bin") ++# paths ++set(BINDIR "bin" CACHE STRING "dir to binary") ++ ++install(TARGETS yabause-gtk DESTINATION ${BINDIR}) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${YAB_PORT_NAME}.desktop DESTINATION "share/applications") + install(FILES "doc/yabause.1" DESTINATION "${YAB_MAN_DIR}/man1" RENAME "${YAB_PORT_NAME}.1") + install(FILES "yabause.png" DESTINATION "share/pixmaps") +--- yabause-0.9.12/src/qt/CMakeLists.txt ++++ yabause-0.9.12/src/qt/CMakeLists.txt +@@ -184,6 +184,9 @@ + yab_port_success(yabause-qt) + configure_file(yabause.desktop.in ${YAB_PORT_NAME}.desktop) + ++# paths ++set(BINDIR "bin" CACHE STRING "dir to binary") ++ + if (WIN32) + install(TARGETS yabause-qt DESTINATION ".") + if (GLUT_FOUND) +@@ -208,8 +211,8 @@ + install(FILES ${Mingw_Path}/mingwm10.dll DESTINATION ".") + endif () + else () +- install(TARGETS yabause-qt DESTINATION "bin") ++ install(TARGETS yabause-qt DESTINATION ${BINDIR}) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${YAB_PORT_NAME}.desktop DESTINATION "share/applications") + install(FILES "doc/yabause.1" DESTINATION "${YAB_MAN_DIR}/man1" RENAME "${YAB_PORT_NAME}.1") + install(FILES "resources/icons/yabause.png" DESTINATION "share/pixmaps") +-endif () +\ No newline at end of file ++endif () +--- yabause-0.9.12/l10n/CMakeLists.txt ++++ yabause-0.9.12/l10n/CMakeLists.txt +@@ -2,9 +2,12 @@ + + set(LANGS de es fr it lt pt pt_BR sv) + ++# paths ++set(TRANSDIR "share/yabause/yts" CACHE STRING "dir to translation files") ++ + if (UNIX AND NOT APPLE) + foreach(LANG ${LANGS}) +- install(FILES "yabause_${LANG}.yts" DESTINATION "share/yabause/yts" RENAME "${LANG}.yts") ++ install(FILES "yabause_${LANG}.yts" DESTINATION ${TRANSDIR} RENAME "${LANG}.yts") + endforeach() + elseif (WIN32) + foreach(LANG ${LANGS}) diff --git a/games-emulation/yabause/metadata.xml b/games-emulation/yabause/metadata.xml index cad5a2aa1773..cba51a60909e 100644 --- a/games-emulation/yabause/metadata.xml +++ b/games-emulation/yabause/metadata.xml @@ -2,4 +2,7 @@ <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> <herd>games</herd> + <use> + <flag name="qt4">Use qt4 gui instead of gtk+</flag> + </use> </pkgmetadata> diff --git a/games-emulation/yabause/yabause-0.9.12.ebuild b/games-emulation/yabause/yabause-0.9.12.ebuild new file mode 100644 index 000000000000..56130a02f794 --- /dev/null +++ b/games-emulation/yabause/yabause-0.9.12.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-emulation/yabause/yabause-0.9.12.ebuild,v 1.1 2013/02/18 00:36:27 hasufell Exp $ + +EAPI=5 +inherit eutils cmake-utils games + +DESCRIPTION="A Sega Saturn emulator" +HOMEPAGE="http://yabause.org/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="openal opengl qt4 sdl" + +RDEPEND=" + openal? ( media-libs/openal ) + opengl? ( + media-libs/freeglut + virtual/glu + virtual/opengl + ) + qt4? ( + x11-libs/qt-core:4 + x11-libs/qt-gui:4 + opengl? ( x11-libs/qt-opengl:4 ) + ) + !qt4? ( + dev-libs/glib:2 + x11-libs/gtk+:2 + x11-libs/gtkglext + ) + sdl? ( media-libs/libsdl[opengl?,video] )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_prepare() { + epatch "${FILESDIR}"/${P}-RWX.patch \ + "${FILESDIR}"/${P}-cmake.patch +} + +src_configure() { + local mycmakeargs=( + -DBINDIR="${GAMES_BINDIR}" + -DTRANSDIR="${GAMES_DATADIR}"/${PN}/yts + -DYAB_OPTIMIZATION="" + $(cmake-utils_use sdl YAB_WANT_SDL) + $(cmake-utils_use openal YAB_WANT_OPENAL) + $(cmake-utils_use opengl YAB_WANT_OPENGL) + -DYAB_PORTS=$(usex qt4 "qt" "gtk") + ) + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + cmake-utils_src_install + dodoc AUTHORS ChangeLog GOALS README README.LIN + prepgamesdirs +} |