2012-11-03 19:01:22 +01:00
|
|
|
# Created by: Emanuel Haupt <ehaupt@critical.ch>
|
2005-06-28 20:11:44 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= gbsplay
|
2006-02-10 14:55:05 +01:00
|
|
|
PORTVERSION= 0.0.8
|
2014-05-04 20:48:54 +02:00
|
|
|
PORTREVISION= 7
|
2005-06-28 20:11:44 +02:00
|
|
|
CATEGORIES= audio
|
2015-01-06 10:36:21 +01:00
|
|
|
MASTER_SITES= LOCAL/ehaupt
|
2005-06-28 20:11:44 +02:00
|
|
|
PKGNAMEPREFIX?=
|
|
|
|
|
2005-10-06 13:57:11 +02:00
|
|
|
MAINTAINER= ehaupt@FreeBSD.org
|
2005-06-28 20:11:44 +02:00
|
|
|
COMMENT?= Emulates the sound hardware of the Nintendo Game Boy(TM)
|
|
|
|
|
|
|
|
HAS_CONFIGURE= yes
|
2013-07-08 20:42:15 +02:00
|
|
|
USES= gettext gmake
|
2011-06-21 15:39:16 +02:00
|
|
|
USE_CSTD= gnu89
|
2005-06-28 20:11:44 +02:00
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --prefix=${PREFIX}
|
|
|
|
|
|
|
|
.if ${PKGNAMEPREFIX} == ""
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --without-xmmsplugin
|
|
|
|
|
2014-01-21 11:50:53 +01:00
|
|
|
MANPAGE1= gbsplay.1 gbsinfo.1
|
|
|
|
MANPAGE5= gbsplayrc.5
|
2005-06-28 20:11:44 +02:00
|
|
|
PORTDOCS= COPYRIGHT HISTORY README
|
|
|
|
|
2013-01-15 14:40:28 +01:00
|
|
|
OPTIONS_DEFINE= NAS DOCS
|
2005-06-28 20:11:44 +02:00
|
|
|
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PKGNAMEPREFIX} == ""
|
|
|
|
|
2015-08-19 15:29:59 +02:00
|
|
|
NAS_LIB_DEPENDS= libaudio.so:${PORTSDIR}/audio/nas
|
|
|
|
NAS_CONFIGURE_ENABLE= nas
|
2005-06-28 20:11:44 +02:00
|
|
|
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch: gbsplay-post-patch
|
2006-02-13 15:15:39 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|^\(default.*\)test|\1|' ${WRKSRC}/${MAKEFILE}
|
2005-06-28 20:11:44 +02:00
|
|
|
@${REINPLACE_CMD} -e \
|
2011-06-21 15:39:16 +02:00
|
|
|
'/^need_include\ /d; \
|
|
|
|
468s|char argc|int argc|; \
|
|
|
|
s|/usr/local/include|${LOCALBASE}/include|; \
|
2005-06-28 20:11:44 +02:00
|
|
|
s|/usr/local/lib|${LOCALBASE}/lib|; \
|
2007-06-02 17:44:10 +02:00
|
|
|
s|/usr/X11R6/include||; \
|
|
|
|
s|/usr/X11R6/lib||; \
|
|
|
|
s|/usr/X11/lib|${LOCALBASE}/lib|; \
|
|
|
|
s|/usr/lib/X11|${LOCALBASE}/lib/X11|; \
|
2005-06-28 20:11:44 +02:00
|
|
|
s|-Os||; s|-pipe||; s|-fomit-frame-pointer||; \
|
2011-06-21 15:39:16 +02:00
|
|
|
s|-march=$$ARCH||' \
|
|
|
|
${WRKSRC}/configure
|
2005-06-28 20:11:44 +02:00
|
|
|
|
|
|
|
.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
|
2013-11-13 12:27:19 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/bin
|
2005-06-28 20:11:44 +02:00
|
|
|
.endfor
|
2013-11-13 12:27:19 +01:00
|
|
|
|
2014-01-21 11:50:53 +01:00
|
|
|
.for f in ${MANPAGE1} ${MANPAGE5}
|
2013-11-13 12:27:19 +01:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/${f} ${STAGEDIR}${MAN${f:E}PREFIX}/man/man${f:E}
|
2005-06-28 20:11:44 +02:00
|
|
|
.endfor
|
|
|
|
|
2014-03-18 15:26:57 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
2013-11-13 12:27:19 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/nightmode.gbs \
|
|
|
|
${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/gbsplayrc_sample \
|
2014-04-16 16:48:09 +02:00
|
|
|
${STAGEDIR}${PREFIX}/etc/gbsplayrc.sample
|
2013-11-13 12:27:19 +01:00
|
|
|
.if !exists(${STAGEDIR}${PREFIX}/etc/gbsplayrc)
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/gbsplayrc_sample \
|
|
|
|
${STAGEDIR}${PREFIX}/etc/gbsplayrc
|
2005-06-28 20:11:44 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.for l in de en
|
2013-11-13 12:27:19 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/po/${l}.mo \
|
|
|
|
${STAGEDIR}${PREFIX}/share/locale/${l}/LC_MESSAGES/gbsplay.mo
|
2005-06-28 20:11:44 +02:00
|
|
|
.endfor
|
2014-03-18 15:26:57 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2005-06-28 20:11:44 +02:00
|
|
|
.for f in ${PORTDOCS}
|
2013-11-13 12:27:19 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
|
2005-06-28 20:11:44 +02:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2012-09-07 20:37:52 +02:00
|
|
|
.include <bsd.port.mk>
|