tcl: Fix pkgconfig file
authorRosen Penev <redacted>
Thu, 28 Nov 2019 07:25:16 +0000 (23:25 -0800)
committerRosen Penev <redacted>
Thu, 28 Nov 2019 07:29:54 +0000 (23:29 -0800)
It's pointing to the host.

Signed-off-by: Rosen Penev <redacted>
lang/tcl/Makefile

index a4f310a42d0366c9f34f49d744e4a34f21667e6e..0dc6fd0db7e942d8fa75bb34bd1887bde6a9cedc 100644 (file)
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
 PKG_NAME:=tcl
 TCL_MAJOR_VERSION:=8.6
 PKG_VERSION:=${TCL_MAJOR_VERSION}.9
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)$(PKG_VERSION)-src.tar.gz
 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
@@ -74,6 +74,8 @@ define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/tcl.pc \
                $(1)/usr/lib/pkgconfig
+       $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/tcl.pc
+       $(SED) 's,/usr/lib,$$$${prefix}/lib,g' $(1)/usr/lib/pkgconfig/tcl.pc
 endef
 
 define Package/tcl/install
git clone https://git.99rst.org/PROJECT