2008-12-03 10:02:46 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# liboil
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
LIBOIL_VERSION = 0.3.15
|
|
|
|
LIBOIL_SOURCE = liboil-$(LIBOIL_VERSION).tar.gz
|
|
|
|
LIBOIL_SITE = http://liboil.freedesktop.org/download
|
2009-01-18 11:51:53 +01:00
|
|
|
LIBOIL_AUTORECONF = YES
|
2008-12-03 10:02:46 +01:00
|
|
|
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_x86_64),y)
|
|
|
|
LIBOIL_CONF_ENV = as_cv_unaligned_access=yes
|
|
|
|
endif
|
|
|
|
|
2009-01-25 09:16:53 +01:00
|
|
|
LIBOIL_CONF_OPT+=--with-gnu-ld
|
|
|
|
|
2008-12-03 10:02:46 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBGLIB2),y)
|
|
|
|
LIBOIL_GLIB_DEP = libglib2
|
|
|
|
endif
|
|
|
|
|
2009-01-18 11:51:53 +01:00
|
|
|
ifeq ($(BR2_VFP_FLOAT),y)
|
|
|
|
LIBOIL_CONF_OPT+=--enable-vfp
|
|
|
|
endif
|
|
|
|
|
2009-09-02 17:02:02 +02:00
|
|
|
LIBOIL_DEPENDENCIES = $(LIBOIL_GLIB_DEP)
|
2008-12-03 10:02:46 +01:00
|
|
|
|
2010-09-01 22:38:40 +02:00
|
|
|
define LIBOIL_TARGET_CLEANUP
|
2008-12-03 10:02:46 +01:00
|
|
|
rm -f $(TARGET_DIR)/usr/bin/oil-bugreport
|
2010-09-01 22:38:40 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
LIBOIL_POST_INSTALL_TARGET_HOOKS += LIBOIL_TARGET_CLEANUP
|
|
|
|
|
|
|
|
$(eval $(call AUTOTARGETS,package,liboil))
|