From owner-svn-ports-head@freebsd.org Fri Mar 5 04:00:11 2021 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 84BFA564C98; Fri, 5 Mar 2021 04:00:11 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DsDXW3QRlz3LXf; Fri, 5 Mar 2021 04:00:11 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4469D1982; Fri, 5 Mar 2021 04:00:11 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 12540BxI003355; Fri, 5 Mar 2021 04:00:11 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 12540Asr003353; Fri, 5 Mar 2021 04:00:10 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <202103050400.12540Asr003353@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Fri, 5 Mar 2021 04:00:10 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r567359 - in head/audio/faust: . files X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/audio/faust: . files X-SVN-Commit-Revision: 567359 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Mar 2021 04:00:11 -0000 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@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) +