audio/chuck: new port
This commit is contained in:
40
audio/chuck/Makefile
Normal file
40
audio/chuck/Makefile
Normal file
@@ -0,0 +1,40 @@
|
||||
COMMENT = strongly-timed music programming language
|
||||
|
||||
DIST_TUPLE = github ccrma chuck chuck-1.5.5.7 .
|
||||
PKGNAME = chuck-1.5.5.7
|
||||
CATEGORIES = audio
|
||||
REVISION = 0
|
||||
|
||||
HOMEPAGE = https://chuck.stanford.edu/
|
||||
|
||||
# Dual-licensed: MIT or GPLv2+
|
||||
PERMIT_PACKAGE = Yes
|
||||
|
||||
WANTLIB += ${COMPILER_LIBCXX} c m pthread sndfile sndio
|
||||
|
||||
COMPILER = base-clang
|
||||
|
||||
LIB_DEPENDS = audio/libsndfile
|
||||
|
||||
BUILD_DEPENDS = devel/bison
|
||||
|
||||
USE_GMAKE = Yes
|
||||
|
||||
WRKDIST = ${WRKDIR}/chuck-chuck-1.5.5.7
|
||||
WRKSRC = ${WRKDIST}/src
|
||||
|
||||
MAKE_FILE = makefile
|
||||
ALL_TARGET = openbsd-sndio
|
||||
MAKE_FLAGS += CC="${CC}" CXX="${CXX}" YACC=${LOCALBASE}/bin/bison \
|
||||
CFLAGS="${CFLAGS} -I${WRKSRC} -I${WRKSRC}/core -I${WRKSRC}/core/lo -I${LOCALBASE}/include -D__OPENBSD_SNDIO__ -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__ -D__DISABLE_HID__" \
|
||||
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib -lsndio -lstdc++ -lm -lsndfile -lpthread"
|
||||
|
||||
NO_TEST = Yes
|
||||
|
||||
pre-build:
|
||||
${INSTALL} -m 644 ${FILESDIR}/makefile.sndio ${WRKSRC}/core/makefile.x/makefile.sndio
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/chuck ${PREFIX}/bin/chuck
|
||||
|
||||
.include <bsd.port.mk>
|
||||
Reference in New Issue
Block a user