diff options
author | Hamish Moffatt <hamish@cloud.net.au> | 2008-09-04 05:50:31 +0000 |
---|---|---|
committer | Hamish Moffatt <hamish@cloud.net.au> | 2008-09-04 05:50:31 +0000 |
commit | add5629d4af26933bb8f1a22da395f0b3d8cf87d (patch) | |
tree | 0d438ea682f884f0a3c9847ac2e1f31b52f46f8b /package/libdnet/libdnet.mk | |
parent | 87f0d783ff4b5c6e16f84a4f35b28d278718b13e (diff) | |
download | buildroot-novena-add5629d4af26933bb8f1a22da395f0b3d8cf87d.tar.gz buildroot-novena-add5629d4af26933bb8f1a22da395f0b3d8cf87d.zip |
New package for dnet, a wrapper library for getting access to kernel network information
and an optional Python module for the same.
Diffstat (limited to 'package/libdnet/libdnet.mk')
-rw-r--r-- | package/libdnet/libdnet.mk | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/package/libdnet/libdnet.mk b/package/libdnet/libdnet.mk new file mode 100644 index 000000000..83b904952 --- /dev/null +++ b/package/libdnet/libdnet.mk @@ -0,0 +1,29 @@ +############################################################# +# +# 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 +LIBDNET_CONF_OPT = --with-gnu-ld --enable-shared --enable-static +LIBDNET_DEPENDENCIES = uclibc + +ifneq ($(BR2_PACKAGE_LIBDNET_PYTHON),) +LIBDNET_DEPENDENCIES += python +LIBDNET_CONF_OPT += --with-python +LIBDNET_MAKE_OPT = PYTHON=python$(PYTHON_VERSION_SHORT) PYINCDIR=$(STAGING_DIR)/usr/include/python$(PYTHON_VERSION_SHORT) +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 + +$(eval $(call AUTOTARGETS,package,libdnet)) + +$(LIBDNET_HOOK_POST_EXTRACT): + ln -sf config/acinclude.m4 $(LIBDNET_DIR) + touch $@ + |