ee21467863
Change the url to the github ofalk repository (SF's repo is MIA; now everyone and their distros switched over to the Github-hosted fork). Depend on python3 and host-python3-cython for python bindings. Remove upstream patches; rework python-makefile.patch to adhere to git formatting and refresh for 1.14. Update License hash due to year changes. Signed-off-by: Adam Duskett <aduskett@gmail.com> [yann.morin.1998@free.fr: rework commit log, explain switch to Github] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
40 lines
1.2 KiB
Makefile
40 lines
1.2 KiB
Makefile
################################################################################
|
|
#
|
|
# libdnet
|
|
#
|
|
################################################################################
|
|
|
|
LIBDNET_VERSION = 1.14
|
|
LIBDNET_SITE = $(call github,ofalk,libdnet,libdnet-$(LIBDNET_VERSION))
|
|
LIBDNET_LICENSE = BSD-3-Clause
|
|
LIBDNET_LICENSE_FILES = LICENSE
|
|
LIBDNET_INSTALL_STAGING = YES
|
|
LIBDNET_AUTORECONF = YES
|
|
LIBDNET_CONF_OPTS = \
|
|
--with-gnu-ld \
|
|
--with-check=no
|
|
LIBDNET_CONFIG_SCRIPTS = dnet-config
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDNET_PYTHON),y)
|
|
LIBDNET_DEPENDENCIES += host-python3-cython python3
|
|
LIBDNET_CONF_OPTS += --with-python=$(HOST_DIR)/bin
|
|
LIBDNET_MAKE_ENV += $(PKG_PYTHON_DISTUTILS_ENV)
|
|
LIBDNET_INSTALL_TARGET_OPTS = $(LIBDNET_MAKE_OPTS) DESTDIR=$(TARGET_DIR) INSTALL_STRIP_FLAG=-s install-exec
|
|
LIBDNET_INSTALL_STAGING_OPTS = $(LIBDNET_MAKE_OPTS) DESTDIR=$(STAGING_DIR) install
|
|
endif
|
|
|
|
# Needed for autoreconf to work properly
|
|
define LIBDNET_FIXUP_ACINCLUDE_M4
|
|
ln -sf config/acinclude.m4 $(@D)
|
|
endef
|
|
|
|
LIBDNET_POST_EXTRACT_HOOKS += LIBDNET_FIXUP_ACINCLUDE_M4
|
|
|
|
define LIBDNET_REMOVE_CONFIG_SCRIPT
|
|
$(RM) -f $(TARGET_DIR)/usr/bin/dnet-config
|
|
endef
|
|
|
|
LIBDNET_POST_INSTALL_TARGET_HOOKS += LIBDNET_REMOVE_CONFIG_SCRIPT
|
|
|
|
$(eval $(autotools-package))
|