ports/97519: New port: emulators/hugo A PC Engine emulator

Ports-bugs

llwanginfororg
Hu-Go! is a PC Engine (TurboGrafx 16) emulator originally coming from
FPCE, with various enhancements from many other emulators.

Added files:
  emulators/hugo	Makefile distinfo pkg-descr pkg-plist
  emulators/hugo/files	patch-Makefile.in patch-configure patch-osd_freebsd_cd.c
	
	
# 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:
#
#	hugo
#	hugo/Makefile
#	hugo/distinfo
#	hugo/pkg-descr
#	hugo/files
#	hugo/files/patch-configure
#	hugo/files/patch-osd_freebsd_cd.c
#	hugo/files/patch-Makefile.in
#	hugo/pkg-plist
#
echo c - hugo
mkdir -p hugo > /dev/null 2>&1
echo x - hugo/Makefile
sed 's/^X//' >hugo/Makefile << 'END-of-hugo/Makefile'
X# New ports collection makefile for:	Hu-Go!
X# Date created:        18 May 2006
X#
X# $FreeBSD$
X#
X
XPORTNAME=	hugo
XPORTVERSION=	2.12
XCATEGORIES=	emulators
XMASTER_SITES=	http://www.zeograd.com/download/
X
XMAINTAINER=	[email protected]
XCOMMENT=	A PC Engine (TurboGrafx 16) emulator
X
XBUILD_DEPENDS=	${LOCALBASE}/include/argp.h:${PORTSDIR}/devel/argp-standalone
X
XGNU_CONFIGURE=	yes
XUSE_GMAKE=	yes
XUSE_SDL=	sdl
XLDFLAGS+=	-L${LOCALBASE}/lib
XCONFIGURE_ENV+=	SDL_CONFIG="${SDL_CONFIG}" LDFLAGS="${LDFLAGS}"
X
X.if !defined(WITHOUT_NETPLAY)
XUSE_SDL+=	net
X.else
XCONFIGURE_ARGS+=	--enable-netplay=no
X.endif
X
X.if defined(WITHOUT_GUI)
XCONFIGURE_ARGS+=	--enable-gui=no --disable-gtktest
X.else
XUSE_GNOME=	gtk20
X.endif
X
X.if defined(WITH_OGG_SUPPORT)
XLIB_DEPENDS+=	vorbis.3:${PORTSDIR}/audio/libvorbis
XWITH_SDL_MIXER=	yes
XCONFIGURE_ARGS+=	--with-ogg-support
X.endif
X
X.if defined(WITH_SDL_MIXER)
XUSE_SDL+=	mixer
XCONFIGURE_ARGS+=	--with-sdl-mixer
X.endif
X
XMAKE_ENV+=	DOCSDIR="${DOCSDIR}"
X
X.if defined(NOPORTDOCS)
XMAKE_ENV+=	PORTDOCS=false
X.else
XMAKE_ENV+=	PORTDOCS=true
X.endif
X
Xpost-patch:
X	@${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}|' ${WRKSRC}/configure
X
X.include <bsd.port.mk>
END-of-hugo/Makefile
echo x - hugo/distinfo
sed 's/^X//' >hugo/distinfo << 'END-of-hugo/distinfo'
XMD5 (hugo-2.12.tar.gz) = 1256ab47592413d12789166da23c00fc
XSHA256 (hugo-2.12.tar.gz) = 0bc1d0a6c7d8a0906c25611cbc9fb391afb59770c0cd71a7329b1338c1821b8e
XSIZE (hugo-2.12.tar.gz) = 456991
END-of-hugo/distinfo
echo x - hugo/pkg-descr
sed 's/^X//' >hugo/pkg-descr << 'END-of-hugo/pkg-descr'
XHu-Go! is a PC Engine (TurboGrafx 16) emulator originally coming from
XFPCE, with various enhancements from many other emulators.
X
XWWW: http://www.zeograd.com/
X
X- Li-Lun Wang
[email protected]
END-of-hugo/pkg-descr
echo c - hugo/files
mkdir -p hugo/files > /dev/null 2>&1
echo x - hugo/files/patch-configure
sed 's/^X//' >hugo/files/patch-configure << 'END-of-hugo/files/patch-configure'


X@@ -3256,7 +3256,7 @@
X   echo $ECHO_N "(cached) $ECHO_C" >&6
X else
X   ac_check_lib_save_LIBS=$LIBS
X-LIBS="-lSDL  $LIBS"
X+LIBS="`${SDL_CONFIG} --libs`  $LIBS"
X cat >conftest.$ac_ext <<_ACEOF
X /* confdefs.h.  */
X _ACEOF
X@@ -3312,7 +3312,7 @@
X #define HAVE_LIBSDL 1
X _ACEOF
X 
X-  LIBS="-lSDL $LIBS"
X+  LIBS="`${SDL_CONFIG} --libs` $LIBS"
X 
X fi
X  #,,[AC_MSG_ERROR([need SDL. See #http://www.libsdl.org])])
X@@ -7877,7 +7877,7 @@
X echo "$as_me:$LINENO: checking whether netplay support was asked" >&5
X echo $ECHO_N "checking whether netplay support was asked...            $ECHO_C" >&6
X 
X-if test "x$HAVE_LIBSDL_NET" == "xyes"
X+if test "x$HAVE_LIBSDL_NET" = "xyes"
X then
X 
X 
X@@ -8675,7 +8675,36 @@
X   SDL_FREEBSD_FALSE=
X fi
X 
X+
X+			 if test "$USE_SDL_mixer" = "yes"; then
X+				LIBS="$LIBS -lSDL_mixer "
X+
X+
X+if true; then
X+  SDL_MIXER_LINUX_TRUE=
X+  SDL_MIXER_LINUX_FALSE='#'
X+else
X+  SDL_MIXER_LINUX_TRUE='#'
X+  SDL_MIXER_LINUX_FALSE=
X+fi
X+
X+			 fi
X+
X+			 if test "$OGG_SUPPORT" = "yes"; then
X+				LIBS="$LIBS -lvorbis -lvorbisfile"
X+
X+
X+if true; then
X+  ZE_HCD_OGG_SUPPORT_TRUE=
X+  ZE_HCD_OGG_SUPPORT_FALSE='#'
X+else
X+  ZE_HCD_OGG_SUPPORT_TRUE='#'
X+  ZE_HCD_OGG_SUPPORT_FALSE=
X+fi
X+ # ZE_: needs to be processed after SDL_MIXER_LINUX...
X+			 fi
X+
X 	 ;;
X 	sun4u-SunOS)
X 	  echo "Solaris build enabled"
END-of-hugo/files/patch-configure
echo x - hugo/files/patch-osd_freebsd_cd.c
sed 's/^X//' >hugo/files/patch-osd_freebsd_cd.c << 'END-of-hugo/files/patch-osd_freebsd_cd.c'


X@@ -38,7 +38,7 @@
X }
X 
X 
X-int osd_cd_read(UChar *p, UInt32 sector)
X+void osd_cd_read(UChar *p, UInt32 sector)
X {
X /*
X   int retries = 0;
X@@ -236,15 +236,3 @@
X     perror("play_audio_range");
X */
X }
X-
X-void osd_cd_subchannel_info(unsigned short offset)
X-{ }
X- 
X-void osd_cd_status(int *status)
X-{}
X-
X-void osd_cd_resume(void)
X-{}
X-
X-void osd_cd_pause(void)
X-{}
END-of-hugo/files/patch-osd_freebsd_cd.c
echo x - hugo/files/patch-Makefile.in
sed 's/^X//' >hugo/files/patch-Makefile.in << 'END-of-hugo/files/patch-Makefile.in'


X@@ -444,7 +444,7 @@
X 	-test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
X hugo$(EXEEXT): $(hugo_OBJECTS) $(hugo_DEPENDENCIES) 
X 	@rm -f hugo$(EXEEXT)
X-	$(LINK) $(hugo_LDFLAGS) $(hugo_OBJECTS) $(hugo_LDADD) $(LIBS)
X+	$(LINK) $(hugo_LDFLAGS) $(hugo_OBJECTS) $(hugo_LDADD) $(LIBS) -largp
X hugod$(EXEEXT): $(hugod_OBJECTS) $(hugod_DEPENDENCIES) 
X 	@rm -f hugod$(EXEEXT)
X 	$(LINK) $(hugod_LDFLAGS) $(hugod_OBJECTS) $(hugod_LDADD) $(LIBS)
X@@ -813,11 +813,11 @@
X 	    fi \
X 	  done \
X 	fi && \
X-	if test -d $(srcdir)/doc; then \
X-	  $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/doc; \
X-	  for doc in $(srcdir)/doc/*.{html,txt,css}; do \
X+	if test -d $(srcdir)/doc && ${PORTDOCS}; then \
X+	  $(mkinstalldirs) ${DOCSDIR}; \
X+	  for doc in $(srcdir)/doc/*.html $(srcdir)/doc/*.txt $(srcdir)/doc/*.css; do \
X 	    if test -f $$doc; then \
X-	      $(INSTALL_DATA) $$doc $(DESTDIR)$(pkgdatadir)/doc; \
X+	      $(INSTALL_DATA) $$doc ${DOCSDIR}; \
X 	    fi \
X 	  done \
X 	fi
END-of-hugo/files/patch-Makefile.in
echo x - hugo/pkg-plist
sed 's/^X//' >hugo/pkg-plist << 'END-of-hugo/pkg-plist'
Xbin/hugo
Xbin/hugod
X%%PORTDOCS%%%%DOCSDIR%%/README.old.txt
X%%PORTDOCS%%%%DOCSDIR%%/cdrom.html
X%%PORTDOCS%%%%DOCSDIR%%/cdrom.txt
X%%PORTDOCS%%%%DOCSDIR%%/hugo_manual.css
X%%PORTDOCS%%%%DOCSDIR%%/index.html
X%%PORTDOCS%%%%DOCSDIR%%/joypad.html
X%%PORTDOCS%%%%DOCSDIR%%/joypad.txt
X%%PORTDOCS%%%%DOCSDIR%%/linux.html
X%%PORTDOCS%%%%DOCSDIR%%/linux.txt
X%%PORTDOCS%%%%DOCSDIR%%/netplay.html
X%%PORTDOCS%%%%DOCSDIR%%/netplay.txt
X%%PORTDOCS%%%%DOCSDIR%%/others.html
X%%PORTDOCS%%%%DOCSDIR%%/others.txt
X%%PORTDOCS%%%%DOCSDIR%%/quickstart.html
X%%PORTDOCS%%%%DOCSDIR%%/quickstart.txt
X%%PORTDOCS%%%%DOCSDIR%%/win32.html
X%%PORTDOCS%%%%DOCSDIR%%/win32.txt
X%%DATADIR%%/pixmaps/cdrom.png
X%%DATADIR%%/pixmaps/gnome-fs-network-24.png
X%%DATADIR%%/pixmaps/gnome-fs-network.png
X%%DATADIR%%/pixmaps/joystick.png
X%%DATADIR%%/pixmaps/keyboard.png
X%%DATADIR%%/pixmaps/rom.png
[email protected] %%DATADIR%%/pixmaps
[email protected] %%DATADIR%%
[email protected] %%DOCSDIR%%
END-of-hugo/pkg-plist
exit


	


_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
To unsubscribe, send any mail to "[email protected]"
                                            
clsungFreeBSDorg
Synopsis: New port: emulators/hugo A PC Engine emulator

State-Changed-From-To: open->closed
State-Changed-By: clsung

State-Changed-Why: 
New port added. Thank you.

http://www.freebsd.org/cgi/query-pr.cgi?pr=97519
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
To unsubscribe, send any mail to "[email protected]"