add option to compile pydnet as part of libdnet

git-svn-id: svn://svn.openwrt.org/openwrt/packages@7523 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
pavlov
2007-06-07 17:46:53 +00:00
parent 4bb720d96d
commit faccee188f
2 changed files with 42 additions and 0 deletions

View File

@ -32,6 +32,17 @@ define Package/libdnet
URL:=http://sourceforge.net/projects/libdnet/
endef
define Package/pydnet
SECTION:=libs
DEPENDS:=libdnet +python
CATEGORY:=Libraries
TITLE:=Low-level network library
DESCRIPTION:=\
libdnet is a library of simplified, portable interface to several \\\
low-level networking routines.
URL:=http://sourceforge.net/projects/libdnet/
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); touch \
configure.in \
@ -81,4 +92,14 @@ define Package/libdnet/install
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/dnet $(1)/usr/sbin/
endef
define Package/pydnet/install
$(INSTALL_DIR) $(1)/usr/lib
cd $(PKG_BUILD_DIR)/python; \
$(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
$(eval $(call BuildPackage,libdnet))
$(eval $(call BuildPackage,pydnet))