summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
Diffstat (limited to 'package')
-rw-r--r--package/Config.in1
-rw-r--r--package/liboil/Config.in6
-rw-r--r--package/liboil/liboil.mk43
3 files changed, 50 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in
index 2e842fb07..23d323803 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -78,6 +78,7 @@ source "package/libgcrypt/Config.in"
source "package/libgpg-error/Config.in"
source "package/libiconv/Config.in"
source "package/liblockfile/Config.in"
+source "package/liboil/Config.in"
source "package/libsysfs/Config.in"
source "package/lockfile-progs/Config.in"
source "package/logrotate/Config.in"
diff --git a/package/liboil/Config.in b/package/liboil/Config.in
new file mode 100644
index 000000000..0acbbfc13
--- /dev/null
+++ b/package/liboil/Config.in
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_LIBOIL
+ bool "liboil"
+ help
+ Library of simple functions that are optimized for various CPUs.
+
+ http://liboil.freedesktop.org/
diff --git a/package/liboil/liboil.mk b/package/liboil/liboil.mk
new file mode 100644
index 000000000..6e80ed60e
--- /dev/null
+++ b/package/liboil/liboil.mk
@@ -0,0 +1,43 @@
+#############################################################
+#
+# liboil
+#
+#############################################################
+LIBOIL_VERSION = 0.3.15
+LIBOIL_SOURCE = liboil-$(LIBOIL_VERSION).tar.gz
+LIBOIL_SITE = http://liboil.freedesktop.org/download
+LIBOIL_AUTORECONF = NO
+LIBOIL_INSTALL_STAGING = YES
+LIBOIL_INSTALL_TARGET = YES
+
+# Checking if unaligned memory access works correctly cannot be done when cross
+# compiling. For the following architectures there is no information available
+# in the configure script.
+ifeq ($(BR2_avr32),y)
+LIBOIL_CONF_ENV = as_cv_unaligned_access=no
+endif
+ifeq ($(BR2_cris),y)
+LIBOIL_CONF_ENV = as_cv_unaligned_access=yes
+endif
+ifeq ($(BR2_nios2),y)
+LIBOIL_CONF_ENV = as_cv_unaligned_access=no
+endif
+ifeq ($(BR2_s390),y)
+LIBOIL_CONF_ENV = as_cv_unaligned_access=yes
+endif
+ifeq ($(BR2_x86_64),y)
+LIBOIL_CONF_ENV = as_cv_unaligned_access=yes
+endif
+
+ifeq ($(BR2_PACKAGE_LIBGLIB2),y)
+LIBOIL_GLIB_DEP = libglib2
+endif
+
+LIBOIL_DEPENDENCIES = uclibc $(LIBOIL_GLIB_DEP)
+
+$(eval $(call AUTOTARGETS,package,liboil))
+
+$(LIBOIL_HOOK_POST_INSTALL):
+ # Remove useless bugreport program from the target
+ rm -f $(TARGET_DIR)/usr/bin/oil-bugreport
+ touch $@ \ No newline at end of file