package/opengl/libopenvg: switch to package-defined providers
authorYann E. MORIN <yann.morin.1998@free.fr>
Fri, 20 Dec 2013 22:27:55 +0000 (23:27 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 25 Dec 2013 17:21:06 +0000 (18:21 +0100)
For the underlying reasons, see previous patch, titled:
    package/opengl/libegl: switch to package-defined providers

Reported-by: David Corvoysier <david.corvoysier@orange.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Arnout Vandecappelle <arnout@mind.be>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Peter Korsgaard <jacmet@uclibc.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/opengl/Config.in
package/opengl/libopenvg/Config.in [new file with mode: 0644]
package/opengl/libopenvg/libopenvg.mk
package/rpi-userland/Config.in

index 3960082747aab4fb92afe69f6a5d6df6999911f2..109cde8addb5788b9301382279010a2da502ef81 100644 (file)
@@ -1,8 +1,6 @@
 source "package/opengl/libegl/Config.in"
 source "package/opengl/libgles/Config.in"
-
-config BR2_PACKAGE_HAS_OPENVG
-       bool
+source "package/opengl/libopenvg/Config.in"
 
 config BR2_PACKAGE_HAS_OPENMAX
        bool
diff --git a/package/opengl/libopenvg/Config.in b/package/opengl/libopenvg/Config.in
new file mode 100644 (file)
index 0000000..9d31525
--- /dev/null
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_HAS_OPENVG
+       bool
+
+config BR2_PACKAGE_PROVIDES_OPENVG
+       depends on BR2_PACKAGE_HAS_OPENVG
+       string
index 3296f639156ea2c79afd1c36eb0cbb7d64d04cd4..ffd9d6861ecd9b084a133230c56a50387a20c6e2 100644 (file)
@@ -5,10 +5,7 @@
 ################################################################################
 
 LIBOPENVG_SOURCE =
-
-ifeq ($(BR2_PACKAGE_RPI_USERLAND),y)
-LIBOPENVG_DEPENDENCIES += rpi-userland
-endif
+LIBOPENVG_DEPENDENCIES = $(call qstrip,$(BR2_PACKAGE_PROVIDES_OPENVG))
 
 ifeq ($(LIBOPENVG_DEPENDENCIES),)
 define LIBOPENVG_CONFIGURE_CMDS
index b8860d6c9da2c7b6d8ae466f66be7b219db0953c..271c71d6d50e691dabd5646080195e883dd89f16 100644 (file)
@@ -25,6 +25,9 @@ config BR2_PACKAGE_PROVIDES_OPENGL_EGL
 config BR2_PACKAGE_PROVIDES_OPENGL_ES
        default "rpi-userland"
 
+config BR2_PACKAGE_PROVIDES_OPENVG
+       default "rpi-userland"
+
 endif
 
 comment "rpi-userland needs a toolchain w/ C++, largefile, threads"