aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/yabause
diff options
context:
space:
mode:
authorjbeich <jbeich@FreeBSD.org>2015-02-18 00:17:34 +0800
committerjbeich <jbeich@FreeBSD.org>2015-02-18 00:17:34 +0800
commite0693d39eb73d53ea13d0305ed5790aca772dfbf (patch)
tree752b1552fb017afab3343480dee09638c7e7960b /emulators/yabause
parent246cae6b86f03bbf514a511aa2e12150e3020460 (diff)
downloadfreebsd-ports-gnome-e0693d39eb73d53ea13d0305ed5790aca772dfbf.tar.gz
freebsd-ports-gnome-e0693d39eb73d53ea13d0305ed5790aca772dfbf.tar.zst
freebsd-ports-gnome-e0693d39eb73d53ea13d0305ed5790aca772dfbf.zip
- Update to version 0.9.14
- Add QT5 and SDL2 options PR: 197427 Submitted by: tkato432@yahoo.com
Diffstat (limited to 'emulators/yabause')
-rw-r--r--emulators/yabause/Makefile29
-rw-r--r--emulators/yabause/distinfo4
-rw-r--r--emulators/yabause/pkg-plist4
3 files changed, 28 insertions, 9 deletions
diff --git a/emulators/yabause/Makefile b/emulators/yabause/Makefile
index 2a574588886e..898ab660ea0e 100644
--- a/emulators/yabause/Makefile
+++ b/emulators/yabause/Makefile
@@ -2,35 +2,50 @@
# $FreeBSD$
PORTNAME= yabause
-PORTVERSION= 0.9.13.1
-PORTREVISION= 2
+PORTVERSION= 0.9.14
CATEGORIES= emulators
-MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION:R}
+MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= Sega Saturn system emulator
LICENSE= GPLv2 # (or later)
-USES= cmake openal:soft pkgconfig
+USES= cmake dos2unix openal:soft pkgconfig
+DOS2UNIX_FILES= src/qt/YabauseThread.cpp
USE_XORG= xmu xrandr
USE_GL= gl glu glut
-USE_SDL= sdl
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
SUB_FILES= pkg-message
+OPTIONS_DEFINE= SDL2
OPTIONS_SINGLE= GUI
-OPTIONS_SINGLE_GUI= GTK2 QT4
+OPTIONS_SINGLE_GUI= GTK2 QT4 QT5
OPTIONS_DEFAULT= QT4
GTK2_LIB_DEPENDS= libgtkglext-x11-1.0.so:${PORTSDIR}/x11-toolkits/gtkglext
GTK2_USE= gnome=gtk20
GTK2_CMAKE_ON= -DYAB_PORTS:STRING=gtk
+GTK2_CMAKE_OFF= -DYAB_PORTS:STRING=qt
QT4_USE= qt4=corelib,gui,opengl \
qt4=moc_build,qmake_build,rcc_build,uic_build
-QT4_CMAKE_ON= -DYAB_PORTS:STRING=qt
+QT4_CMAKE_ON= -DQt5_FOUND:BOOL=OFF
+QT5_USE= qt5=core,gui,opengl \
+ qt5=buildtools_build,qmake_build
+SDL2_DESC= SDL2 libraries support
+SDL2_USE= sdl=sdl2
+SDL2_USE_OFF= sdl=sdl
+
+.include <bsd.port.options.mk>
+
+post-patch:
+.if empty(PORT_OPTIONS:MSDL2)
+ @${REINPLACE_CMD} -e \
+ 's|SDL2 |SDL | ; \
+ s|SDL2_|SDL_|' ${WRKSRC}/src/CMakeLists.txt
+.endif
.include <bsd.port.mk>
diff --git a/emulators/yabause/distinfo b/emulators/yabause/distinfo
index 693fed5af36d..36bc57f064ce 100644
--- a/emulators/yabause/distinfo
+++ b/emulators/yabause/distinfo
@@ -1,2 +1,2 @@
-SHA256 (yabause-0.9.13.1.tar.gz) = f76f9deca59ab91f8a463792611336962510868d3dc8bdd23e9215a26b7cc175
-SIZE (yabause-0.9.13.1.tar.gz) = 1634482
+SHA256 (yabause-0.9.14.tar.gz) = 75e6320873ef6f8ec956568bff5a8f3b67500bdf52a7e0aa88e0a554b2dd775a
+SIZE (yabause-0.9.14.tar.gz) = 1662762
diff --git a/emulators/yabause/pkg-plist b/emulators/yabause/pkg-plist
index e95a5c04e639..fc8efef5afcd 100644
--- a/emulators/yabause/pkg-plist
+++ b/emulators/yabause/pkg-plist
@@ -2,6 +2,7 @@ bin/yabause
man/man1/yabause.1.gz
share/applications/yabause.desktop
share/pixmaps/yabause.png
+%%DATADIR%%/yts/ar.yts
%%DATADIR%%/yts/de.yts
%%DATADIR%%/yts/es.yts
%%DATADIR%%/yts/fr.yts
@@ -10,4 +11,7 @@ share/pixmaps/yabause.png
%%DATADIR%%/yts/nl.yts
%%DATADIR%%/yts/pt.yts
%%DATADIR%%/yts/pt_BR.yts
+%%DATADIR%%/yts/ru.yts
%%DATADIR%%/yts/sv.yts
+%%DATADIR%%/yts/zh_CN.yts
+%%DATADIR%%/yts/zh_TW.yts