diff options
author | ryoon <ryoon@pkgsrc.org> | 2022-02-04 16:47:52 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2022-02-04 16:47:52 +0000 |
commit | 325b8aa526792193c8399d32609b48903186f695 (patch) | |
tree | d5d9b366cd2491e3b2130b0714246355c87e77ac | |
parent | 7d25824cc1fd1fd84d39e5e09d88e195770120b0 (diff) | |
download | pkgsrc-325b8aa526792193c8399d32609b48903186f695.tar.gz |
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.
-rw-r--r-- | graphics/blender/Makefile | 5 | ||||
-rw-r--r-- | graphics/blender/options.mk | 12 |
2 files changed, 13 insertions, 4 deletions
diff --git a/graphics/blender/Makefile b/graphics/blender/Makefile index 048da3c377e..d5e1a022fcc 100644 --- a/graphics/blender/Makefile +++ b/graphics/blender/Makefile @@ -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 @@ pre-configure: .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 --git a/graphics/blender/options.mk b/graphics/blender/options.mk index 61018f36468..3977a5f870e 100644 --- a/graphics/blender/options.mk +++ b/graphics/blender/options.mk @@ -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 @@ CMAKE_ARGS+= -DWITH_JACK_DYNLOAD=OFF .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 |