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

(-)bsnes/Makefile (-8 / +8 lines)
Lines 5-11 Link Here
5
# $FreeBSD: ports/emulators/bsnes/Makefile,v 1.11 2010/09/04 09:31:08 makc Exp $
5
# $FreeBSD: ports/emulators/bsnes/Makefile,v 1.11 2010/09/04 09:31:08 makc Exp $
6
6
7
PORTNAME=	bsnes
7
PORTNAME=	bsnes
8
PORTVERSION=	0.68
8
PORTVERSION=	0.70
9
CATEGORIES=	emulators
9
CATEGORIES=	emulators
10
MASTER_SITES=	${MASTER_SITE_GOOGLE_CODE}
10
MASTER_SITES=	${MASTER_SITE_GOOGLE_CODE}
11
DISTNAME=	${PORTNAME}_v${PORTVERSION:S/.//}
11
DISTNAME=	${PORTNAME}_v${PORTVERSION:S/.//}
Lines 22-28 Link Here
22
22
23
ONLY_FOR_ARCHS=	i386 amd64
23
ONLY_FOR_ARCHS=	i386 amd64
24
WRKSRC=		${WRKDIR}/
24
WRKSRC=		${WRKDIR}/
25
MAKE_ENV+=	moc=moc-qt4
25
MAKE_ENV+=	moc=moc-qt4 c="${CC} -std=gnu99" cpp="${CXX} -std=gnu++0x"
26
USE_LDCONFIG=	yes
26
USE_LDCONFIG=	yes
27
27
28
OPTIONS=	VIDEO_GLX "Build GLX Video Driver" on \
28
OPTIONS=	VIDEO_GLX "Build GLX Video Driver" on \
Lines 97-105 Link Here
97
.endif
97
.endif
98
98
99
post-patch:
99
post-patch:
100
	${REINPLACE_CMD} -e 's|VIDEO|${VIDEO_DRIVER}|' ${WRKSRC}/bsnes/qt/Makefile
100
	${REINPLACE_CMD} -e 's|VIDEO|${VIDEO_DRIVER}|' ${WRKSRC}/bsnes/ui-qt/Makefile
101
	${REINPLACE_CMD} -e 's|AUDIO|${AUDIO_DRIVER}|' ${WRKSRC}/bsnes/qt/Makefile
101
	${REINPLACE_CMD} -e 's|AUDIO|${AUDIO_DRIVER}|' ${WRKSRC}/bsnes/ui-qt/Makefile
102
	${REINPLACE_CMD} -e 's|INPUT|${INPUT_DRIVER}|' ${WRKSRC}/bsnes/qt/Makefile
102
	${REINPLACE_CMD} -e 's|INPUT|${INPUT_DRIVER}|' ${WRKSRC}/bsnes/ui-qt/Makefile
103
103
104
do-build:
104
do-build:
105
	(cd ${WRKSRC}/bsnes && ${GMAKE} ${MAKE_ENV})
105
	(cd ${WRKSRC}/bsnes && ${GMAKE} ${MAKE_ENV})
Lines 108-118 Link Here
108
	(cd ${WRKSRC}/supergameboy && ${GMAKE} ${MAKE_ENV})
108
	(cd ${WRKSRC}/supergameboy && ${GMAKE} ${MAKE_ENV})
109
109
110
do-install:
110
do-install:
111
	${INSTALL_PROGRAM} ${WRKSRC}/bsnes/out/bsnes-compatibility ${PREFIX}/bin/bsnes
111
	${INSTALL_PROGRAM} ${WRKSRC}/bsnes/out/bsnes ${PREFIX}/bin/
112
	${MKDIR} ${PREFIX}/share/pixmaps
112
	${MKDIR} ${PREFIX}/share/pixmaps
113
	${INSTALL_DATA} ${WRKSRC}/bsnes/qt/data/bsnes.png ${PREFIX}/share/pixmaps/bsnes.png
113
	${INSTALL_DATA} ${WRKSRC}/bsnes/ui-qt/data/bsnes.png ${PREFIX}/share/pixmaps/
114
	${MKDIR} ${PREFIX}/share/applications
114
	${MKDIR} ${PREFIX}/share/applications
115
	${INSTALL_DATA} ${WRKSRC}/bsnes/qt//data/bsnes.desktop ${PREFIX}/share/applications/bsnes.desktop
115
	${INSTALL_DATA} ${WRKSRC}/bsnes/ui-qt/data/bsnes.desktop ${PREFIX}/share/applications/
116
	${INSTALL_DATA} ${WRKSRC}/snesreader/libsnesreader.so ${PREFIX}/lib/
116
	${INSTALL_DATA} ${WRKSRC}/snesreader/libsnesreader.so ${PREFIX}/lib/
117
	${INSTALL_DATA} ${WRKSRC}/snesfilter/libsnesfilter.so ${PREFIX}/lib/
117
	${INSTALL_DATA} ${WRKSRC}/snesfilter/libsnesfilter.so ${PREFIX}/lib/
118
	${INSTALL_DATA} ${WRKSRC}/supergameboy/libsupergameboy.so ${PREFIX}/lib/
118
	${INSTALL_DATA} ${WRKSRC}/supergameboy/libsupergameboy.so ${PREFIX}/lib/
(-)bsnes/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (bsnes_v068.tar.bz2) = 9ff2f6dc64f54f0da538cefade64b3a7
1
MD5 (bsnes_v070.tar.bz2) = d7977e140abc9f07fe55c3ae420bc281
2
SHA256 (bsnes_v068.tar.bz2) = a92cd604674e3beed9a1a3153e9fdf9cbbdc29aff62482e4d2a29c47bd8cffe2
2
SHA256 (bsnes_v070.tar.bz2) = 843fe06200488863510dd4c2923eaef6744977f8d1926cdb0806bb6d470c4b79
3
SIZE (bsnes_v068.tar.bz2) = 945351
3
SIZE (bsnes_v070.tar.bz2) = 1020720
(-)bsnes/files/patch-Makefile (+11 lines)
Line 0 Link Here
1
--- bsnes/Makefile.orig	2010-09-27 03:24:08.000000000 +0200
2
+++ bsnes/Makefile	2010-09-27 03:24:26.000000000 +0200
3
@@ -19,7 +19,7 @@
4
 
5
 # platform
6
 ifeq ($(platform),x)
7
-  link += -s -ldl -lX11 -lXext
8
+  link += -s -lX11 -lXext
9
 else ifeq ($(platform),osx)
10
 else ifeq ($(platform),win)
11
   link += -mwindows
(-)bsnes/files/patch-function.hpp (-15 lines)
Lines 1-15 Link Here
1
--- bsnes/nall/function.hpp.orig	2010-09-02 13:10:15.000000000 +0200
2
+++ bsnes/nall/function.hpp	2010-09-02 13:10:34.000000000 +0200
3
@@ -1,7 +1,11 @@
4
 #ifndef NALL_FUNCTION_HPP
5
 #define NALL_FUNCTION_HPP
6
 
7
-#include <malloc.h>
8
+#ifdef __FreeBSD__
9
+# include <stdlib.h>
10
+#else
11
+# include <malloc.h>
12
+#endif
13
 #include <functional>
14
 #include <type_traits>
15
 
(-)bsnes/files/patch-qt-Makefile (+15 lines)
Line 0 Link Here
1
--- bsnes/ui-qt/Makefile.orig	2010-09-27 03:25:04.000000000 +0200
2
+++ bsnes/ui-qt/Makefile	2010-09-27 03:25:16.000000000 +0200
3
@@ -13,9 +13,9 @@
4
 
5
 # platform
6
 ifeq ($(platform),x)
7
-  ruby := video.glx video.xv video.qtraster video.sdl
8
-  ruby += audio.alsa audio.openal audio.oss audio.pulseaudio audio.pulseaudiosimple audio.ao
9
-  ruby += input.sdl input.x
10
+  ruby := VIDEO
11
+  ruby += AUDIO
12
+  ruby += INPUT
13
 
14
   link += $(if $(findstring audio.openal,$(ruby)),-lopenal)
15
 else ifeq ($(platform),osx)
(-)bsnes/files/patch-snesfilter-Makefile (-13 lines)
Lines 1-13 Link Here
1
--- snesfilter/Makefile.orig	2010-09-02 13:28:07.000000000 +0200
2
+++ snesfilter/Makefile	2010-09-02 13:28:17.000000000 +0200
3
@@ -3,8 +3,8 @@
4
 qtlibs := QtCore QtGui
5
 include nall/qt/Makefile
6
 
7
-c     := $(compiler) -std=gnu99
8
-cpp   := $(subst cc,++,$(compiler)) -std=gnu++0x
9
+c     := $(CC) -std=gnu99
10
+cpp   := $(CXX) -std=gnu++0x
11
 flags := -O3 -I. -Iobj -fomit-frame-pointer $(qtinc)
12
 link  :=
13
 
(-)bsnes/files/patch-snesreader-Makefile (-13 lines)
Lines 1-13 Link Here
1
--- snesreader/Makefile.orig	2010-09-02 13:26:29.000000000 +0200
2
+++ snesreader/Makefile	2010-09-02 13:26:42.000000000 +0200
3
@@ -3,8 +3,8 @@
4
 qtlibs := QtCore QtGui
5
 include nall/qt/Makefile
6
 
7
-c     := $(compiler) -std=gnu99
8
-cpp   := $(subst cc,++,$(compiler)) -std=gnu++0x
9
+c     := $(CC) -std=gnu99
10
+cpp   := $(CXX) -std=gnu++0x
11
 flags := -O3 -I. -Iobj -fomit-frame-pointer
12
 link  :=
13
 
(-)bsnes/files/patch-src-Makefile (-22 lines)
Lines 1-22 Link Here
1
--- bsnes/Makefile.orig	2010-09-02 13:02:47.000000000 +0200
2
+++ bsnes/Makefile	2010-09-02 13:04:10.000000000 +0200
3
@@ -4,8 +4,8 @@
4
 ui := qt
5
 
6
 # compiler
7
-c       := $(compiler) -std=gnu99
8
-cpp     := $(subst cc,++,$(compiler)) -std=gnu++0x
9
+c       := $(CC)
10
+cpp     := $(CXX) -std=gnu++0x
11
 flags   := -O3 -fomit-frame-pointer -I. -I$(snes)
12
 link    :=
13
 objects :=
14
@@ -19,7 +19,7 @@
15
 
16
 # platform
17
 ifeq ($(platform),x)
18
-  link += -s -ldl -lX11 -lXext
19
+  link += -s -lX11 -lXext
20
 else ifeq ($(platform),osx)
21
 else ifeq ($(platform),win)
22
   link += -mwindows
(-)bsnes/files/patch-src-ui_qt-Makefile (-15 lines)
Lines 1-15 Link Here
1
--- bsnes/qt/Makefile.orig	2010-09-02 13:05:33.000000000 +0200
2
+++ bsnes/qt/Makefile	2010-09-02 13:05:50.000000000 +0200
3
@@ -13,9 +13,9 @@
4
 
5
 # platform
6
 ifeq ($(platform),x)
7
-  ruby := video.glx video.xv video.qtraster video.sdl
8
-  ruby += audio.alsa audio.openal audio.oss audio.pulseaudio audio.pulseaudiosimple audio.ao
9
-  ruby += input.sdl input.x
10
+  ruby := VIDEO
11
+  ruby += AUDIO
12
+  ruby += INPUT
13
 
14
   link += $(if $(findstring audio.openal,$(ruby)),-lopenal)
15
 else ifeq ($(platform),osx)
(-)bsnes/files/patch-supergameboy-Makefile (-12 lines)
Lines 1-12 Link Here
1
--- supergameboy/Makefile.orig	2010-09-02 13:28:45.000000000 +0200
2
+++ supergameboy/Makefile	2010-09-02 13:28:55.000000000 +0200
3
@@ -1,7 +1,7 @@
4
 include nall/Makefile
5
 
6
-c     := $(compiler) -std=gnu99
7
-cpp   := $(subst cc,++,$(compiler)) -std=gnu++0x
8
+c     := $(CC) -std=gnu99
9
+cpp   := $(CXX) -std=gnu++0x
10
 flags := -O3 -fomit-frame-pointer -I. -Icommon -Ilibgambatte/include -Ilibgambatte/src
11
 link  :=
12

Return to bug 150979