glib2: add full language support hack to fix compilation
authorRosen Penev <rosenp@gmail.com>
Mon, 10 Aug 2020 23:02:26 +0000 (16:02 -0700)
committerRosen Penev <rosenp@gmail.com>
Tue, 11 Aug 2020 20:02:41 +0000 (13:02 -0700)
Otherwise, dependent packages need to all add -lintl to LDFLAGS.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
libs/glib2/Makefile

index 434a40dd95716af1cb5c05e895f43bf20045a164..7afdd5335ef42ac66cdc63f4ebfde2af259ae408 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=glib2
 PKG_VERSION:=2.65.0
-PKG_RELEASE:=4
+PKG_RELEASE:=5
 
 PKG_SOURCE:=glib-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=@GNOME/glib/2.65
@@ -24,6 +24,7 @@ PKG_BUILD_DIR:=$(BUILD_DIR)/glib-$(PKG_VERSION)
 HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/glib-$(PKG_VERSION)
 PKG_BUILD_DEPENDS:=meson/host gettext-full libiconv/host
 HOST_BUILD_DEPENDS:=meson/host gettext-full/host libiconv/host libffi/host
+PKG_CONFIG_DEPENDS:=CONFIG_BUILD_NLS
 PKG_INSTALL:=1
 
 include $(INCLUDE_DIR)/host-build.mk
@@ -111,6 +112,10 @@ define Build/InstallDev
                $(1)/usr/lib/
 
        $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
+ifneq ($(INTL_FULL),)
+       $(SED) '/^Libs:/s/$$$$/ -lintl/' \
+               $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/glib-2.0.pc
+endif
        $(INSTALL_DATA) \
                $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
                $(1)/usr/lib/pkgconfig