Instead of passing multiple CMake variable, simply depend on
pkg-config: it is used by the FindFLAC and FindOgg modules in priority
over the hand-defined variables.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
KODI_AUDIOENCODER_FLAC_SITE = $(call github,xbmc,audioencoder.flac,$(KODI_AUDIOENCODER_FLAC_VERSION))
KODI_AUDIOENCODER_FLAC_LICENSE = GPLv2+
KODI_AUDIOENCODER_FLAC_LICENSE_FILES = src/EncoderFlac.cpp
-KODI_AUDIOENCODER_FLAC_DEPENDENCIES = flac kodi libogg
-KODI_AUDIOENCODER_FLAC_CONF_OPTS += \
- -DFLAC_INCLUDE_DIRS=$(STAGING_DIR)/usr/include \
- -DOGG_INCLUDE_DIRS=$(STAGING_DIR)/usr/include
+KODI_AUDIOENCODER_FLAC_DEPENDENCIES = flac kodi libogg host-pkgconf
$(eval $(cmake-package))