mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
Add hugo 2.12, a PC Engine (TurboGrafx 16) emulator.
PR: ports/97519 Submitted by: Li-Lun Wang <llwang@infor.org>
This commit is contained in:
parent
e529d3fa56
commit
cce58bca30
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=163616
@ -42,6 +42,7 @@
|
||||
SUBDIR += hercules
|
||||
SUBDIR += hfs
|
||||
SUBDIR += hfsutils
|
||||
SUBDIR += hugo
|
||||
SUBDIR += ia64sim
|
||||
SUBDIR += ines
|
||||
SUBDIR += its
|
||||
|
58
emulators/hugo/Makefile
Normal file
58
emulators/hugo/Makefile
Normal file
@ -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>
|
3
emulators/hugo/distinfo
Normal file
3
emulators/hugo/distinfo
Normal file
@ -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
|
27
emulators/hugo/files/patch-Makefile.in
Normal file
27
emulators/hugo/files/patch-Makefile.in
Normal file
@ -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
|
65
emulators/hugo/files/patch-configure
Normal file
65
emulators/hugo/files/patch-configure
Normal file
@ -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"
|
27
emulators/hugo/files/patch-osd_freebsd_cd.c
Normal file
27
emulators/hugo/files/patch-osd_freebsd_cd.c
Normal file
@ -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)
|
||||
-{}
|
8
emulators/hugo/pkg-descr
Normal file
8
emulators/hugo/pkg-descr
Normal file
@ -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
|
28
emulators/hugo/pkg-plist
Normal file
28
emulators/hugo/pkg-plist
Normal file
@ -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%%
|
Loading…
Reference in New Issue
Block a user