ports/56376: New port: VisualBoyAdvance
alexander
arundel at gmx.net
Wed Sep 3 19:30:14 UTC 2003
>Number: 56376
>Category: ports
>Synopsis: New port: VisualBoyAdvance
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Sep 03 12:30:12 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: No Name
>Release: FreeBSD 4.8-STABLE i386
>Organization:
>Environment:
System: FreeBSD root 4.8-STABLE FreeBSD 4.8-STABLE #0: Wed Aug 27 01:14:14 CEST 2003 arundel at root:/usr/src/sys/compile/ARUNDEL i386
>Description:
VisualBoyAdvance is currently one of the best Gameboy Advance emulators out there.
>How-To-Repeat:
>Fix:
--- output begins here ---
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# /usr/ports/emulators/vba/
# /usr/ports/emulators/vba/files
# /usr/ports/emulators/vba/files/patch-aa
# /usr/ports/emulators/vba/files/socket.h.diff
# /usr/ports/emulators/vba/Makefile
# /usr/ports/emulators/vba/distinfo
# /usr/ports/emulators/vba/pkg-plist
# /usr/ports/emulators/vba/pkg-descr
#
echo c - /usr/ports/emulators/vba/
mkdir -p /usr/ports/emulators/vba/ > /dev/null 2>&1
echo c - /usr/ports/emulators/vba/files
mkdir -p /usr/ports/emulators/vba/files > /dev/null 2>&1
echo x - /usr/ports/emulators/vba/files/patch-aa
sed 's/^X//' >/usr/ports/emulators/vba/files/patch-aa << 'END-of-/usr/ports/emulators/vba/files/patch-aa'
X*** src/SDL.cpp.orig Sat Aug 23 16:19:48 2003
X--- src/SDL.cpp Tue Sep 2 17:59:39 2003
X***************
X*** 619,625 ****
X }
X #else
X #define SDL_CALL_STRETCHER \
X! asm volatile("call *%%eax"::"a" (stretcher),"S" (src),"D" (dest))
X #endif
X #else
X #define SDL_CALL_STRETCHER \
X--- 619,625 ----
X }
X #else
X #define SDL_CALL_STRETCHER \
X! // asm volatile("call *%%eax"::"a" (stretcher),"S" (src),"D" (dest))
X #endif
X #else
X #define SDL_CALL_STRETCHER \
END-of-/usr/ports/emulators/vba/files/patch-aa
echo x - /usr/ports/emulators/vba/files/socket.h.diff
sed 's/^X//' >/usr/ports/emulators/vba/files/socket.h.diff << 'END-of-/usr/ports/emulators/vba/files/socket.h.diff'
X*** /usr/include/sys/socket.h.orig Tue Sep 2 18:35:06 2003
X--- /usr/include/sys/socket.h Wed Sep 3 19:44:43 2003
X***************
X*** 51,57 ****
X */
X typedef u_char sa_family_t;
X #ifdef _BSD_SOCKLEN_T_
X! typedef _BSD_SOCKLEN_T_ socklen_t;
X #undef _BSD_SOCKLEN_T_
X #endif
X
X--- 51,57 ----
X */
X typedef u_char sa_family_t;
X #ifdef _BSD_SOCKLEN_T_
X! //typedef _BSD_SOCKLEN_T_ socklen_t;
X #undef _BSD_SOCKLEN_T_
X #endif
X
END-of-/usr/ports/emulators/vba/files/socket.h.diff
echo x - /usr/ports/emulators/vba/Makefile
sed 's/^X//' >/usr/ports/emulators/vba/Makefile << 'END-of-/usr/ports/emulators/vba/Makefile'
X# New ports collection makefile for: vba
X# Date Created: 02 September 2003
X# Whom: <arundel at gmx.net>
X#
X# $FreeBSD$
X
XPORTNAME= vba
XPORTVERSION= 1.6a
XCATEGORIES= emulators
XMASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR= ${PORTNAME}
XDISTNAME= VisualBoyAdvance-src-${PORTVERSION}
X
XMAINTAINER= arundel at gmx.net
XCOMMENT= Currently the best Gameboy Advance emulator!
X
XBUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
XLIB_DEPENDS= png.5:${PORTSDIR}/graphics/png
X
XUSE_XLIB= yes
XUSE_X_PREFIX= yes
XUSE_GMAKE= yes
XHAS_CONFIGURE= yes
XGNU_CONFIGURE= yes
XUSE_SDL= yes
XWRKSRC= ${WRKDIR}/VisualBoyAdvance-${PORTVERSION}
X
XTARGET_DIR= ${PREFIX}/bin/
X
X.include <bsd.port.pre.mk>
X
X.if ${OSVERSION} < 500035
XCFLAGS+= -O0
X.else
XCLAGS+=
X.endif
X
XDATA_FILES= ${WRKSRC}/src/VisualBoyAdvance.cfg
XPROG_FILES= ${WRKSRC}/src/VisualBoyAdvance
XDOC_FILES= ${WRKSRC}/COPYING ${WRKSRC}/COPYRIGHT.TXT ${WRKSRC}/NEWS ${WRKSRC}/README
X
Xpre-everything::
X @${ECHO_MSG} ""
X @${ECHO_MSG} "VisualBoyAdvance has the following tunable option(s):"
X @${ECHO_MSG} ""
X @${ECHO_MSG} "--enable-gp enable GP32 emulation (default is NO)"
X @${ECHO_MSG} "--enable-c-core enable C core (default is YES)"
X @${ECHO_MSG} "--enable-dev enable development features (default is YES)"
X @${ECHO_MSG} "--with-mmx use MMX (default is NO)"
X @${ECHO_MSG} "--with-profiling enable profiling (default is YES)"
X @${ECHO_MSG} "--with-sdl-prefix=PFX Prefix where SDL is installed (optional)"
X @${ECHO_MSG} "--with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)"
X @${ECHO_MSG} "--disable-sdltest Do not try to compile and run a test SDL program"
X @${ECHO_MSG} "--with-x use the X Window System"
X @${ECHO_MSG} ""
X @${ECHO_MSG} "GCC must be 3.x or greater in order to compile GBA.cpp with -O2. Earlier"
X @${ECHO_MSG} "versions have a problem during optimization that requires an absurd"
X @${ECHO_MSG} "ammount of memory and usually ends up crashing the compiler/computer"
X @${ECHO_MSG} ""
X @${ECHO_MSG} "Note by MAINTAINER: If 'make' complains about your <sys/socket.h> apply"
X @${ECHO_MSG} "the patch in files/. Currently everything < 500035 is being build with -O0"
X @${ECHO_MSG} "flag. The options mentioned above are untested so far"
X
Xdo-build:
X cd ${WRKSRC} && ${GMAKE}
X
Xdo-install:
X ${INSTALL} -d ${PREFIX}/bin && \
X ${INSTALL_PROGRAM} ${PROG_FILES} ${PREFIX}/bin/ && \
X ${INSTALL_DATA} ${DATA_FILES} ${PREFIX}/bin/ && \
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X ${MKDIR} ${DOCSDIR}
X ${INSTALL_MAN} ${DOC_FILES} ${DOCSDIR}
X.endif
X
X.include <bsd.port.post.mk>
END-of-/usr/ports/emulators/vba/Makefile
echo x - /usr/ports/emulators/vba/distinfo
sed 's/^X//' >/usr/ports/emulators/vba/distinfo << 'END-of-/usr/ports/emulators/vba/distinfo'
XMD5 (VisualBoyAdvance-src-1.6a.tar.gz) = 4ca771356a274d72b789e39011a1ba9c
END-of-/usr/ports/emulators/vba/distinfo
echo x - /usr/ports/emulators/vba/pkg-plist
sed 's/^X//' >/usr/ports/emulators/vba/pkg-plist << 'END-of-/usr/ports/emulators/vba/pkg-plist'
Xbin/VisualBoyAdvance
Xbin/VisualBoyAdvance.cfg
X%%PORTDOCS%%%%DOCSDIR%%/COPYING
X%%PORTDOCS%%%%DOCSDIR%%/COPYRIGHT.TXT
X%%PORTDOCS%%%%DOCSDIR%%/NEWS
X%%PORTDOCS%%%%DOCSDIR%%/README
X at dirrm share/doc/vba
END-of-/usr/ports/emulators/vba/pkg-plist
echo x - /usr/ports/emulators/vba/pkg-descr
sed 's/^X//' >/usr/ports/emulators/vba/pkg-descr << 'END-of-/usr/ports/emulators/vba/pkg-descr'
X- configurable GB/GBA keys, including joystick support
X- option to use BIOS file
X- zip/gzip file support
X- directory selection for save state, battery and screen capture
X- fullscreen mode (selectable resolution)
X- video sizes 1x, 2x, 3x and 4x
X- graphic filters Normal, TV Mode, 2xSaI, Super 2xSaI and more
X- interframe blending support
X- same emulation core as VisualBoyAdvance: GB and GBA emulation
X- built-in ARM/THUMB assembly debugger
X- 10 save states accesible through keyboard
X- automatic battery file load/save
X- auto-fire support
X- pause, reset through keyboard
X- 16, 24 and 32 bit desktop support
X- GDB remote debugging (see below for information)
X- auto frameskipping and throttle
X- AGBPrint support for development
X- RTC support
X
XWWW: http://vboy.emuhq.com/
END-of-/usr/ports/emulators/vba/pkg-descr
exit
--- output ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list