# $FreeBSD: head/audio/vgmplay/Makefile 560739 2021-01-07 21:51:08Z tagattie $ PORTNAME= vgmplay PORTVERSION= 0.40.9 PORTREVISION= 2 CATEGORIES= audio MASTER_SITES= https://github.com/vgmrips/${PORTNAME}/releases/download/${PORTVERSION}/ DISTNAME= ${PORTNAME:S/vgmp/VGMP/}_${PORTVERSION:S/.//:S/./-/}_src MAINTAINER= tagattie@FreeBSD.org COMMENT= Command-line player for VGM (video game music) files LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/licenses/GPL.txt USES= 7z compiler dos2unix gmake NO_WRKSUBDIR= yes OPTIONS_SINGLE= AUDIO OPTIONS_SINGLE_AUDIO= OSS LIBAO OPTIONS_DEFAULT= OSS OSS_DESC= Use OSS (/dev/dsp) LIBAO_DESC= Use libao OSS_MAKE_ENV+= USE_LIBAO=0 LIBAO_MAKE_ENV+= USE_LIBAO=1 LIBAO_LIB_DEPENDS= libao.so:audio/libao LIBAO_USES= localbase:ldflags MAKE_ENV+= PREFIX=${LOCALBASE} ${MAKE_ENV_${ARCH}} MAKE_ENV_powerpc= BYTE_ORDER=2 MAKE_ENV_powerpc64= BYTE_ORDER=2 MAKE_ENV_powerpc64le= BYTE_ORDER=1 MAKE_ENV_powerpcspe= BYTE_ORDER=2 PLIST_FILES= bin/vgmplay bin/vgm2pcm bin/vgm2wav share/man/man1/vgmplay.1.gz ${EXAMPLESDIR}/vgmplay.ini .include post-patch: ${REINPLACE_CMD} -e 's/@//' ${WRKSRC}/Makefile .if ${CHOSEN_COMPILER_TYPE} != clang ${REINPLACE_CMD} -e 's/-Wno-unused-but-set-variable//' ${WRKSRC}/Makefile .endif ${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|; s|/usr/share/vgmplay|${EXAMPLESDIR}|; s|VGMPlay|vgmplay|g;' ${WRKSRC}/vgmplay.1 do-install: ${INSTALL_PROGRAM} ${WRKSRC}/vgmplay ${STAGEDIR}${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/vgm2pcm ${STAGEDIR}${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/vgm2wav ${STAGEDIR}${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/vgmplay.1 ${STAGEDIR}${MANPREFIX}/share/man/man1 ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/VGMPlay.ini ${STAGEDIR}${EXAMPLESDIR}/vgmplay.ini .include