kodi-audioencoder-flac: use pkg-config
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 29 Jul 2015 21:30:35 +0000 (23:30 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 30 Jul 2015 07:29:24 +0000 (09:29 +0200)
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>
package/kodi-audioencoder-flac/kodi-audioencoder-flac.mk

index f83050b31ec786fb2a6d316b0734873d5f506785..f386954c01c236ecb3f199ac79dd56e49991ac9e 100644 (file)
@@ -8,9 +8,6 @@ KODI_AUDIOENCODER_FLAC_VERSION = a5e2d1262de3b2de567cf0a8207636ebaacb8775
 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))