浏览代码

package/kvazaar: add cryptopp support

host-pkgconf is only needed to find cryptopp when it is explicitly
enabled, but a check for pkg-config is still done either way.

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
[yann.morin.1998@free.fr: keep host-pkgconf as unconditional dep]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Fabrice Fontaine 3 年之前
父节点
当前提交
0a09bd7088
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 7 1
      package/kvazaar/kvazaar.mk

+ 7 - 1
package/kvazaar/kvazaar.mk

@@ -11,6 +11,12 @@ KVAZAAR_LICENSE = BSD-3-Clause, ISC (greatest, x264asm)
 KVAZAAR_LICENSE_FILES = LICENSE LICENSE.greatest LICENSE.x264asm
 KVAZAAR_LICENSE_FILES = LICENSE LICENSE.greatest LICENSE.x264asm
 KVAZAAR_INSTALL_STAGING = YES
 KVAZAAR_INSTALL_STAGING = YES
 KVAZAAR_DEPENDENCIES = host-pkgconf
 KVAZAAR_DEPENDENCIES = host-pkgconf
-KVAZAAR_CONF_OPTS = --without-cryptopp
+
+ifeq ($(BR2_PACKAGE_CRYPTOPP),y)
+KVAZAAR_DEPENDENCIES += cryptopp
+KVAZAAR_CONF_OPTS += --with-cryptopp
+else
+KVAZAAR_CONF_OPTS += --without-cryptopp
+endif
 
 
 $(eval $(autotools-package))
 $(eval $(autotools-package))