kodi: allow mysql to be used
authorRyan Coe <bluemrp9@gmail.com>
Wed, 4 Mar 2015 03:32:05 +0000 (19:32 -0800)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 4 Mar 2015 18:44:30 +0000 (19:44 +0100)
Signed-off-by: Ryan Coe <bluemrp9@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/kodi/kodi.mk

index 01c7e8051aefb10bb7ab05805ed72da212dfd450..0a6fe7cfcefa45ca3e37c2ad320a1a6a5f4d5718 100644 (file)
@@ -37,7 +37,6 @@ KODI_CONF_OPTS +=  \
        --disable-dvdcss \
        --disable-hal \
        --disable-joystick \
-       --disable-mysql \
        --disable-openmax \
        --disable-projectm \
        --disable-pulse \
@@ -46,6 +45,14 @@ KODI_CONF_OPTS +=  \
        --disable-vtbdecoder \
        --enable-optimizations
 
+ifeq ($(BR2_PACKAGE_MYSQL),y)
+KODI_CONF_OPTS += --enable-mysql
+KODI_CONF_ENV += ac_cv_path_MYSQL_CONFIG="$(STAGING_DIR)/usr/bin/mysql_config"
+KODI_DEPENDENCIES += mysql
+else
+KODI_CONF_OPTS += --disable-mysql
+endif
+
 ifeq ($(BR2_PACKAGE_RPI_USERLAND),y)
 KODI_DEPENDENCIES += rpi-userland
 KODI_CONF_OPTS += --with-platform=raspberry-pi --enable-player=omxplayer