diff mbox

[OpenWrt-Devel] add pkgconfig information for popt library

Message ID 20150115181420.GA61788@aillwee.com
State Accepted
Headers show

Commit Message

Mike Brady Jan. 15, 2015, 6:14 p.m. UTC
Modify makefile to record pkgconfig information for the popt library.

Signed-off-by: Mike Brady <mikebrady@eircom.net>
---
 package/libs/popt/Makefile | 2 ++
 1 file changed, 2 insertions(+)

Comments

Mike Brady Jan. 16, 2015, 4:53 p.m. UTC | #1
I meant to mention that, as well as being A Good Thing in general, this would make is possible for me to bring shairport-sync (https://github.com/mikebrady/shairport-sync) over to OpenWrt without having to patch its configuration file.

> Modify makefile to record pkgconfig information for the popt library.

Mike
diff mbox

Patch

diff --git a/package/libs/popt/Makefile b/package/libs/popt/Makefile
index bd2e6e2..b31b311 100644
--- a/package/libs/popt/Makefile
+++ b/package/libs/popt/Makefile
@@ -45,6 +45,8 @@  define Build/InstallDev
 	$(CP) $(PKG_INSTALL_DIR)/usr/include/popt.h $(1)/usr/include/
 	$(INSTALL_DIR) $(1)/usr/lib
 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libpopt.{a,so*} $(1)/usr/lib/
+	$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
+	$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/popt.pc $(1)/usr/lib/pkgconfig/
 endef
 
 define Package/libpopt/install