mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
846f70f92d
nyqsrc/sndseq.c:81: error: 'for' loop initial declaration used outside C99 mode
46 lines
1.4 KiB
Makefile
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>
|