diff options
author | jylefort <jylefort@FreeBSD.org> | 2005-06-29 02:11:44 +0800 |
---|---|---|
committer | jylefort <jylefort@FreeBSD.org> | 2005-06-29 02:11:44 +0800 |
commit | 8ae7da62e08c3fbfca18d939ecd733df321024bf (patch) | |
tree | d7cdd5ed734595a714716750907adac0e8c52525 /audio | |
parent | cbc22612fec9a7e51bfac9af905f69d7001f8048 (diff) | |
download | freebsd-ports-gnome-8ae7da62e08c3fbfca18d939ecd733df321024bf.tar.gz freebsd-ports-gnome-8ae7da62e08c3fbfca18d939ecd733df321024bf.tar.zst freebsd-ports-gnome-8ae7da62e08c3fbfca18d939ecd733df321024bf.zip |
Add gbsplay.
gbsplay emulates the sound hardware of the Nintendo Game Boy(TM). It is able
to play the sounds from a Game Boy(TM) module dump (.GBS format) through
/dev/dsp, standard output or NAS.
WWW: http://gbsplay.berlios.de/
PR: ports/82694
Submitted by: Emanuel Haupt <ehaupt@critical.ch>
Diffstat (limited to 'audio')
-rw-r--r-- | audio/Makefile | 1 | ||||
-rw-r--r-- | audio/gbsplay/Makefile | 93 | ||||
-rw-r--r-- | audio/gbsplay/distinfo | 2 | ||||
-rw-r--r-- | audio/gbsplay/pkg-descr | 8 | ||||
-rw-r--r-- | audio/gbsplay/pkg-plist | 9 |
5 files changed, 113 insertions, 0 deletions
diff --git a/audio/Makefile b/audio/Makefile index 7fb639a3e913..db49ecd80452 100644 --- a/audio/Makefile +++ b/audio/Makefile @@ -138,6 +138,7 @@ SUBDIR += gai-album SUBDIR += gai-visual-audio SUBDIR += gaim-festival + SUBDIR += gbsplay SUBDIR += gdam SUBDIR += gdesklets-cornerxmms SUBDIR += gdesklets-xmms diff --git a/audio/gbsplay/Makefile b/audio/gbsplay/Makefile new file mode 100644 index 000000000000..387369efb812 --- /dev/null +++ b/audio/gbsplay/Makefile @@ -0,0 +1,93 @@ +# New ports collection makefile for: gbsplay +# Date created: 25 Jun 2005 +# Whom: Emanuel Haupt <ehaupt@critical.ch> +# +# $FreeBSD$ +# + +PORTNAME= gbsplay +PORTVERSION= 0.0.7 +CATEGORIES= audio +MASTER_SITES= http://download.berlios.de/gbsplay/ +PKGNAMEPREFIX?= + +MAINTAINER= ehaupt@critical.ch +COMMENT?= Emulates the sound hardware of the Nintendo Game Boy(TM) + +USE_REINPLACE= yes +HAS_CONFIGURE= yes +USE_GMAKE= yes +USE_GETTEXT= yes + +CONFIGURE_ARGS+= --prefix=${PREFIX} + +.if ${PKGNAMEPREFIX} == "" + +CONFIGURE_ARGS+= --without-xmmsplugin + +MAN1= gbsplay.1 gbsinfo.1 +MAN5= gbsplayrc.5 +PORTDOCS= COPYRIGHT HISTORY README + +OPTIONS= NAS "NAS sound output" on + +.endif + +.include <bsd.port.pre.mk> + +.if ${PKGNAMEPREFIX} == "" + +.if defined(WITH_NAS) +LIB_DEPENDS+= audio.2:${PORTSDIR}/audio/nas +.else +CONFIGURE_ARGS+= --disable-nas +.endif + +.endif + +post-patch: gbsplay-post-patch + @${REINPLACE_CMD} -e \ + 's|/usr/local/include|${LOCALBASE}/include|; \ + s|/usr/local/lib|${LOCALBASE}/lib|; \ + s|/usr/X11R6/include|${X11BASE}/include|; \ + s|/usr/X11R6/lib|${X11BASE}/lib|; \ + s|-Os||; s|-pipe||; s|-fomit-frame-pointer||; \ + s|-march=$$ARCH||' ${WRKSRC}/configure + +.if ${PKGNAMEPREFIX} == "" + +gbsplay-post-patch: + @${REINPLACE_CMD} -e 's|/\(etc/gbsplayrc\)|${PREFIX}/\1|' \ + ${WRKSRC}/gbsplay.c \ + ${WRKSRC}/gbsplay.in.1 \ + ${WRKSRC}/gbsplayrc.in.5 + +do-install: +.for f in ${PORTNAME} gbsinfo + ${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/bin +.endfor +.for f in ${MAN1} ${MAN5} + ${INSTALL_MAN} ${WRKSRC}/${f} ${MAN${f:E}PREFIX}/man/man${f:E} +.endfor + ${MKDIR} ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/examples/nightmode.gbs ${EXAMPLESDIR} + + ${INSTALL_DATA} ${WRKSRC}/examples/gbsplayrc_sample ${PREFIX}/etc/gbsplayrc.default +.if !exists(${PREFIX}/etc/gbsplayrc) + ${INSTALL_DATA} ${WRKSRC}/examples/gbsplayrc_sample ${PREFIX}/etc/gbsplayrc +.endif + +.for l in de en + ${INSTALL_DATA} ${WRKSRC}/po/${l}.mo ${PREFIX}/share/locale/${l}/LC_MESSAGES/gbsplay.mo +.endfor + +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} +.for f in ${PORTDOCS} + ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} +.endfor +.endif + +.endif + +.include <bsd.port.post.mk> diff --git a/audio/gbsplay/distinfo b/audio/gbsplay/distinfo new file mode 100644 index 000000000000..42fbdd5fec15 --- /dev/null +++ b/audio/gbsplay/distinfo @@ -0,0 +1,2 @@ +MD5 (gbsplay-0.0.7.tar.gz) = bdd9143422c52d00a8aeeda171621cec +SIZE (gbsplay-0.0.7.tar.gz) = 50466 diff --git a/audio/gbsplay/pkg-descr b/audio/gbsplay/pkg-descr new file mode 100644 index 000000000000..332ee01c2ac8 --- /dev/null +++ b/audio/gbsplay/pkg-descr @@ -0,0 +1,8 @@ +gbsplay emulates the sound hardware of the Nintendo Game Boy(TM). It is able +to play the sounds from a Game Boy(TM) module dump (.GBS format) through +/dev/dsp, standard output or NAS. + +WWW: http://gbsplay.berlios.de/ + +- ehaupt +ehaupt@critical.ch diff --git a/audio/gbsplay/pkg-plist b/audio/gbsplay/pkg-plist new file mode 100644 index 000000000000..de029cbef667 --- /dev/null +++ b/audio/gbsplay/pkg-plist @@ -0,0 +1,9 @@ +bin/gbsplay +bin/gbsinfo +@unexec if cmp -s %D/etc/gbsplayrc %D/etc/gbsplayrc.default; then rm -f %D/etc/gbsplayrc; fi +etc/gbsplayrc.default +@exec [ -f %B/gbsplayrc ] || cp %B/%f %B/gbsplayrc +share/locale/de/LC_MESSAGES/gbsplay.mo +share/locale/en/LC_MESSAGES/gbsplay.mo +%%EXAMPLESDIR%%/nightmode.gbs +@dirrm %%EXAMPLESDIR%% |