1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/audio/nyquist/Makefile
Mark Linimon 846f70f92d audio/nyquist: add USE_CSTD=c99 to fix build on GCC-based systems:
nyqsrc/sndseq.c:81: error: 'for' loop initial declaration used outside C99 mode
2021-04-19 05:30:36 -05:00

46 lines
1.4 KiB
Makefile

PORTNAME= nyquist
DISTVERSION= 3.16
CATEGORIES= audio java
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${DISTVERSION}/
DISTNAME= nyqsrc${DISTVERSION:S/.//}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Language for sound synthesis and music composition (sound is broken) # likely caused by outdated bundled PortAudio, reported to upstream Apr 18, 2021
LICENSE= BSD3CLAUSE
USES= cmake zip
USE_CSTD= c99
WRKSRC= ${WRKDIR}/${PORTNAME}
CFLAGS+= -Dulong=uint32_t -DXL_BIG_ENDIAN -DHAVE_SYS_SOUNDCARD_H
USE_JAVA= yes
post-patch:
@${REINPLACE_CMD} -e 's|nyquistDir = prefs.get("nyquist-dir", "");|nyquistDir = "${DATADIR}";|' ${WRKSRC}/jnyqide/MainFrame.java
do-install:
# executable
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/ny ${STAGEDIR}${PREFIX}/bin
# runtime
${MKDIR} ${STAGEDIR}${DATADIR}
cd ${WRKSRC} && \
${COPYTREE_SHARE} runtime ${STAGEDIR}${DATADIR} && \
${COPYTREE_SHARE} lib ${STAGEDIR}${DATADIR} && \
${COPYTREE_SHARE} doc ${STAGEDIR}${DATADIR} && \
${COPYTREE_SHARE} demos ${STAGEDIR}${DATADIR}
# Java IDE
${INSTALL_DATA} ${WRKSRC}/jnyqide/jNyqIDE.jar ${STAGEDIR}${JAVAJARDIR}
@(echo "#!/bin/sh"; \
echo ""; \
echo "${JAVA} -jar ${JAVAJARDIR}/jNyqIDE.jar \""$$"@\"" \
) > ${STAGEDIR}${PREFIX}/bin/jny
@${CHMOD} +x ${STAGEDIR}${PREFIX}/bin/jny
# NyquistWords.txt
${MKDIR} ${STAGEDIR}${JAVAJARDIR}/jnyqide
${INSTALL_DATA} ${WRKSRC}/jnyqide/NyquistWords.txt ${STAGEDIR}${JAVAJARDIR}/jnyqide
.include <bsd.port.mk>