View | Details | Raw Unified | Return to bug 191820
Collapse All | Expand All

(-)emulators/yabause/Makefile (-36 / +18 lines)
Lines 2-53 Link Here
2
# $FreeBSD: head/emulators/yabause/Makefile 360256 2014-07-02 20:22:55Z antoine $
2
# $FreeBSD: head/emulators/yabause/Makefile 360256 2014-07-02 20:22:55Z antoine $
3
3
4
PORTNAME=	yabause
4
PORTNAME=	yabause
5
PORTVERSION=	0.9.11.1
5
PORTVERSION=	0.9.13.1
6
PORTREVISION=	4
7
CATEGORIES=	emulators
6
CATEGORIES=	emulators
8
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTVERSION:S/1.1/1/g}/
7
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTVERSION:R}
9
8
10
MAINTAINER=	ports@FreeBSD.org
9
MAINTAINER=	ports@FreeBSD.org
11
COMMENT=	Sega Saturn system emulator
10
COMMENT=	Sega Saturn system emulator
12
11
13
LIB_DEPENDS=	gtkglext-x11-1.0.0:${PORTSDIR}/x11-toolkits/gtkglext
12
LICENSE=	GPLv2 # (or later)
14
13
15
USE_AUTOTOOLS=	automake:env autoconf:env aclocal:env
14
USES=		cmake openal:soft pkgconfig
16
GNU_CONFIGURE=	yes
15
USE_XORG=	xmu xrandr
17
USES=		gmake openal:soft
18
USE_GL=		gl glu glut
16
USE_GL=		gl glu glut
19
USE_GNOME=	#
17
USE_SDL=	sdl
20
USE_SDL=	yes
18
19
CFLAGS+=	-I${LOCALBASE}/include
20
LDFLAGS+=	-L${LOCALBASE}/lib
21
21
22
SUB_FILES=	pkg-message
22
SUB_FILES=	pkg-message
23
MAN1=	yabause.1
24
23
25
OPTIONS_DEFINE=	QT4
24
OPTIONS_SINGLE=		GUI
25
OPTIONS_SINGLE_GUI=	GTK2 QT4
26
OPTIONS_DEFAULT=	QT4
26
OPTIONS_DEFAULT=	QT4
27
QT4_DESC=	Build wit qt4 interface instead of gtk2 one
28
29
NO_STAGE=	yes
30
.include <bsd.port.options.mk>
31
32
.if ${PORT_OPTIONS:MQT4}
33
USE_QT4=	corelib gui opengl
34
CONFIGURE_ARGS+=	--with-port=qt
35
.else
36
USE_GNOME=	gtk20
37
CONFIGURE_ARGS+=	--with-port=gtk
38
.endif
39
40
.include <bsd.port.pre.mk>
41
42
post-patch:
43
	@${REINPLACE_CMD} -e "s|%%ACLOCAL%%|${ACLOCAL}|g" -e "s|%%AUTOCONF%%|${AUTOCONF}|g" \
44
		-e "s|%%AUTOMAKE%%|${AUTOMAKE}|g" ${WRKSRC}/autogen.sh
45
	@${REINPLACE_CMD} -e "s|0.9.10|${PORTVERSION}|g" ${WRKSRC}/configure.in
46
47
pre-configure:
48
	@cd ${WRKSRC} && ${SH} autogen.sh
49
27
50
post-install:
28
GTK2_LIB_DEPENDS=	libgtkglext-x11-1.0.so:${PORTSDIR}/x11-toolkits/gtkglext
51
	@${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD}
29
GTK2_USE=		gnome=gtk20
30
GTK2_CMAKE_ON=		-DYAB_PORTS:STRING=gtk
31
QT4_USE=		qt4=corelib,gui,opengl \
32
			qt4=moc_build,qmake_build,rcc_build,uic_build
33
QT4_CMAKE_ON=		-DYAB_PORTS:STRING=qt
52
34
53
.include <bsd.port.post.mk>
35
.include <bsd.port.mk>
(-)emulators/yabause/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (yabause-0.9.11.1.tar.gz) = 42538eb31232f8bdd2e6e19ad797d556e6e787b57ac0a2a21e0fe7c407b32bca
1
SHA256 (yabause-0.9.13.1.tar.gz) = f76f9deca59ab91f8a463792611336962510868d3dc8bdd23e9215a26b7cc175
2
SIZE (yabause-0.9.11.1.tar.gz) = 1882934
2
SIZE (yabause-0.9.13.1.tar.gz) = 1634482
(-)emulators/yabause/files/patch-autogen.sh (-7 lines)
Lines 1-7 Link Here
1
--- autogen.sh.orig	2012-03-25 20:41:13.000000000 -0500
2
+++ autogen.sh	2012-03-25 20:42:38.000000000 -0500
3
@@ -1,2 +1,2 @@
4
-aclocal && autoconf && automake --add-missing --copy
5
-cd src/c68k && aclocal && autoconf && automake
6
+%%ACLOCAL%% && %%AUTOCONF%% && %%AUTOMAKE%% --add-missing --copy
7
+cd src/c68k && %%ACLOCAL%% && %%AUTOCONF%% && %%AUTOMAKE%%
(-)emulators/yabause/files/patch-src__CMakeLists.txt (+24 lines)
Line 0 Link Here
1
--- src/CMakeLists.txt.orig
2
+++ src/CMakeLists.txt
3
@@ -88,6 +88,12 @@
4
 	add_definitions(-DHAVE_BUILTIN_BSWAP16=1)
5
 endif()
6
 
7
+# __builtin_bswap32
8
+check_function_exists(__builtin_bswap32 BSWAP32_OK)
9
+if (BSWAP32_OK)
10
+	add_definitions(-DHAVE_BUILTIN_BSWAP32=1)
11
+endif()
12
+
13
 # sys/time.h
14
 check_include_file("sys/time.h" SYSTIME_OK)
15
 if (SYSTIME_OK)
16
@@ -527,7 +533,7 @@
17
 	set(YAB_PORT_BUILT TRUE PARENT_SCOPE)
18
 endmacro(yab_port_success)
19
 
20
-set(YAB_MAN_DIR "share/man")
21
+set(YAB_MAN_DIR "man")
22
 if (NOT $ENV{PKGMANDIR} STREQUAL "")
23
     set(YAB_MAN_DIR $ENV{PKGMANDIR})
24
 endif ()
(-)emulators/yabause/files/patch-src__core.h (+13 lines)
Line 0 Link Here
1
--- src/core.h.orig
2
+++ src/core.h
3
@@ -252,8 +252,10 @@
4
 # define BSWAP16(x)  ((__builtin_bswap16((x) >> 16) << 16) | __builtin_bswap16((x)))
5
 # define BSWAP16L(x) (__builtin_bswap16((x)))
6
 #endif
7
+#ifdef HAVE_BUILTIN_BSWAP32
8
 # define BSWAP32(x)  (__builtin_bswap32((x)))
9
 #endif
10
+#endif
11
 
12
 #ifdef _MSC_VER
13
 # define BSWAP16(x)  ((_byteswap_ushort((x) >> 16) << 16) | _byteswap_ushort((x)))
(-)emulators/yabause/files/patch-src__qt__YabauseThread.cpp (+12 lines)
Line 0 Link Here
1
--- src/qt/YabauseThread.cpp.orig
2
+++ src/qt/YabauseThread.cpp
3
@@ -18,6 +18,9 @@
4
 	along with Yabause; if not, write to the Free Software
5
 	Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
6
 */
7
+
8
+#include <time.h>
9
+
10
 #include "YabauseThread.h"
11
 #include "Settings.h"
12
 #include "VolatileSettings.h"
(-)emulators/yabause/pkg-descr (-4 / +2 lines)
Lines 1-6 Link Here
1
Yabause is a Sega Saturn emulator. It currently runs on GNU/Linux, FreeBSD and 
1
Yabause is a Sega Saturn emulator. It is written in C using the SDL and
2
is being ported to Microsoft Windows and Mac OS X. It is also ported to the 
3
Sega Dreamcast as a separate project. It is written in C using the SDL and 
4
OpenGL libraries with support for cdrom and iso files.
2
OpenGL libraries with support for cdrom and iso files.
5
3
6
WWW:	http://yabause.sourceforge.net/
4
WWW: http://yabause.sourceforge.net/
(-)emulators/yabause/pkg-plist (-3 / +6 lines)
Lines 1-12 Link Here
1
bin/yabause
1
bin/yabause
2
man/man1/yabause.1.gz
3
share/applications/yabause.desktop
4
share/pixmaps/yabause.png
2
%%DATADIR%%/yts/de.yts
5
%%DATADIR%%/yts/de.yts
3
%%DATADIR%%/yts/es.yts
6
%%DATADIR%%/yts/es.yts
4
%%DATADIR%%/yts/fr.yts
7
%%DATADIR%%/yts/fr.yts
5
%%DATADIR%%/yts/it.yts
8
%%DATADIR%%/yts/it.yts
6
%%DATADIR%%/yts/lt.yts
9
%%DATADIR%%/yts/lt.yts
10
%%DATADIR%%/yts/nl.yts
7
%%DATADIR%%/yts/pt.yts
11
%%DATADIR%%/yts/pt.yts
8
%%DATADIR%%/yts/pt_BR.yts
12
%%DATADIR%%/yts/pt_BR.yts
9
%%DATADIR%%/yts/sv.yts
13
%%DATADIR%%/yts/sv.yts
10
share/pixmaps/yabause.png
14
@dirrm %%DATADIR%%/yts
11
@dirrmtry share/yabause/yts
15
@dirrm %%DATADIR%%
12
@dirrmtry share/yabause

Return to bug 191820