2008-09-04 07:50:31 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# libdnet
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
|
|
|
LIBDNET_VERSION = 1.11
|
|
|
|
LIBDNET_SOURCE = libdnet-$(LIBDNET_VERSION).tar.gz
|
|
|
|
LIBDNET_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/libdnet/
|
|
|
|
LIBDNET_INSTALL_STAGING = YES
|
|
|
|
LIBDNET_INSTALL_TARGET = YES
|
|
|
|
LIBDNET_AUTORECONF = YES
|
2009-01-24 07:25:40 +01:00
|
|
|
LIBDNET_CONF_OPT = \
|
|
|
|
--with-gnu-ld \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
--with-check=no
|
|
|
|
|
2008-09-04 07:50:31 +02:00
|
|
|
ifneq ($(BR2_PACKAGE_LIBDNET_PYTHON),)
|
2009-09-02 17:02:02 +02:00
|
|
|
LIBDNET_DEPENDENCIES = python
|
2008-09-04 07:50:31 +02:00
|
|
|
LIBDNET_CONF_OPT += --with-python
|
2009-01-11 21:15:35 +01:00
|
|
|
LIBDNET_MAKE_OPT = PYTHON=python$(PYTHON_VERSION_MAJOR) PYINCDIR=$(STAGING_DIR)/usr/include/python$(PYTHON_VERSION_MAJOR)
|
2008-09-04 07:50:31 +02:00
|
|
|
LIBDNET_INSTALL_TARGET_OPT = $(LIBDNET_MAKE_OPT) DESTDIR=$(TARGET_DIR) INSTALL_STRIP_FLAG=-s install-exec
|
|
|
|
LIBDNET_INSTALL_STAGING_OPT = $(LIBDNET_MAKE_OPT) DESTDIR=$(STAGING_DIR) install
|
|
|
|
endif
|
|
|
|
|
2010-09-01 22:46:54 +02:00
|
|
|
# Needed for autoreconf to work properly
|
|
|
|
define LIBDNET_FIXUP_ACINCLUDE_M4
|
|
|
|
ln -sf config/acinclude.m4 $(@D)
|
|
|
|
endef
|
2008-09-04 07:50:31 +02:00
|
|
|
|
2010-09-01 22:46:54 +02:00
|
|
|
LIBDNET_POST_EXTRACT_HOOKS += LIBDNET_FIXUP_ACINCLUDE_M4
|
2008-09-04 07:50:31 +02:00
|
|
|
|
2010-12-22 18:22:49 +01:00
|
|
|
define LIBDNET_REMOVE_CONFIG_SCRIPT
|
|
|
|
$(RM) -f $(TARGET_DIR)/usr/bin/dnet-config
|
|
|
|
endef
|
|
|
|
|
|
|
|
ifneq ($(BR2_HAVE_DEVFILES),y)
|
|
|
|
LIBDNET_POST_INSTALL_TARGET_HOOKS += LIBDNET_REMOVE_CONFIG_SCRIPT
|
|
|
|
endif
|
|
|
|
|
2010-09-01 22:46:54 +02:00
|
|
|
$(eval $(call AUTOTARGETS,package,libdnet))
|