From: Lucas Stach <l.stach@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH 1/2] nspr: new package
Date: Wed, 18 May 2016 14:58:23 +0200 [thread overview]
Message-ID: <1463576304-26633-1-git-send-email-l.stach@pengutronix.de> (raw)
Netscape Portable Runtime (NSPR) provides a platform-neutral API for system
level and libc-like functions. The API is used in the Mozilla clients, many
of Red Hat's and Sun's server applications, and other software offerings.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
rules/nspr.in | 10 +++++++
rules/nspr.make | 88 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 98 insertions(+)
create mode 100644 rules/nspr.in
create mode 100644 rules/nspr.make
diff --git a/rules/nspr.in b/rules/nspr.in
new file mode 100644
index 000000000000..6ba9fa296c0a
--- /dev/null
+++ b/rules/nspr.in
@@ -0,0 +1,10 @@
+## SECTION=networking
+
+config NSPR
+ tristate
+ prompt "nspr"
+ help
+ Netscape Portable Runtime (NSPR) provides a platform-neutral API
+ for system level and libc-like functions. The API is used in the
+ Mozilla clients, many of Red Hat's and Sun's server applications,
+ and other software offerings.
diff --git a/rules/nspr.make b/rules/nspr.make
new file mode 100644
index 000000000000..72ec449af5f7
--- /dev/null
+++ b/rules/nspr.make
@@ -0,0 +1,88 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2016 by Lucas Stach <l.stach@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_NSPR) += nspr
+
+#
+# Paths and names
+#
+NSPR_VERSION := 4.12
+NSPR_MD5 := 0de760c1e00a92e180e611cf06ce9589
+NSPR := nspr-$(NSPR_VERSION)
+NSPR_SUFFIX := tar.gz
+NSPR_URL := http://ftp.mozilla.org/pub/nspr/releases/v$(NSPR_VERSION)/src/$(NSPR).$(NSPR_SUFFIX)
+NSPR_SOURCE := $(SRCDIR)/$(NSPR).$(NSPR_SUFFIX)
+NSPR_DIR := $(BUILDDIR)/$(NSPR)
+NSPR_LICENSE := MPL-2.0
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+NSPR_CONF_ENV := $(CROSS_ENV)
+
+#
+# autoconf
+#
+NSPR_CONF_TOOL := autoconf
+NSPR_CONF_OPT := $(CROSS_AUTOCONF_USR)
+
+$(STATEDIR)/nspr.prepare:
+ @$(call targetinfo)
+ @$(call clean, $(NSPR_DIR)/config.cache)
+ cd $(NSPR_DIR)/nspr && \
+ $(NSPR_PATH) $(NSPR_ENV) \
+ ./configure $(NSPR_CONF_OPT)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/nspr.compile:
+ @$(call targetinfo)
+ @$(call compile, NSPR, CROSS_COMPILE=1 CFLAGS="-DXP_UNIX" LDFLAGS="" CC=gcc -C nspr/config export)
+ @$(call compile, NSPR, -C nspr)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/nspr.install:
+ @$(call targetinfo)
+ @$(call compile, NSPR, DESTDIR=$(NSPR_PKGDIR) -C nspr install)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/nspr.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, nspr)
+ @$(call install_fixup, nspr,PRIORITY,optional)
+ @$(call install_fixup, nspr,SECTION,base)
+ @$(call install_fixup, nspr,AUTHOR,"Lucas Stach <l.stach@pengutronix.de>")
+ @$(call install_fixup, nspr,DESCRIPTION,missing)
+
+ @$(call install_lib, nspr, 0, 0, 0644, libnspr4)
+ @$(call install_lib, nspr, 0, 0, 0644, libplc4)
+ @$(call install_lib, nspr, 0, 0, 0644, libplds4)
+
+ @$(call install_finish, nspr)
+
+ @$(call touch)
+
+# vim: syntax=make
--
2.8.0.rc3
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
next reply other threads:[~2016-05-18 12:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-18 12:58 Lucas Stach [this message]
2016-05-18 12:58 ` [ptxdist] [PATCH 2/2] nss: " Lucas Stach
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1463576304-26633-1-git-send-email-l.stach@pengutronix.de \
--to=l.stach@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox