diff options
author | clsung <clsung@FreeBSD.org> | 2006-05-27 23:24:20 +0800 |
---|---|---|
committer | clsung <clsung@FreeBSD.org> | 2006-05-27 23:24:20 +0800 |
commit | 8b26db1a2efc6e56d7cd20e5864db29c2139eb17 (patch) | |
tree | dc3f2b5f002c640ce7a71883f611abf9873a5702 /emulators | |
parent | fab89321c54f8dfa395411c839c0e202c946a6be (diff) | |
download | freebsd-ports-gnome-8b26db1a2efc6e56d7cd20e5864db29c2139eb17.tar.gz freebsd-ports-gnome-8b26db1a2efc6e56d7cd20e5864db29c2139eb17.tar.zst freebsd-ports-gnome-8b26db1a2efc6e56d7cd20e5864db29c2139eb17.zip |
Add hugo 2.12, a PC Engine (TurboGrafx 16) emulator.
PR: ports/97519
Submitted by: Li-Lun Wang <llwang@infor.org>
Diffstat (limited to 'emulators')
-rw-r--r-- | emulators/Makefile | 1 | ||||
-rw-r--r-- | emulators/hugo/Makefile | 58 | ||||
-rw-r--r-- | emulators/hugo/distinfo | 3 | ||||
-rw-r--r-- | emulators/hugo/files/patch-Makefile.in | 27 | ||||
-rw-r--r-- | emulators/hugo/files/patch-configure | 65 | ||||
-rw-r--r-- | emulators/hugo/files/patch-osd_freebsd_cd.c | 27 | ||||
-rw-r--r-- | emulators/hugo/pkg-descr | 8 | ||||
-rw-r--r-- | emulators/hugo/pkg-plist | 28 |
8 files changed, 217 insertions, 0 deletions
diff --git a/emulators/Makefile b/emulators/Makefile index 29c2dbf45a29..30972000739f 100644 --- a/emulators/Makefile +++ b/emulators/Makefile @@ -42,6 +42,7 @@ SUBDIR += hercules SUBDIR += hfs SUBDIR += hfsutils + SUBDIR += hugo SUBDIR += ia64sim SUBDIR += ines SUBDIR += its diff --git a/emulators/hugo/Makefile b/emulators/hugo/Makefile new file mode 100644 index 000000000000..01ac24a73d1d --- /dev/null +++ b/emulators/hugo/Makefile @@ -0,0 +1,58 @@ +# New ports collection makefile for: Hu-Go! +# Date created: 18 May 2006 +# Whom: Li-Lun Wang <llwang@infor.org> +# +# $FreeBSD$ +# + +PORTNAME= hugo +PORTVERSION= 2.12 +CATEGORIES= emulators +MASTER_SITES= http://www.zeograd.com/download/ + +MAINTAINER= llwang@infor.org +COMMENT= A PC Engine (TurboGrafx 16) emulator + +BUILD_DEPENDS= ${LOCALBASE}/include/argp.h:${PORTSDIR}/devel/argp-standalone + +GNU_CONFIGURE= yes +USE_GMAKE= yes +USE_SDL= sdl +LDFLAGS+= -L${LOCALBASE}/lib +CONFIGURE_ENV+= SDL_CONFIG="${SDL_CONFIG}" LDFLAGS="${LDFLAGS}" + +.if !defined(WITHOUT_NETPLAY) +USE_SDL+= net +.else +CONFIGURE_ARGS+= --enable-netplay=no +.endif + +.if defined(WITHOUT_GUI) +CONFIGURE_ARGS+= --enable-gui=no --disable-gtktest +.else +USE_GNOME= gtk20 +.endif + +.if defined(WITH_OGG_SUPPORT) +LIB_DEPENDS+= vorbis.3:${PORTSDIR}/audio/libvorbis +WITH_SDL_MIXER= yes +CONFIGURE_ARGS+= --with-ogg-support +.endif + +.if defined(WITH_SDL_MIXER) +USE_SDL+= mixer +CONFIGURE_ARGS+= --with-sdl-mixer +.endif + +MAKE_ENV+= DOCSDIR="${DOCSDIR}" + +.if defined(NOPORTDOCS) +MAKE_ENV+= PORTDOCS=false +.else +MAKE_ENV+= PORTDOCS=true +.endif + +post-patch: + @${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}|' ${WRKSRC}/configure + +.include <bsd.port.mk> diff --git a/emulators/hugo/distinfo b/emulators/hugo/distinfo new file mode 100644 index 000000000000..b5cee225e855 --- /dev/null +++ b/emulators/hugo/distinfo @@ -0,0 +1,3 @@ +MD5 (hugo-2.12.tar.gz) = 1256ab47592413d12789166da23c00fc +SHA256 (hugo-2.12.tar.gz) = 0bc1d0a6c7d8a0906c25611cbc9fb391afb59770c0cd71a7329b1338c1821b8e +SIZE (hugo-2.12.tar.gz) = 456991 diff --git a/emulators/hugo/files/patch-Makefile.in b/emulators/hugo/files/patch-Makefile.in new file mode 100644 index 000000000000..2ed851e6677b --- /dev/null +++ b/emulators/hugo/files/patch-Makefile.in @@ -0,0 +1,27 @@ +--- Makefile.in.orig Tue Apr 5 15:23:11 2005 ++++ Makefile.in Fri May 19 02:40:30 2006 +@@ -444,7 +444,7 @@ + -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) + hugo$(EXEEXT): $(hugo_OBJECTS) $(hugo_DEPENDENCIES) + @rm -f hugo$(EXEEXT) +- $(LINK) $(hugo_LDFLAGS) $(hugo_OBJECTS) $(hugo_LDADD) $(LIBS) ++ $(LINK) $(hugo_LDFLAGS) $(hugo_OBJECTS) $(hugo_LDADD) $(LIBS) -largp + hugod$(EXEEXT): $(hugod_OBJECTS) $(hugod_DEPENDENCIES) + @rm -f hugod$(EXEEXT) + $(LINK) $(hugod_LDFLAGS) $(hugod_OBJECTS) $(hugod_LDADD) $(LIBS) +@@ -813,11 +813,11 @@ + fi \ + done \ + fi && \ +- if test -d $(srcdir)/doc; then \ +- $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/doc; \ +- for doc in $(srcdir)/doc/*.{html,txt,css}; do \ ++ if test -d $(srcdir)/doc && ${PORTDOCS}; then \ ++ $(mkinstalldirs) ${DOCSDIR}; \ ++ for doc in $(srcdir)/doc/*.html $(srcdir)/doc/*.txt $(srcdir)/doc/*.css; do \ + if test -f $$doc; then \ +- $(INSTALL_DATA) $$doc $(DESTDIR)$(pkgdatadir)/doc; \ ++ $(INSTALL_DATA) $$doc ${DOCSDIR}; \ + fi \ + done \ + fi diff --git a/emulators/hugo/files/patch-configure b/emulators/hugo/files/patch-configure new file mode 100644 index 000000000000..e091c8d8495d --- /dev/null +++ b/emulators/hugo/files/patch-configure @@ -0,0 +1,65 @@ +--- configure.orig Tue Apr 5 14:28:53 2005 ++++ configure Fri May 19 02:02:42 2006 +@@ -3256,7 +3256,7 @@ + echo $ECHO_N "(cached) $ECHO_C" >&6 + else + ac_check_lib_save_LIBS=$LIBS +-LIBS="-lSDL $LIBS" ++LIBS="`${SDL_CONFIG} --libs` $LIBS" + cat >conftest.$ac_ext <<_ACEOF + /* confdefs.h. */ + _ACEOF +@@ -3312,7 +3312,7 @@ + #define HAVE_LIBSDL 1 + _ACEOF + +- LIBS="-lSDL $LIBS" ++ LIBS="`${SDL_CONFIG} --libs` $LIBS" + + fi + #,,[AC_MSG_ERROR([need SDL. See #http://www.libsdl.org])]) +@@ -7877,7 +7877,7 @@ + echo "$as_me:$LINENO: checking whether netplay support was asked" >&5 + echo $ECHO_N "checking whether netplay support was asked... $ECHO_C" >&6 + +-if test "x$HAVE_LIBSDL_NET" == "xyes" ++if test "x$HAVE_LIBSDL_NET" = "xyes" + then + + +@@ -8675,7 +8675,36 @@ + SDL_FREEBSD_FALSE= + fi + ++ ++ if test "$USE_SDL_mixer" = "yes"; then ++ LIBS="$LIBS -lSDL_mixer " ++ ++ ++if true; then ++ SDL_MIXER_LINUX_TRUE= ++ SDL_MIXER_LINUX_FALSE='#' ++else ++ SDL_MIXER_LINUX_TRUE='#' ++ SDL_MIXER_LINUX_FALSE= ++fi ++ ++ fi ++ ++ if test "$OGG_SUPPORT" = "yes"; then ++ LIBS="$LIBS -lvorbis -lvorbisfile" ++ ++ ++if true; then ++ ZE_HCD_OGG_SUPPORT_TRUE= ++ ZE_HCD_OGG_SUPPORT_FALSE='#' ++else ++ ZE_HCD_OGG_SUPPORT_TRUE='#' ++ ZE_HCD_OGG_SUPPORT_FALSE= ++fi ++ # ZE_: needs to be processed after SDL_MIXER_LINUX... ++ fi ++ + ;; + sun4u-SunOS) + echo "Solaris build enabled" diff --git a/emulators/hugo/files/patch-osd_freebsd_cd.c b/emulators/hugo/files/patch-osd_freebsd_cd.c new file mode 100644 index 000000000000..3aeca921b8c9 --- /dev/null +++ b/emulators/hugo/files/patch-osd_freebsd_cd.c @@ -0,0 +1,27 @@ +--- osd_freebsd_cd.c.orig Fri May 19 01:33:50 2006 ++++ osd_freebsd_cd.c Fri May 19 01:36:44 2006 +@@ -38,7 +38,7 @@ + } + + +-int osd_cd_read(UChar *p, UInt32 sector) ++void osd_cd_read(UChar *p, UInt32 sector) + { + /* + int retries = 0; +@@ -236,15 +236,3 @@ + perror("play_audio_range"); + */ + } +- +-void osd_cd_subchannel_info(unsigned short offset) +-{ } +- +-void osd_cd_status(int *status) +-{} +- +-void osd_cd_resume(void) +-{} +- +-void osd_cd_pause(void) +-{} diff --git a/emulators/hugo/pkg-descr b/emulators/hugo/pkg-descr new file mode 100644 index 000000000000..9e08be27c688 --- /dev/null +++ b/emulators/hugo/pkg-descr @@ -0,0 +1,8 @@ +Hu-Go! is a PC Engine (TurboGrafx 16) emulator originally coming from +FPCE, with various enhancements from many other emulators. + +Author: Zeograd <zeograd@zeograd.com> +WWW: http://www.zeograd.com/ + +- Li-Lun Wang +llwang@infor.org diff --git a/emulators/hugo/pkg-plist b/emulators/hugo/pkg-plist new file mode 100644 index 000000000000..b515116a211e --- /dev/null +++ b/emulators/hugo/pkg-plist @@ -0,0 +1,28 @@ +bin/hugo +bin/hugod +%%PORTDOCS%%%%DOCSDIR%%/README.old.txt +%%PORTDOCS%%%%DOCSDIR%%/cdrom.html +%%PORTDOCS%%%%DOCSDIR%%/cdrom.txt +%%PORTDOCS%%%%DOCSDIR%%/hugo_manual.css +%%PORTDOCS%%%%DOCSDIR%%/index.html +%%PORTDOCS%%%%DOCSDIR%%/joypad.html +%%PORTDOCS%%%%DOCSDIR%%/joypad.txt +%%PORTDOCS%%%%DOCSDIR%%/linux.html +%%PORTDOCS%%%%DOCSDIR%%/linux.txt +%%PORTDOCS%%%%DOCSDIR%%/netplay.html +%%PORTDOCS%%%%DOCSDIR%%/netplay.txt +%%PORTDOCS%%%%DOCSDIR%%/others.html +%%PORTDOCS%%%%DOCSDIR%%/others.txt +%%PORTDOCS%%%%DOCSDIR%%/quickstart.html +%%PORTDOCS%%%%DOCSDIR%%/quickstart.txt +%%PORTDOCS%%%%DOCSDIR%%/win32.html +%%PORTDOCS%%%%DOCSDIR%%/win32.txt +%%DATADIR%%/pixmaps/cdrom.png +%%DATADIR%%/pixmaps/gnome-fs-network-24.png +%%DATADIR%%/pixmaps/gnome-fs-network.png +%%DATADIR%%/pixmaps/joystick.png +%%DATADIR%%/pixmaps/keyboard.png +%%DATADIR%%/pixmaps/rom.png +@dirrm %%DATADIR%%/pixmaps +@dirrm %%DATADIR%% +%%PORTDOCS%%@dirrm %%DOCSDIR%% |