1 ################################################################################
5 ################################################################################
8 LIBDNET_SITE
= http
://downloads.sourceforge.net
/project
/libdnet
/libdnet
/libdnet-
$(LIBDNET_VERSION
)
9 LIBDNET_LICENSE
= BSD-3c
10 LIBDNET_LICENSE_FILES
= LICENSE
11 LIBDNET_INSTALL_STAGING
= YES
12 LIBDNET_AUTORECONF
= YES
17 ifneq ($(BR2_PACKAGE_LIBDNET_PYTHON
),)
18 LIBDNET_DEPENDENCIES
= python
19 LIBDNET_CONF_OPTS
+= --with-python
20 LIBDNET_MAKE_OPTS
= PYINCDIR
=$(STAGING_DIR
)/usr
/include/python
$(PYTHON_VERSION_MAJOR
) PYLIBDIR
=$(STAGING_DIR
)/usr
/lib
21 LIBDNET_INSTALL_TARGET_OPTS
= $(LIBDNET_MAKE_OPTS
) DESTDIR
=$(TARGET_DIR
) INSTALL_STRIP_FLAG
=-s install-exec
22 LIBDNET_INSTALL_STAGING_OPTS
= $(LIBDNET_MAKE_OPTS
) DESTDIR
=$(STAGING_DIR
) install
25 # Needed for autoreconf to work properly
26 define LIBDNET_FIXUP_ACINCLUDE_M4
27 ln
-sf config
/acinclude.m4
$(@D
)
30 LIBDNET_POST_EXTRACT_HOOKS
+= LIBDNET_FIXUP_ACINCLUDE_M4
32 define LIBDNET_REMOVE_CONFIG_SCRIPT
33 $(RM
) -f
$(TARGET_DIR
)/usr
/bin
/dnet-config
36 LIBDNET_POST_INSTALL_TARGET_HOOKS
+= LIBDNET_REMOVE_CONFIG_SCRIPT
38 $(eval
$(autotools-package
))