summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2012-05-21 15:28:25 +0200
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2012-05-21 15:30:34 +0200
commit1d30f262e1089bf3c1c4c22b1f0e4aa61fb01def (patch)
tree988089d04b0a6a0609650108dbd217fdca2d9ace /packages
parentfd0e780e9d7155a10ba922920d821d3043bbc0fe (diff)
downloadembtoolkit-1d30f262e1089bf3c1c4c22b1f0e4aa61fb01def.tar.gz
embtoolkit-1d30f262e1089bf3c1c4c22b1f0e4aa61fb01def.tar.bz2
embtoolkit-1d30f262e1089bf3c1c4c22b1f0e4aa61fb01def.tar.xz
Add new development package: libbsd
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'packages')
-rw-r--r--packages/development/development.kconfig3
-rw-r--r--packages/development/development.mk6
-rw-r--r--packages/development/libbsd/libbsd.kconfig51
-rw-r--r--packages/development/libbsd/libbsd.mk41
4 files changed, 100 insertions, 1 deletions
diff --git a/packages/development/development.kconfig b/packages/development/development.kconfig
index 35ea937..115712f 100644
--- a/packages/development/development.kconfig
+++ b/packages/development/development.kconfig
@@ -23,6 +23,9 @@
# \date October 2010
################################################################################
+# libbsd
+source packages/development/libbsd/libbsd.kconfig
+
#libevent
source packages/development/libevent/libevent.kconfig
diff --git a/packages/development/development.mk b/packages/development/development.mk
index 97025fa..773de7d 100644
--- a/packages/development/development.mk
+++ b/packages/development/development.mk
@@ -1,6 +1,6 @@
################################################################################
# Embtoolkit
-# Copyright(C) 2009-2011 Abdoulaye Walsimou GAYE.
+# Copyright(C) 2009-2012 Abdoulaye Walsimou GAYE.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -24,6 +24,10 @@
################################################################################
#libevent
+include $(EMBTK_ROOT)/packages/development/libbsd/libbsd.mk
+ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_LIBBSD) += libbsd_install
+
+#libevent
include $(EMBTK_ROOT)/packages/development/libevent/libevent.mk
ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_LIBEVENT) += libevent_install
diff --git a/packages/development/libbsd/libbsd.kconfig b/packages/development/libbsd/libbsd.kconfig
new file mode 100644
index 0000000..b0e3f4a
--- /dev/null
+++ b/packages/development/libbsd/libbsd.kconfig
@@ -0,0 +1,51 @@
+################################################################################
+# Embtoolkit
+# Copyright(C) 2012 Abdoulaye Walsimou GAYE.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+################################################################################
+#
+# \file libbsd.kconfig
+# \brief libbsd.kconfig of Embtoolkit
+# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
+# \date May 2012
+################################################################################
+
+config EMBTK_HAVE_LIBBSD
+ bool "Have libbsd"
+ select KEMBTK_UCLIBC_UCLIBC_HAS_PROGRAM_INVOCATION_NAME if EMBTK_CLIB_UCLIBC
+ help
+ This library provides useful functions commonly found on BSD
+ systems, and lacking on others like GNU systems, thus making it
+ easier to port projects with strong BSD origins, without needing
+ to embed the same code over and over again on each project.
+
+choice
+ prompt "libbsd version you wish"
+ depends on EMBTK_HAVE_LIBBSD
+ help
+ Here you can choose which version of libbsd you want to use.
+
+ config EMBTK_LIBBSD_VERSION_0_3_0
+ bool "libbsd-0.3.0"
+ select EMBTK_LIBBSD_NEED_PATCH
+endchoice
+
+config EMBTK_LIBBSD_VERSION_STRING
+ string
+ default "0.3.0" if EMBTK_LIBBSD_VERSION_0_3_0
+
+config EMBTK_LIBBSD_NEED_PATCH
+ bool
diff --git a/packages/development/libbsd/libbsd.mk b/packages/development/libbsd/libbsd.mk
new file mode 100644
index 0000000..f36b7c0
--- /dev/null
+++ b/packages/development/libbsd/libbsd.mk
@@ -0,0 +1,41 @@
+################################################################################
+# Embtoolkit
+# Copyright(C) 2012 Abdoulaye Walsimou GAYE.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+################################################################################
+#
+# \file libbsd.mk
+# \brief libbsd.mk of Embtoolkit
+# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
+# \date May 2012
+################################################################################
+
+LIBBSD_NAME := libbsd
+LIBBSD_VERSION := $(call embtk_get_pkgversion,libbsd)
+LIBBSD_SITE := http://libbsd.freedesktop.org/releases
+LIBBSD_PACKAGE := libbsd-$(LIBBSD_VERSION).tar.gz
+LIBBSD_SRC_DIR := $(PACKAGES_BUILD)/libbsd-$(LIBBSD_VERSION)
+LIBBSD_BUILD_DIR := $(PACKAGES_BUILD)/libbsd-$(LIBBSD_VERSION)
+
+LIBBSD_INCLUDES := bsd
+LIBBSD_LIBS := libbsd*
+LIBBSD_PKGCONFIGS := libbsd*.pc
+
+LIBBSD_MAKE_OPTS := CC=$(TARGETCC_CACHED) AR=$(TARGETAR)
+LIBBSD_MAKE_OPTS += CFLAGS="$(TARGET_CFLAGS)"
+
+libbsd_install:
+ $(call embtk_makeinstall_pkg,libbsd)