svn commit: r567359 - in head/audio/faust: . files

Yuri Victorovich yuri at FreeBSD.org
Fri Mar 5 04:00:11 UTC 2021


Author: yuri
Date: Fri Mar  5 04:00:10 2021
New Revision: 567359
URL: https://svnweb.freebsd.org/changeset/ports/567359

Log:
  audio/faust: Fix faust backends so that they are properly added to the compiler

Added:
  head/audio/faust/files/backends.cmake   (contents, props changed)
Modified:
  head/audio/faust/Makefile

Modified: head/audio/faust/Makefile
==============================================================================
--- head/audio/faust/Makefile	Fri Mar  5 03:35:44 2021	(r567358)
+++ head/audio/faust/Makefile	Fri Mar  5 04:00:10 2021	(r567359)
@@ -3,7 +3,7 @@
 
 PORTNAME=	faust
 DISTVERSION=	2.30.5
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	audio devel
 
 MAINTAINER=	yuri at FreeBSD.org
@@ -28,11 +28,8 @@ SHEBANG_FILES=	tools/faust2appls/* tools/benchmark/fau
 LLVM_VERSION=	11 # earlier versions lack dump() function(s) that cause unresolved symbols in libfaust.so
 
 CMAKE_SOURCE_PATH=	${WRKSRC}/build
-CMAKE_ON=	INCLUDE_DYNAMIC # only installs headers and not libs by default: https://github.com/grame-cncm/faust/issues/553
-CMAKE_ON+=	LLVM_BUILD CPP_BUILD OCPP_BUILD # enable backends
-CMAKE_ARGS=	-DLLVM_BACKEND=DYNAMIC -DLLVM_CONFIG=${LOCALBASE}/bin/llvm-config${LLVM_VERSION} \
-		-DC_BACKEND=DYNAMIC \
-		-DCPP_BACKEND=DYNAMIC
+CMAKE_ON=	INCLUDE_DYNAMIC # only installs headers and not libs without INCLUDE_DYNAMIC or INCLUDE_STATIC: https://github.com/grame-cncm/faust/issues/553
+CMAKE_ARGS=	-C ${FILESDIR}/backends.cmake -DLLVM_CONFIG=${LOCALBASE}/bin/llvm-config${LLVM_VERSION} \
 
 CXXFLAGS+=	-I${WRKSRC}/compiler/generator/cpp # fatal error: 'cpp_code_container.hh' file not found WHEN INCLUDE_STATIC=TRUE
 CXXFLAGS+=	`llvm-config${LLVM_VERSION} --cflags` -DLLVM_${LLVM_VERSION}0 # for the llvm backend
@@ -51,6 +48,10 @@ HTTPD_CMAKE_BOOL=	INCLUDE_HTTP
 HTTPD_LIB_LIB_DEPENDS=	libmicrohttpd.so:www/libmicrohttpd
 
 PORTEXAMPLES=		*
+
+xpre-configure:
+	@${MKDIR} ${CONFIGURE_WRKSRC}
+	@cd ${CONFIGURE_WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} ${CMAKE_SOURCE_PATH}
 
 post-install:
 	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/faust

Added: head/audio/faust/files/backends.cmake
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/faust/files/backends.cmake	Fri Mar  5 04:00:10 2021	(r567359)
@@ -0,0 +1,11 @@
+# backends.cmake is recommended by the upstream: https://github.com/grame-cncm/faust/wiki/backends
+
+# Below COMPILER,STATIC,DYNAMIC keywords can be enabled.
+# However, we disabled static libs in Makefile, so STATIC isn't used.
+
+set (C_BACKEND      COMPILER DYNAMIC  CACHE STRING  "Include C backend"           FORCE)
+set (CPP_BACKEND    COMPILER DYNAMIC  CACHE STRING  "Include CPP backend"         FORCE)
+set (LLVM_BACKEND   COMPILER DYNAMIC  CACHE STRING  "Include LLVM backend"        FORCE)
+#set (ASMJS_BACKEND  ASMJS                    CACHE STRING  "Include ASMJS backend"       FORCE)
+#set (INTERP_BACKEND OFF                      CACHE STRING  "Include INTERPRETER backend" FORCE)
+


More information about the svn-ports-head mailing list