summaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorWolfram Sang <w.sang@pengutronix.de>2013-01-07 08:04:56 +0100
committerMarc Kleine-Budde <mkl@pengutronix.de>2013-02-05 18:54:15 +0100
commitb4c224b6f93802ff2adfec4a86a554a7ee05246d (patch)
tree82e84719d8f3ec00fa3eb3c621cd5d9184e472a8 /rules
parent5dcb669dff2d8da2d914019fb46441f8807b4d97 (diff)
downloadptxdist-b4c224b6f93802ff2adfec4a86a554a7ee05246d.tar.gz
ptxdist-b4c224b6f93802ff2adfec4a86a554a7ee05246d.tar.xz
ustr: add package
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'rules')
-rw-r--r--rules/ustr.in9
-rw-r--r--rules/ustr.make61
2 files changed, 70 insertions, 0 deletions
diff --git a/rules/ustr.in b/rules/ustr.in
new file mode 100644
index 000000000..5546f564b
--- /dev/null
+++ b/rules/ustr.in
@@ -0,0 +1,9 @@
+## SECTION=system_libraries
+
+config USTR
+ tristate
+ prompt "ustr"
+ help
+ ustr (Micro string library) is a string API for C. It has tiny overhead over
+ just plain strdup(), is much safer, is easier to use, is faster for many
+ operations, can be used with read-only or automatically allocated data.
diff --git a/rules/ustr.make b/rules/ustr.make
new file mode 100644
index 000000000..c313e71b7
--- /dev/null
+++ b/rules/ustr.make
@@ -0,0 +1,61 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2012 by Wolfram Sang <w.sang@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_USTR) += ustr
+
+#
+# Paths and names
+#
+USTR_VERSION := 1.0.4
+USTR_MD5 := 93147d9f0c9765d4cd0f04f7e44bdfce
+USTR := ustr-$(USTR_VERSION)
+USTR_SUFFIX := tar.bz2
+USTR_URL := http://www.and.org/ustr/$(USTR_VERSION)/$(USTR).$(USTR_SUFFIX)
+USTR_SOURCE := $(SRCDIR)/$(USTR).$(USTR_SUFFIX)
+USTR_DIR := $(BUILDDIR)/$(USTR)
+USTR_LICENSE := LGPLv2+,MIT,BSD
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+USTR_CONF_TOOL := NO
+USTR_MAKE_OPT := \
+ $(CROSS_ENV_PROGS) \
+ VSNP=0 \
+ SZ64=$(call ptx/ifdef, PTXCONF_ARCH_LP64,1,0) \
+ all-shared
+USTR_INSTALL_OPT := \
+ $(USTR_MAKE_OPT) \
+ install
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/ustr.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, ustr)
+ @$(call install_fixup, ustr,PRIORITY,optional)
+ @$(call install_fixup, ustr,SECTION,base)
+ @$(call install_fixup, ustr,AUTHOR,"Wolfram Sang <w.sang@pengutronix.de>")
+ @$(call install_fixup, ustr,DESCRIPTION,missing)
+
+ @$(call install_lib, ustr, 0, 0, 0644, libustr-1.0)
+
+ @$(call install_finish, ustr)
+
+ @$(call touch)
+
+# vim: syntax=make