package/zic: bump version to 2015e
[buildroot-gz.git] / package / libdnet / libdnet.mk
blobf4e7a74ce0afe5bc2e3650f6028df16a245c5344
1 ################################################################################
3 # libdnet
5 ################################################################################
7 LIBDNET_VERSION = 1.11
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
13 LIBDNET_CONF_OPTS = \
14 --with-gnu-ld \
15 --with-check=no
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
23 endif
25 # Needed for autoreconf to work properly
26 define LIBDNET_FIXUP_ACINCLUDE_M4
27 ln -sf config/acinclude.m4 $(@D)
28 endef
30 LIBDNET_POST_EXTRACT_HOOKS += LIBDNET_FIXUP_ACINCLUDE_M4
32 define LIBDNET_REMOVE_CONFIG_SCRIPT
33 $(RM) -f $(TARGET_DIR)/usr/bin/dnet-config
34 endef
36 LIBDNET_POST_INSTALL_TARGET_HOOKS += LIBDNET_REMOVE_CONFIG_SCRIPT
38 $(eval $(autotools-package))