pkgsrc-WIP-changes archive

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

efl: add option to build with clang



Module Name:	pkgsrc-wip
Committed By:	kikadf <kikadf.01%gmail.com@localhost>
Pushed By:	kikadf
Date:		Fri Jan 15 14:41:28 2021 +0100
Changeset:	ada857773700eada4bb3790432082a0fc5e242e6

Modified Files:
	efl/buildlink3.mk
	efl/options.mk

Log Message:
efl: add option to build with clang

Fix buildlink3.mk: PKG_OPTIONS -> PKG_BUILD_OPTIONS

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=ada857773700eada4bb3790432082a0fc5e242e6

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 efl/buildlink3.mk |  8 ++++++--
 efl/options.mk    | 10 ++++++++--
 2 files changed, 14 insertions(+), 4 deletions(-)

diffs:
diff --git a/efl/buildlink3.mk b/efl/buildlink3.mk
index 3638c52b65..88c26395e9 100644
--- a/efl/buildlink3.mk
+++ b/efl/buildlink3.mk
@@ -11,14 +11,18 @@ BUILDLINK_PKGSRCDIR.efl?=	../../wip/efl
 pkgbase := efl
 .include "../../mk/pkg-build-options.mk"
 
-.if !empty(PKG_OPTIONS.efl:Mg-mainloop)
+.if !empty(PKG_BUILD_OPTIONS.efl:Mg-mainloop)
 .include "../../devel/libuv/buildlink3.mk"
 .endif
 
-.if !empty(PKG_OPTIONS.efl:Mpulseaudio)
+.if !empty(PKG_BUILD_OPTIONS.efl:Mpulseaudio)
 .include "../../audio/pulseaudio/buildlink3.mk"
 .endif
 
+.if !empty(PKG_BUILD_OPTIONS.efl:Mclang)
+.include "../../parallel/openmp/buildlink3.mk"
+.endif
+
 .if ${X11_TYPE} == "modular"
 .include "../../graphics/MesaLib/buildlink3.mk"
 .include "../../x11/libXcursor/buildlink3.mk"
diff --git a/efl/options.mk b/efl/options.mk
index da4eaaeeeb..bcbbfe6233 100644
--- a/efl/options.mk
+++ b/efl/options.mk
@@ -1,9 +1,10 @@
 # $NetBSD$
 
 PKG_OPTIONS_VAR=		PKG_OPTIONS.efl
-PKG_SUPPORTED_OPTIONS=		debug g-mainloop gcc8 pulseaudio
-PKG_SUGGESTED_OPTIONS.NetBSD=	g-mainloop
+PKG_SUPPORTED_OPTIONS=		debug g-mainloop gcc8 pulseaudio clang
 PKG_SUGGESTED_OPTIONS=		pulseaudio
+PKG_SUGGESTED_OPTIONS.NetBSD+=	clang debug
+
 
 .include "../../mk/bsd.options.mk"
 
@@ -32,3 +33,8 @@ GCC_REQD=	8
 .else
 MESON_ARGS+=	-Dpulseaudio=false
 .endif
+
+# Use clang to build efl
+.if !empty(PKG_OPTIONS:Mclang)
+.include "../../parallel/openmp/buildlink3.mk"
+.endif


Home | Main Index | Thread Index | Old Index