* [Buildroot] [PATCH 1/1] ibrdtn: new package
@ 2015-08-08 12:49 Tom Sparks
2015-08-29 16:17 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Tom Sparks @ 2015-08-08 12:49 UTC (permalink / raw)
To: buildroot
Signed-off-by: Tom Sparks <tom_a_sparks@yahoo.com.au>
---
package/ibrdtn/Config.in | 15 +++++++++++++++
package/ibrdtn/ibrdtn.mk | 30 ++++++++++++++++++++++++++++++
2 files changed, 45 insertions(+)
create mode 100644 package/ibrdtn/Config.in
create mode 100644 package/ibrdtn/ibrdtn.mk
diff --git a/package/ibrdtn/Config.in b/package/ibrdtn/Config.in
new file mode 100644
index 0000000..407ee7b
--- /dev/null
+++ b/package/ibrdtn/Config.in
@@ -0,0 +1,15 @@
+config BR2_PACKAGE_IBRDTN
+ bool "ibrdtn"
+ depends on BR2_INSTALL_LIBSTDCPP
+ depends on BR2_TOOLCHAIN_HAS_THREADS
+ select BR2_PACKAGE_IBRCOMMON
+ help
+ IBR-DTN is a small dtn application that supports:
+ Bundle Protocol RFC 5050
+ Bundle Security Protocol RFC 6257
+
+ http://trac.ibr.cs.tu-bs.de/project-cm-2012-ibrdtn
+
+comment "ibrcommon needs a toolchain w/ C++, threads"
+ depends on !BR2_INSTALL_LIBSTDCPP
+ depends on !BR2_TOOLCHAIN_HAS_THREADS
\ No newline at end of file
diff --git a/package/ibrdtn/ibrdtn.mk b/package/ibrdtn/ibrdtn.mk
new file mode 100644
index 0000000..82b1914
--- /dev/null
+++ b/package/ibrdtn/ibrdtn.mk
@@ -0,0 +1,30 @@
+################################################################################
+#
+# ibrdtn
+#
+################################################################################
+
+IBRDTN_VERSION = 1.0.1
+IBRDTN_SOURCE = ibrdtn-$(IBRDTN_VERSION).tar.gz
+IBRDTN_SITE = https://www.ibr.cs.tu-bs.de/projects/ibr-dtn/releases/
+IBRDTN_INSTALL_STAGING = YES
+IBRDTN_LICENSE = Apache-2.0
+IBRDTN_LICENSE_FILES = COPYING
+IBRDTN_CONF_OPTS = --with-compression
+IBRDTN_DEPENDENCIES = ibrcommon
+
+# While the configuration system uses autoconf, the Makefiles are
+# hand-written and do not use automake. Therefore, we have to hack
+# around their deficiencies by passing installation paths.
+IBRDTN_INSTALL_STAGING_OPTS = \
+ prefix=$(STAGING_DIR)/usr \
+ exec_prefix=$(STAGING_DIR)/usr \
+ PKG_DEVLIB_DIR=$(STAGING_DIR)/usr/lib \
+ install
+
+IBRDTN_INSTALL_TARGET_OPTS = \
+ prefix=$(TARGET_DIR)/usr \
+ exec_prefix=$(TARGET_DIR)/usr \
+ install
+
+$(eval $(autotools-package))
\ No newline at end of file
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH 1/1] ibrdtn: new package
2015-08-08 12:49 [Buildroot] [PATCH 1/1] ibrdtn: new package Tom Sparks
@ 2015-08-29 16:17 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2015-08-29 16:17 UTC (permalink / raw)
To: buildroot
Dear Tom Sparks,
On Sat, 8 Aug 2015 22:49:05 +1000, Tom Sparks wrote:
> Signed-off-by: Tom Sparks <tom_a_sparks@yahoo.com.au>
> ---
> package/ibrdtn/Config.in | 15 +++++++++++++++
> package/ibrdtn/ibrdtn.mk | 30 ++++++++++++++++++++++++++++++
> 2 files changed, 45 insertions(+)
> create mode 100644 package/ibrdtn/Config.in
> create mode 100644 package/ibrdtn/ibrdtn.mk
Applied to the next branch, after doing a number of changes:
[Thomas:
- Add missing include in package/Config.in to make the package
appear in menuconfig.
- Fix the comment dependencies: the comment should be shown either
if C++ is not available *or* if threads are not supported.
- Add a hash file.
- Add missing dependency on host-pkgconf, since pkg-config is used
to detect the availability of ibrcommon.
- Remove the custom INSTALL_STAGING_OPTS and INSTALL_TARGET_OPTS:
they are not needed since automake is used.
- Make --with-compression conditional on whether zlib is available.
- Add optional dependency on libglib2.
- Add missing final newlines in .mk and Config.in files.]
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-08-29 16:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-08 12:49 [Buildroot] [PATCH 1/1] ibrdtn: new package Tom Sparks
2015-08-29 16:17 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox