diff options
author | Yann E. MORIN <yann.morin.1998@free.fr> | 2012-08-21 19:07:04 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2012-08-24 23:40:28 +0200 |
commit | d59cd114d6e33cc6dd358c3708d70a1a5483dc56 (patch) | |
tree | 3cdedb9b30fd579f8888ed972ba05a81062fb3d0 /package/libnss | |
parent | 22afea3002e5357382704c8e15d8a03d54a6b869 (diff) | |
download | buildroot-novena-d59cd114d6e33cc6dd358c3708d70a1a5483dc56.tar.gz buildroot-novena-d59cd114d6e33cc6dd358c3708d70a1a5483dc56.zip |
package/libnss: also install a pkg-config file
Some packages use pkg-config to check for libnss.
Add our own .pc file (vampirised from Debian).
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/libnss')
-rw-r--r-- | package/libnss/libnss.mk | 8 | ||||
-rw-r--r-- | package/libnss/nss.pc.in | 11 |
2 files changed, 19 insertions, 0 deletions
diff --git a/package/libnss/libnss.mk b/package/libnss/libnss.mk index f7fd6820c..84fc14996 100644 --- a/package/libnss/libnss.mk +++ b/package/libnss/libnss.mk @@ -49,6 +49,10 @@ define LIBNSS_INSTALL_STAGING_CMDS $(@D)/$(LIBNSS_DISTDIR)/public/nss/* $(INSTALL) -m 755 -t $(STAGING_DIR)/usr/lib/ \ $(@D)/$(LIBNSS_DISTDIR)/lib/*.a + $(INSTALL) -D -m 0644 $(TOPDIR)/package/libnss/nss.pc.in \ + $(STAGING_DIR)/usr/lib/pkgconfig/nss.pc + $(SED) 's/@VERSION@/$(LIBNSS_VERSION)/g;' \ + $(STAGING_DIR)/usr/lib/pkgconfig/nss.pc endef define LIBNSS_INSTALL_TARGET_CMDS @@ -59,6 +63,10 @@ define LIBNSS_INSTALL_TARGET_CMDS $(@D)/$(LIBNSS_DISTDIR)/public/nss/* $(INSTALL) -m 755 -t $(TARGET_DIR)/usr/lib/ \ $(@D)/$(LIBNSS_DISTDIR)/lib/*.a + $(INSTALL) -D -m 0644 $(TOPDIR)/package/libnss/nss.pc.in \ + $(TARGET_DIR)/usr/lib/pkgconfig/nss.pc + $(SED) 's/@VERSION@/$(LIBNSS_VERSION)/g;' \ + $(TARGET_DIR)/usr/lib/pkgconfig/nss.pc endef define LIBNSS_CLEAN_CMDS diff --git a/package/libnss/nss.pc.in b/package/libnss/nss.pc.in new file mode 100644 index 000000000..e27783f64 --- /dev/null +++ b/package/libnss/nss.pc.in @@ -0,0 +1,11 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include/nss + +Name: NSS +Description: Mozilla Network Security Services +Version: @VERSION@ +Requires: nspr +Libs: -L${libdir} -lnss3 -lnssutil3 -lsmime3 -lssl3 +Cflags: -I${includedir} |