2 # Copyright (C) 2007-2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://pypcap.googlecode.com/files
16 PKG_MD5SUM:=034c3cbbfa81aa19e8f685b767c65764
18 PKG_BUILD_DEPENDS:=python
20 include $(INCLUDE_DIR)/package.mk
21 $(call include_mk, python-package.mk)
23 define Package/python-pcap
27 TITLE:=Python interface to lipcap
28 URL:=http://code.google.com/p/pypcap/
29 DEPENDS:=+python-mini +libpcap
32 define PyPackage/python-pcap/filespec
33 +|$(PYTHON_PKG_DIR)/pcap.so
36 TARGET_CFLAGS += -DHAVE_PCAP_FILE=1
39 $(if $(Build/Compile/PyMod),,@echo Python packaging code not found.; false)
40 $(call Build/Compile/PyMod,., \
41 install --prefix="$(PKG_INSTALL_DIR)/usr", \
42 PCAP_HOME="$(STAGING_DIR)/usr" \
46 $(eval $(call PyPackage,python-pcap))
47 $(eval $(call BuildPackage,python-pcap))