* [Buildroot] [PATCH 0/2 v2] Install .pc files for libnspr and libnss
@ 2012-08-21 17:07 Yann E. MORIN
2012-08-21 17:07 ` [Buildroot] [PATCH 1/2] package/libnspr: add pkg-config file Yann E. MORIN
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Yann E. MORIN @ 2012-08-21 17:07 UTC (permalink / raw)
To: buildroot
Changes since v1:
Fix commit log for libnspr. (Thomas)
Regards,
Yann E. MORIN.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 1/2] package/libnspr: add pkg-config file
2012-08-21 17:07 [Buildroot] [PATCH 0/2 v2] Install .pc files for libnspr and libnss Yann E. MORIN
@ 2012-08-21 17:07 ` Yann E. MORIN
2012-08-21 17:07 ` [Buildroot] [PATCH 2/2] package/libnss: also install a " Yann E. MORIN
2012-08-24 21:40 ` [Buildroot] [PATCH 0/2 v2] Install .pc files for libnspr and libnss Thomas Petazzoni
2 siblings, 0 replies; 4+ messages in thread
From: Yann E. MORIN @ 2012-08-21 17:07 UTC (permalink / raw)
To: buildroot
Some packages use pkg-config to check for libnspr.
Add our own .pc file (vampirised from Debian).
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
package/libnspr/libnspr.mk | 16 ++++++++++++++++
package/libnspr/nspr.pc.in | 10 ++++++++++
2 files changed, 26 insertions(+), 0 deletions(-)
create mode 100644 package/libnspr/nspr.pc.in
diff --git a/package/libnspr/libnspr.mk b/package/libnspr/libnspr.mk
index 689caa4..736984d 100644
--- a/package/libnspr/libnspr.mk
+++ b/package/libnspr/libnspr.mk
@@ -16,4 +16,20 @@ LIBNSPR_CONF_OPT = --host=$(GNU_HOST_NAME)
LIBNSPR_CONF_OPT += --$(if $(BR2_ARCH_IS_64),en,dis)able-64bit
LIBNSPR_CONF_OPT += --$(if $(BR2_INET_IPV6),en,dis)able-ipv6
+define LIBNSPR_INSTALL_STAGING_PC
+ $(INSTALL) -D -m 0644 $(TOPDIR)/package/libnspr/nspr.pc.in \
+ $(STAGING_DIR)/usr/lib/pkgconfig/nspr.pc
+ $(SED) 's/@VERSION@/$(LIBNSPR_VERSION)/g;' \
+ $(STAGING_DIR)/usr/lib/pkgconfig/nspr.pc
+endef
+LIBNSPR_POST_INSTALL_STAGING_HOOKS += LIBNSPR_INSTALL_STAGING_PC
+
+define LIBNSPR_INSTALL_TARGET_PC
+ $(INSTALL) -D -m 0644 $(TOPDIR)/package/libnspr/nspr.pc.in \
+ $(TARGET_DIR)/usr/lib/pkgconfig/nspr.pc
+ $(SED) 's/@VERSION@/$(LIBNSPR_VERSION)/g;' \
+ $(TARGET_DIR)/usr/lib/pkgconfig/nspr.pc
+endef
+LIBNSPR_POST_INSTALL_TARGET_HOOKS += LIBNSPR_INSTALL_TARGET_PC
+
$(eval $(autotools-package))
diff --git a/package/libnspr/nspr.pc.in b/package/libnspr/nspr.pc.in
new file mode 100644
index 0000000..44873d2
--- /dev/null
+++ b/package/libnspr/nspr.pc.in
@@ -0,0 +1,10 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include/nspr
+
+Name: NSPR
+Description: The Netscape Portable Runtime
+Version: @VERSION@
+Libs: -L${exec_prefix}/lib -lplds4 -lplc4 -lnspr4 -lpthread -ldl
+Cflags: -I${prefix}/include/nspr
--
1.7.2.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 2/2] package/libnss: also install a pkg-config file
2012-08-21 17:07 [Buildroot] [PATCH 0/2 v2] Install .pc files for libnspr and libnss Yann E. MORIN
2012-08-21 17:07 ` [Buildroot] [PATCH 1/2] package/libnspr: add pkg-config file Yann E. MORIN
@ 2012-08-21 17:07 ` Yann E. MORIN
2012-08-24 21:40 ` [Buildroot] [PATCH 0/2 v2] Install .pc files for libnspr and libnss Thomas Petazzoni
2 siblings, 0 replies; 4+ messages in thread
From: Yann E. MORIN @ 2012-08-21 17:07 UTC (permalink / raw)
To: buildroot
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>
---
package/libnss/libnss.mk | 8 ++++++++
package/libnss/nss.pc.in | 11 +++++++++++
2 files changed, 19 insertions(+), 0 deletions(-)
create mode 100644 package/libnss/nss.pc.in
diff --git a/package/libnss/libnss.mk b/package/libnss/libnss.mk
index f7fd682..84fc149 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 0000000..e27783f
--- /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}
--
1.7.2.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 0/2 v2] Install .pc files for libnspr and libnss
2012-08-21 17:07 [Buildroot] [PATCH 0/2 v2] Install .pc files for libnspr and libnss Yann E. MORIN
2012-08-21 17:07 ` [Buildroot] [PATCH 1/2] package/libnspr: add pkg-config file Yann E. MORIN
2012-08-21 17:07 ` [Buildroot] [PATCH 2/2] package/libnss: also install a " Yann E. MORIN
@ 2012-08-24 21:40 ` Thomas Petazzoni
2 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2012-08-24 21:40 UTC (permalink / raw)
To: buildroot
Le Tue, 21 Aug 2012 19:07:02 +0200,
"Yann E. MORIN" <yann.morin.1998@free.fr> a ?crit :
> Changes since v1:
> Fix commit log for libnspr. (Thomas)
Applied both patches to next. Please submit patches upstream to add
those .pc files.
Thanks!
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-08-24 21:40 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-21 17:07 [Buildroot] [PATCH 0/2 v2] Install .pc files for libnspr and libnss Yann E. MORIN
2012-08-21 17:07 ` [Buildroot] [PATCH 1/2] package/libnspr: add pkg-config file Yann E. MORIN
2012-08-21 17:07 ` [Buildroot] [PATCH 2/2] package/libnss: also install a " Yann E. MORIN
2012-08-24 21:40 ` [Buildroot] [PATCH 0/2 v2] Install .pc files for libnspr and libnss Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox