2008-10-08 17:27:59 +00:00
|
|
|
#
|
2010-02-18 13:10:21 +00:00
|
|
|
# Copyright (C) 2006-2010 OpenWrt.org
|
2006-07-22 15:57:28 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libdnet
|
2009-06-21 11:19:59 +00:00
|
|
|
PKG_VERSION:=1.11
|
2010-02-18 13:10:21 +00:00
|
|
|
PKG_RELEASE:=2
|
2006-07-22 15:57:28 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=@SF/$(PKG_NAME)
|
2009-06-21 11:19:59 +00:00
|
|
|
PKG_MD5SUM:=04c394ed8e1e7fc455456e79e908916d
|
2010-02-18 13:10:21 +00:00
|
|
|
|
2008-10-08 18:01:09 +00:00
|
|
|
PKG_FIXUP:=libtool
|
2010-02-18 13:10:21 +00:00
|
|
|
PKG_INSTALL:=1
|
2006-07-22 15:57:28 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2009-06-21 11:19:59 +00:00
|
|
|
define Package/libdnet/Default
|
2006-07-22 15:57:28 +00:00
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=Low-level network library
|
|
|
|
URL:=http://sourceforge.net/projects/libdnet/
|
|
|
|
endef
|
|
|
|
|
2009-06-21 11:19:59 +00:00
|
|
|
define Package/libdnet/Default/description
|
|
|
|
libdnet is a library of simplified, portable interface to several
|
2007-10-14 04:32:56 +00:00
|
|
|
low-level networking routines.
|
|
|
|
endef
|
|
|
|
|
2009-06-21 11:19:59 +00:00
|
|
|
define Package/libdnet
|
|
|
|
$(call Package/libdnet/Default)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libdnet/description
|
|
|
|
$(call Package/libdnet/Default/description)
|
|
|
|
endef
|
|
|
|
|
2007-06-07 17:46:53 +00:00
|
|
|
define Package/pydnet
|
2009-06-21 11:19:59 +00:00
|
|
|
$(call Package/libdnet/Default)
|
2009-03-06 20:27:09 +00:00
|
|
|
DEPENDS:=libdnet +python-mini
|
2007-06-07 17:46:53 +00:00
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/pydnet/description
|
2009-06-21 11:19:59 +00:00
|
|
|
$(call Package/libdnet/Default/description)
|
|
|
|
This package contains the python dnet library.
|
2007-10-14 04:32:56 +00:00
|
|
|
endef
|
|
|
|
|
2008-08-06 22:43:15 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
2007-07-31 10:42:05 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
--without-check \
|
|
|
|
--without-python
|
2008-10-08 17:27:59 +00:00
|
|
|
|
2007-07-31 10:42:05 +00:00
|
|
|
CONFIGURE_VARS += \
|
|
|
|
ac_cv_dnet_bsd_bpf=no
|
2006-07-22 15:57:28 +00:00
|
|
|
|
|
|
|
define Build/InstallDev
|
2008-10-08 17:27:59 +00:00
|
|
|
$(INSTALL_DIR) $(2)/bin
|
|
|
|
$(INSTALL_BIN) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/bin/dnet-config \
|
|
|
|
$(2)/bin/
|
|
|
|
$(SED) \
|
|
|
|
's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
|
|
|
|
$(2)/bin/dnet-config
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
|
|
$(INSTALL_DATA)\
|
|
|
|
$(PKG_INSTALL_DIR)/usr/include/dnet.h \
|
|
|
|
$(1)/usr/include/
|
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/include/dnet \
|
|
|
|
$(1)/usr/include/
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2009-01-04 00:06:33 +00:00
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/libdnet.{la,a,so*} \
|
2008-10-08 17:27:59 +00:00
|
|
|
$(1)/usr/lib/
|
2006-07-22 15:57:28 +00:00
|
|
|
endef
|
|
|
|
|
2006-10-28 22:43:08 +00:00
|
|
|
define Package/libdnet/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2009-01-04 00:06:33 +00:00
|
|
|
$(CP) \
|
2008-10-08 17:27:59 +00:00
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/libdnet.so.* \
|
|
|
|
$(1)/usr/lib/
|
|
|
|
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2008-10-08 17:27:59 +00:00
|
|
|
$(INSTALL_BIN) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/sbin/dnet \
|
|
|
|
$(1)/usr/sbin/
|
2006-10-28 22:43:08 +00:00
|
|
|
endef
|
|
|
|
|
2007-06-07 17:46:53 +00:00
|
|
|
define Package/pydnet/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
cd $(PKG_BUILD_DIR)/python; \
|
2007-07-31 10:42:05 +00:00
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
2007-06-07 17:46:53 +00:00
|
|
|
$(STAGING_DIR)/usr/bin/hostpython ./setup.py install \
|
|
|
|
--no-compile --prefix $(PKG_INSTALL_DIR)/usr
|
|
|
|
cp -a $(PKG_INSTALL_DIR)/usr/lib/python* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
2006-07-22 15:57:28 +00:00
|
|
|
$(eval $(call BuildPackage,libdnet))
|
2007-06-07 17:46:53 +00:00
|
|
|
$(eval $(call BuildPackage,pydnet))
|