aboutsummaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-10-03 13:07:59 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-10-03 13:07:59 +0000
commit0e78f2abe294f40c373343e0af27217db7e6be61 (patch)
treee38d04ff0cf662dec2b1b96c9d25bc2f9e9a0d69 /emulators
parent275be4db98edb4d981e5a76ab7f72f98fd306a04 (diff)
downloadports-0e78f2abe294f40c373343e0af27217db7e6be61.tar.gz
ports-0e78f2abe294f40c373343e0af27217db7e6be61.zip
Notes
Diffstat (limited to 'emulators')
-rw-r--r--emulators/Makefile1
-rw-r--r--emulators/vba/Makefile76
-rw-r--r--emulators/vba/distinfo1
-rw-r--r--emulators/vba/files/patch-aa19
-rw-r--r--emulators/vba/files/patch-ab64
-rw-r--r--emulators/vba/files/socket.h.diff0
-rw-r--r--emulators/vba/pkg-descr21
-rw-r--r--emulators/vba/pkg-plist7
8 files changed, 189 insertions, 0 deletions
diff --git a/emulators/Makefile b/emulators/Makefile
index b8eb4287ebf9..dd532d4bef4a 100644
--- a/emulators/Makefile
+++ b/emulators/Makefile
@@ -70,6 +70,7 @@
SUBDIR += twin
SUBDIR += uae
SUBDIR += vMac
+ SUBDIR += vba
SUBDIR += vgb
SUBDIR += vgb-bin
SUBDIR += vgba-bin
diff --git a/emulators/vba/Makefile b/emulators/vba/Makefile
new file mode 100644
index 000000000000..1bb4348f04bd
--- /dev/null
+++ b/emulators/vba/Makefile
@@ -0,0 +1,76 @@
+# New ports collection makefile for: vba
+# Date Created: 02 September 2003
+# Whom: <arundel@gmx.net>
+#
+# $FreeBSD$
+
+PORTNAME= vba
+PORTVERSION= 1.6a
+CATEGORIES= emulators
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+DISTNAME= VisualBoyAdvance-src-${PORTVERSION}
+
+MAINTAINER= arundel@gmx.net
+COMMENT= Currently the best Gameboy Advance emulator!
+
+BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
+LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png
+
+USE_X_PREFIX= yes
+USE_GMAKE= yes
+GNU_CONFIGURE= yes
+USE_SDL= yes
+WRKSRC= ${WRKDIR}/VisualBoyAdvance-${PORTVERSION}
+
+TARGET_DIR= ${PREFIX}/bin/
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 500035
+CFLAGS+= -O0
+.else
+CLAGS+=
+.endif
+
+DATA_FILES= ${WRKSRC}/src/VisualBoyAdvance.cfg
+PROG_FILES= ${WRKSRC}/src/VisualBoyAdvance
+DOC_FILES= ${WRKSRC}/COPYING ${WRKSRC}/COPYRIGHT.TXT ${WRKSRC}/NEWS ${WRKSRC}/README
+
+pre-everything::
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} "VisualBoyAdvance has the following tunable option(s):"
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} "--enable-gp enable GP32 emulation (default is NO)"
+ @${ECHO_MSG} "--enable-c-core enable C core (default is YES)"
+ @${ECHO_MSG} "--enable-dev enable development features (default is YES)"
+ @${ECHO_MSG} "--with-mmx use MMX (default is NO)"
+ @${ECHO_MSG} "--with-profiling enable profiling (default is YES)"
+ @${ECHO_MSG} "--with-sdl-prefix=PFX Prefix where SDL is installed (optional)"
+ @${ECHO_MSG} "--with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)"
+ @${ECHO_MSG} "--disable-sdltest Do not try to compile and run a test SDL program"
+ @${ECHO_MSG} "--with-x use the X Window System"
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} "GCC must be 3.x or greater in order to compile GBA.cpp with -O2. Earlier"
+ @${ECHO_MSG} "versions have a problem during optimization that requires an absurd"
+ @${ECHO_MSG} "ammount of memory and usually ends up crashing the compiler/computer"
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} "Note by MAINTAINER: Currently everything < 500035 is being build with -O0"
+ @${ECHO_MSG} "flag. The options above are untested and probably don't work"
+ @${ECHO_MSG} ""
+
+do-build:
+ cd ${WRKSRC} && ${GMAKE}
+
+do-install:
+ ${INSTALL} -d ${TARGET_DIR} && \
+ ${INSTALL_PROGRAM} ${PROG_FILES} ${TARGET_DIR} && \
+ ${INSTALL_DATA} ${DATA_FILES} ${TARGET_DIR} && \
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_MAN} ${DOC_FILES} ${DOCSDIR}
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/emulators/vba/distinfo b/emulators/vba/distinfo
new file mode 100644
index 000000000000..8d2f21d72769
--- /dev/null
+++ b/emulators/vba/distinfo
@@ -0,0 +1 @@
+MD5 (VisualBoyAdvance-src-1.6a.tar.gz) = 4ca771356a274d72b789e39011a1ba9c
diff --git a/emulators/vba/files/patch-aa b/emulators/vba/files/patch-aa
new file mode 100644
index 000000000000..57d4bfd7c40e
--- /dev/null
+++ b/emulators/vba/files/patch-aa
@@ -0,0 +1,19 @@
+*** src/SDL.cpp.orig Sat Aug 23 16:19:48 2003
+--- src/SDL.cpp Tue Sep 2 17:59:39 2003
+***************
+*** 619,625 ****
+ }
+ #else
+ #define SDL_CALL_STRETCHER \
+! asm volatile("call *%%eax"::"a" (stretcher),"S" (src),"D" (dest))
+ #endif
+ #else
+ #define SDL_CALL_STRETCHER \
+--- 619,625 ----
+ }
+ #else
+ #define SDL_CALL_STRETCHER \
+! // asm volatile("call *%%eax"::"a" (stretcher),"S" (src),"D" (dest))
+ #endif
+ #else
+ #define SDL_CALL_STRETCHER \
diff --git a/emulators/vba/files/patch-ab b/emulators/vba/files/patch-ab
new file mode 100644
index 000000000000..112ce574c28d
--- /dev/null
+++ b/emulators/vba/files/patch-ab
@@ -0,0 +1,64 @@
+*** configure.orig Sat Aug 23 16:20:50 2003
+--- configure Fri Sep 5 01:50:01 2003
+***************
+*** 2726,2784 ****
+
+ fi
+
+- echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
+- echo "configure:2731: checking for socklen_t" >&5
+- cat > conftest.$ac_ext <<EOF
+- #line 2733 "configure"
+- #include "confdefs.h"
+- #include <sys/socket.h>
+- socklen_t x;
+-
+- int main() {
+-
+- ; return 0; }
+- EOF
+- if { (eval echo configure:2742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+- rm -rf conftest*
+- echo "$ac_t""yes" 1>&6
+- else
+- echo "configure: failed program was:" >&5
+- cat conftest.$ac_ext >&5
+- rm -rf conftest*
+-
+- cat > conftest.$ac_ext <<EOF
+- #line 2751 "configure"
+- #include "confdefs.h"
+- #include <sys/socket.h>
+- int accept (int, struct sockaddr *, size_t *);
+-
+- int main() {
+-
+- ; return 0; }
+- EOF
+- if { (eval echo configure:2760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+- rm -rf conftest*
+-
+- echo "$ac_t""size_t" 1>&6
+- cat >> confdefs.h <<\EOF
+- #define socklen_t size_t
+- EOF
+-
+- else
+- echo "configure: failed program was:" >&5
+- cat conftest.$ac_ext >&5
+- rm -rf conftest*
+-
+- echo "$ac_t""int" 1>&6
+- cat >> confdefs.h <<\EOF
+- #define socklen_t int
+- EOF
+-
+- fi
+- rm -f conftest*
+- fi
+- rm -f conftest*
+-
+ echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
+ echo "configure:2784: checking whether byte ordering is bigendian" >&5
+ if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
+--- 2726,2731 ----
diff --git a/emulators/vba/files/socket.h.diff b/emulators/vba/files/socket.h.diff
new file mode 100644
index 000000000000..e69de29bb2d1
--- /dev/null
+++ b/emulators/vba/files/socket.h.diff
diff --git a/emulators/vba/pkg-descr b/emulators/vba/pkg-descr
new file mode 100644
index 000000000000..137e73c6d787
--- /dev/null
+++ b/emulators/vba/pkg-descr
@@ -0,0 +1,21 @@
+- configurable GB/GBA keys, including joystick support
+- option to use BIOS file
+- zip/gzip file support
+- directory selection for save state, battery and screen capture
+- fullscreen mode (selectable resolution)
+- video sizes 1x, 2x, 3x and 4x
+- graphic filters Normal, TV Mode, 2xSaI, Super 2xSaI and more
+- interframe blending support
+- same emulation core as VisualBoyAdvance: GB and GBA emulation
+- built-in ARM/THUMB assembly debugger
+- 10 save states accesible through keyboard
+- automatic battery file load/save
+- auto-fire support
+- pause, reset through keyboard
+- 16, 24 and 32 bit desktop support
+- GDB remote debugging (see below for information)
+- auto frameskipping and throttle
+- AGBPrint support for development
+- RTC support
+
+WWW: http://vboy.emuhq.com/
diff --git a/emulators/vba/pkg-plist b/emulators/vba/pkg-plist
new file mode 100644
index 000000000000..45e54de7e477
--- /dev/null
+++ b/emulators/vba/pkg-plist
@@ -0,0 +1,7 @@
+bin/VisualBoyAdvance
+bin/VisualBoyAdvance.cfg
+%%PORTDOCS%%%%DOCSDIR%%/COPYING
+%%PORTDOCS%%%%DOCSDIR%%/COPYRIGHT.TXT
+%%PORTDOCS%%%%DOCSDIR%%/NEWS
+%%PORTDOCS%%%%DOCSDIR%%/README
+@dirrm share/doc/vba