pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/blender blender: Add pulseaudio option and de...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/eaa85eba97c1
branches:  trunk
changeset: 373019:eaa85eba97c1
user:      ryoon <ryoon%pkgsrc.org@localhost>
date:      Fri Feb 04 16:47:52 2022 +0000

description:
blender: Add pulseaudio option and depend on graphics/potrace

If audio/pulseaudio is already installed, the build fails by pulse/pulseaudio.h not found error.
The pulseaudio option is disabled by default.

Bump PKGREVISION by dependency change.

diffstat:

 graphics/blender/Makefile   |   5 +++--
 graphics/blender/options.mk |  12 ++++++++++--
 2 files changed, 13 insertions(+), 4 deletions(-)

diffs (46 lines):

diff -r b17622793077 -r eaa85eba97c1 graphics/blender/Makefile
--- a/graphics/blender/Makefile Fri Feb 04 16:40:23 2022 +0000
+++ b/graphics/blender/Makefile Fri Feb 04 16:47:52 2022 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.183 2022/01/10 01:46:33 ryoon Exp $
+# $NetBSD: Makefile,v 1.184 2022/02/04 16:47:52 ryoon Exp $
 
 DISTNAME=      blender-2.93.5
-PKGREVISION=   2
+PKGREVISION=   3
 CATEGORIES=    graphics
 MASTER_SITES=  https://download.blender.org/source/
 EXTRACT_SUFX=  .tar.xz
@@ -78,6 +78,7 @@
 .include "../../graphics/opencolorio/buildlink3.mk"
 .include "../../graphics/openimageio/buildlink3.mk"
 .include "../../graphics/openjpeg/buildlink3.mk"
+.include "../../graphics/potrace/buildlink3.mk"
 .include "../../graphics/png/buildlink3.mk"
 .include "../../graphics/tiff/buildlink3.mk"
 .include "../../math/fftw/buildlink3.mk"
diff -r b17622793077 -r eaa85eba97c1 graphics/blender/options.mk
--- a/graphics/blender/options.mk       Fri Feb 04 16:40:23 2022 +0000
+++ b/graphics/blender/options.mk       Fri Feb 04 16:47:52 2022 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: options.mk,v 1.8 2019/09/18 23:40:17 nia Exp $
+# $NetBSD: options.mk,v 1.9 2022/02/04 16:47:52 ryoon Exp $
 
 PKG_OPTIONS_VAR=               PKG_OPTIONS.blender
-PKG_SUPPORTED_OPTIONS=         jack
+PKG_SUPPORTED_OPTIONS=         jack pulseaudio
 
 .include "../../mk/bsd.options.mk"
 
@@ -12,3 +12,11 @@
 .else
 CMAKE_ARGS+=   -DWITH_JACK=OFF
 .endif
+
+.if !empty(PKG_OPTIONS:Mpulseaudio)
+CMAKE_ARGS+=   -DWITH_PULSEAUDIO=ON
+CMAKE_ARGS+=   -DWITH_PULSEAUDIO_DYNLOAD=OFF
+.include "../../audio/pulseaudio/buildlink3.mk"
+.else
+CMAKE_ARGS+=   -DWITH_PULSEAUDIO=OFF
+.endif



Home | Main Index | Thread Index | Old Index