libshout: Make separate pkg_config files for libs. Fixes ices build
authorTed Hess <thess@kitschensync.net>
Sat, 5 Dec 2015 21:39:31 +0000 (16:39 -0500)
committerTed Hess <thess@kitschensync.net>
Sat, 5 Dec 2015 21:39:31 +0000 (16:39 -0500)
Signed-off-by: Ted Hess <thess@kitschensync.net>
libs/libshout/Makefile

index 4559ddf89948e874d32c130d972eff911ab31ef5..aeff8531d1a2d9c1614677663d271e25efca5b1c 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libshout
 PKG_VERSION:=2.3.1
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
@@ -70,14 +70,16 @@ CONFIGURE_VARS += \
 
 TARGET_CFLAGS += $(FPIC) -Wl,-rpath-link="$(STAGING_DIR)/usr/lib"
 
+PACKAGE_CONFIG_FILE=shout$(if $(findstring $(BUILD_VARIANT),full),-full).pc
+
 define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/include
        $(CP) $(PKG_INSTALL_DIR)/usr/include/shout $(1)/usr/include/
        $(INSTALL_DIR) $(1)/usr/lib
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libshout.{a,so*} $(1)/usr/lib/
        $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
-       $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/shout.pc $(1)/usr/lib/pkgconfig/
-       $(SED) 's| -I/usr/include||' $(1)/usr/lib/pkgconfig/shout.pc
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/shout.pc $(1)/usr/lib/pkgconfig/$(PACKAGE_CONFIG_FILE)
+       $(SED) 's| -I/usr/include||' $(1)/usr/lib/pkgconfig/$(PACKAGE_CONFIG_FILE)
 endef
 
 define Package/libshout/install