2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2008-09-04 07:50:31 +02:00
|
|
|
#
|
|
|
|
# libdnet
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2008-09-04 07:50:31 +02:00
|
|
|
|
|
|
|
LIBDNET_VERSION = 1.11
|
2012-08-26 01:52:48 +02:00
|
|
|
LIBDNET_SITE = http://downloads.sourceforge.net/project/libdnet/libdnet/libdnet-$(LIBDNET_VERSION)
|
2017-03-30 15:43:38 +02:00
|
|
|
LIBDNET_LICENSE = BSD-3-Clause
|
2012-08-11 22:10:18 +02:00
|
|
|
LIBDNET_LICENSE_FILES = LICENSE
|
2008-09-04 07:50:31 +02:00
|
|
|
LIBDNET_INSTALL_STAGING = YES
|
|
|
|
LIBDNET_AUTORECONF = YES
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBDNET_CONF_OPTS = \
|
2009-01-24 07:25:40 +01:00
|
|
|
--with-gnu-ld \
|
|
|
|
--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
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBDNET_CONF_OPTS += --with-python
|
2014-09-27 21:32:38 +02:00
|
|
|
LIBDNET_MAKE_OPTS = PYINCDIR=$(STAGING_DIR)/usr/include/python$(PYTHON_VERSION_MAJOR) PYLIBDIR=$(STAGING_DIR)/usr/lib
|
2014-09-27 21:32:40 +02:00
|
|
|
LIBDNET_INSTALL_TARGET_OPTS = $(LIBDNET_MAKE_OPTS) DESTDIR=$(TARGET_DIR) INSTALL_STRIP_FLAG=-s install-exec
|
2014-09-27 21:32:41 +02:00
|
|
|
LIBDNET_INSTALL_STAGING_OPTS = $(LIBDNET_MAKE_OPTS) DESTDIR=$(STAGING_DIR) install
|
2008-09-04 07:50:31 +02:00
|
|
|
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
|
|
|
|
|
|
|
|
LIBDNET_POST_INSTALL_TARGET_HOOKS += LIBDNET_REMOVE_CONFIG_SCRIPT
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|