Instead of passing multiple CMake variable, simply depend on
pkg-config: it is used by the FindVorbis and FindOgg modules in
priority over the hand-defined variables.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
KODI_AUDIOENCODER_VORBIS_SITE = $(call github,xbmc,audioencoder.vorbis,$(KODI_AUDIOENCODER_VORBIS_VERSION))
KODI_AUDIOENCODER_VORBIS_LICENSE = GPLv2+
KODI_AUDIOENCODER_VORBIS_LICENSE_FILES = src/EncoderVorbis.cpp
-KODI_AUDIOENCODER_VORBIS_DEPENDENCIES = kodi libogg libvorbis
-KODI_AUDIOENCODER_VORBIS_CONF_OPTS += \
- -DOGG_INCLUDE_DIRS=$(STAGING_DIR)/usr/include \
- -DVORBIS_INCLUDE_DIRS=$(STAGING_DIR)/usr/include \
- -DVORBISENC_INCLUDE_DIRS=$(STAGING_DIR)/usr/include
+KODI_AUDIOENCODER_VORBIS_DEPENDENCIES = kodi libogg libvorbis host-pkgconf
$(eval $(cmake-package))