From: spdawson at gmail.com <spdawson@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] schifra: new package
Date: Fri, 24 Aug 2012 10:39:54 +0100 [thread overview]
Message-ID: <1345801194-28735-1-git-send-email-spdawson@gmail.com> (raw)
From: Simon Dawson <spdawson@gmail.com>
Signed-off-by: Simon Dawson <spdawson@gmail.com>
---
package/Config.in | 1 +
package/schifra/Config.in | 18 ++++++++++++++++
package/schifra/schifra.mk | 50 ++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 69 insertions(+)
create mode 100644 package/schifra/Config.in
create mode 100644 package/schifra/schifra.mk
diff --git a/package/Config.in b/package/Config.in
index f308de7..993a5ad 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -464,6 +464,7 @@ source "package/lttng-libust/Config.in"
source "package/orc/Config.in"
source "package/poco/Config.in"
source "package/protobuf/Config.in"
+source "package/schifra/Config.in"
source "package/startup-notification/Config.in"
endmenu
diff --git a/package/schifra/Config.in b/package/schifra/Config.in
new file mode 100644
index 0000000..466ac0e
--- /dev/null
+++ b/package/schifra/Config.in
@@ -0,0 +1,18 @@
+config BR2_PACKAGE_SCHIFRA
+ bool "schifra"
+ depends on BR2_INSTALL_LIBSTDCPP
+ help
+ Schifra is a very robust, highly optimized and extremely configurable
+ Reed-Solomon error correcting code library for both software and IP
+ core based applications with implementations in C++ and VHDL.
+
+ http://www.schifra.com/
+
+config BR2_PACKAGE_SCHIFRA_EXAMPLES
+ bool "schifra examples"
+ depends on BR2_PACKAGE_SCHIFRA
+ help
+ Build and install the schifra example applications.
+
+comment "schifra requires a toolchain with C++ support enabled"
+ depends on !BR2_INSTALL_LIBSTDCPP
diff --git a/package/schifra/schifra.mk b/package/schifra/schifra.mk
new file mode 100644
index 0000000..e97dede
--- /dev/null
+++ b/package/schifra/schifra.mk
@@ -0,0 +1,50 @@
+#############################################################
+#
+# schifra
+#
+#############################################################
+SCHIFRA_VERSION = 0.0.1
+SCHIFRA_SITE = http://www.schifra.com/downloads
+SCHIFRA_SOURCE = schifra.tgz
+SCHIFRA_INSTALL_STAGING = YES
+SCHIFRA_LICENSE = schifra license
+SCHIFRA_LICENSE_FILES = schifra_license.txt
+
+SCHIFRA_MAKE_OPT = COMPILER="$(TARGET_CXX)"
+
+# The examples are the only buildable artefacts.
+ifeq ($(BR2_PACKAGE_SCHIFRA_EXAMPLES),y)
+define SCHIFRA_BUILD_CMDS
+ $(MAKE) -C $(@D) $(SCHIFRA_MAKE_OPT) all
+endef
+endif
+
+define SCHIFRA_INSTALL_TARGET_CMDS
+ $(INSTALL) -m 0755 -d $(TARGET_DIR)/usr/include
+ $(INSTALL) -m 0644 -t $(TARGET_DIR)/usr/include $(@D)/schifra_*.hpp
+ $(INSTALL) -m 0755 -d $(TARGET_DIR)/usr/bin
+ for i in `find $(@D) -type f -name 'schifra_*' -executable` ; \
+ do \
+ $(INSTALL) -m 0755 -t $(TARGET_DIR)/usr/bin $$i ; \
+ done
+endef
+
+define SCHIFRA_INSTALL_STAGING_CMDS
+ $(INSTALL) -m 0755 -d $(STAGING_DIR)/usr/include
+ $(INSTALL) -m 0644 -t $(STAGING_DIR)/usr/include $(@D)/schifra_*.hpp
+endef
+
+define SCHIFRA_UNINSTALL_TARGET_CMDS
+ $(RM) $(TARGET_DIR)/usr/include/schifra_*.hpp
+ $(RM) $(TARGET_DIR)/usr/bin/schifra_*
+endef
+
+define SCHIFRA_UNINSTALL_STAGING_CMDS
+ $(RM) $(STAGING_DIR)/usr/include/schifra_*.hpp
+endef
+
+define SCHIFRA_CLEAN_CMDS
+ $(MAKE) -C $(@D) $(SCHIFRA_MAKE_OPT) clean
+endef
+
+$(eval $(generic-package))
--
1.7.9.5
next reply other threads:[~2012-08-24 9:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-24 9:39 spdawson at gmail.com [this message]
2012-08-25 15:21 ` [Buildroot] [PATCH] schifra: new package Thomas Petazzoni
2012-08-27 10:52 ` Luca Ceresoli
2012-08-27 22:22 ` Arnout Vandecappelle
2012-08-28 7:34 ` Simon Dawson
2012-09-10 8:45 ` Peter Korsgaard
2012-09-10 9:16 ` Simon Dawson
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=1345801194-28735-1-git-send-email-spdawson@gmail.com \
--to=spdawson@gmail.com \
--cc=buildroot@busybox.net \
/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