2017-08-17 19:42:59 +00:00
|
|
|
PORTNAME= stk
|
2023-08-11 04:22:11 +00:00
|
|
|
DISTVERSION= 5.0.1
|
2017-08-17 19:42:59 +00:00
|
|
|
CATEGORIES= audio
|
|
|
|
MASTER_SITES= http://ccrma.stanford.edu/software/stk/release/
|
|
|
|
|
2018-02-25 00:40:37 +00:00
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
2017-08-17 19:42:59 +00:00
|
|
|
COMMENT= Synthesis ToolKit in C++
|
2022-09-07 21:06:12 +00:00
|
|
|
WWW= https://ccrma.stanford.edu/software/stk
|
2017-08-17 19:42:59 +00:00
|
|
|
|
|
|
|
LICENSE= MIT
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
|
2023-08-09 15:59:59 +00:00
|
|
|
USES= compiler:c++11-lang dos2unix gmake localbase pkgconfig
|
2017-08-17 19:42:59 +00:00
|
|
|
USE_LDCONFIG= yes
|
2021-11-18 21:04:56 +00:00
|
|
|
|
|
|
|
DOS2UNIX_GLOB= *.cpp *.h
|
|
|
|
|
2017-08-17 19:42:59 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2021-11-18 21:04:56 +00:00
|
|
|
|
2017-09-10 10:24:50 +00:00
|
|
|
MAKE_ARGS= RAWWAVES=${DATADIR}/rawwaves/
|
2017-08-17 19:42:59 +00:00
|
|
|
|
2021-11-18 21:04:56 +00:00
|
|
|
LDFLAGS+= -pthread
|
|
|
|
|
2023-08-09 15:59:59 +00:00
|
|
|
OPTIONS_RADIO= BACKEND
|
|
|
|
OPTIONS_RADIO_BACKEND= JACK OSS
|
2023-08-10 14:42:12 +00:00
|
|
|
OPTIONS_DEFAULT= JACK
|
2023-08-09 15:59:59 +00:00
|
|
|
|
|
|
|
BACKEND_DESC= Audio Backend
|
|
|
|
|
|
|
|
JACK_CONFIGURE_WITH= jack
|
|
|
|
JACK_LIB_DEPENDS= libjack.so:audio/jack
|
|
|
|
|
|
|
|
OSS_CONFIGURE_WITH= oss
|
2023-08-10 14:42:12 +00:00
|
|
|
# OSS option appears to make real-time functionality in STK broken
|
|
|
|
# (example https://www.music.mcgill.ca/~gary/618/week2/node16.html),
|
|
|
|
# also see https://github.com/thestk/stk/issues/141#issuecomment-1673488078
|
2023-08-09 15:59:59 +00:00
|
|
|
|
2017-08-17 19:42:59 +00:00
|
|
|
post-install:
|
2017-09-10 10:24:50 +00:00
|
|
|
@cd ${WRKSRC} && ${COPYTREE_SHARE} rawwaves ${STAGEDIR}${DATADIR}
|
|
|
|
@${RM} ${STAGEDIR}${DATADIR}/rawwaves/._* ${STAGEDIR}${DATADIR}/rawwaves/*.c
|
2023-08-11 04:22:11 +00:00
|
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libstk-5.0.0.so
|
2017-08-17 19:42:59 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|