1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00
freebsd-ports/audio/gbsplay/Makefile
Tijl Coosemans 2ffbea1568 Convert multimedia/xmms to USES=libtool. Bump PORTREVISION on all
dependent ports and convert them to USES=libtool too.

audio/scrobbler:
- USES=tar:bzip2.
- Don't link with libstdc++.

audio/xmms-bonk:
- Don't link with libstdc++.

audio/xmms-flac:
- Remove unneeded dependencies.
- Remove $FreeBSD$ from patches.

audio/xmms-scrobbler:
- Use OPTIONS_SLAVE.

audio/xmms-timidity:
- USES=tar:bzip2.
- Install the library instead of the source code file.

audio/xmms-volnorm:
- Remove do-install.
2014-05-04 18:48:54 +00:00

98 lines
2.3 KiB
Makefile

# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$
PORTNAME= gbsplay
PORTVERSION= 0.0.8
PORTREVISION= 7
CATEGORIES= audio
MASTER_SITES= CRITICAL
PKGNAMEPREFIX?=
MAINTAINER= ehaupt@FreeBSD.org
COMMENT?= Emulates the sound hardware of the Nintendo Game Boy(TM)
HAS_CONFIGURE= yes
USES= gettext gmake
USE_CSTD= gnu89
CONFIGURE_ARGS+= --prefix=${PREFIX}
.if ${PKGNAMEPREFIX} == ""
CONFIGURE_ARGS+= --without-xmmsplugin
MANPAGE1= gbsplay.1 gbsinfo.1
MANPAGE5= gbsplayrc.5
PORTDOCS= COPYRIGHT HISTORY README
OPTIONS_DEFINE= NAS DOCS
.endif
.include <bsd.port.options.mk>
.if ${PKGNAMEPREFIX} == ""
.if ${PORT_OPTIONS:MNAS}
LIB_DEPENDS+= libaudio.so:${PORTSDIR}/audio/nas
.else
CONFIGURE_ARGS+= --disable-nas
.endif
.endif
post-patch: gbsplay-post-patch
@${REINPLACE_CMD} -e 's|^\(default.*\)test|\1|' ${WRKSRC}/${MAKEFILE}
@${REINPLACE_CMD} -e \
'/^need_include\ /d; \
468s|char argc|int argc|; \
s|/usr/local/include|${LOCALBASE}/include|; \
s|/usr/local/lib|${LOCALBASE}/lib|; \
s|/usr/X11R6/include||; \
s|/usr/X11R6/lib||; \
s|/usr/X11/lib|${LOCALBASE}/lib|; \
s|/usr/lib/X11|${LOCALBASE}/lib/X11|; \
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} ${STAGEDIR}${PREFIX}/bin
.endfor
.for f in ${MANPAGE1} ${MANPAGE5}
${INSTALL_MAN} ${WRKSRC}/${f} ${STAGEDIR}${MAN${f:E}PREFIX}/man/man${f:E}
.endfor
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/nightmode.gbs \
${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/gbsplayrc_sample \
${STAGEDIR}${PREFIX}/etc/gbsplayrc.sample
.if !exists(${STAGEDIR}${PREFIX}/etc/gbsplayrc)
${INSTALL_DATA} ${WRKSRC}/examples/gbsplayrc_sample \
${STAGEDIR}${PREFIX}/etc/gbsplayrc
.endif
.for l in de en
${INSTALL_DATA} ${WRKSRC}/po/${l}.mo \
${STAGEDIR}${PREFIX}/share/locale/${l}/LC_MESSAGES/gbsplay.mo
.endfor
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>