Check include/pcap/ before include/ for pcap.h. Fixes #5046
[openwrt/svn-archive/archive.git] / lang / pypcap / Makefile
1 #
2 # Copyright (C) 2007-2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=pypcap
11 PKG_VERSION:=1.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://pypcap.googlecode.com/files
16 PKG_MD5SUM:=034c3cbbfa81aa19e8f685b767c65764
17
18 PKG_BUILD_DEPENDS:=python
19
20 include $(INCLUDE_DIR)/package.mk
21 -include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk)
22
23 define Package/python-pcap
24 SUBMENU:=Python
25 SECTION:=lang
26 CATEGORY:=Languages
27 TITLE:=Python interface to lipcap
28 URL:=http://code.google.com/p/pypcap/
29 DEPENDS:=+python-mini +libpcap
30 endef
31
32 define PyPackage/python-pcap/filespec
33 +|$(PYTHON_PKG_DIR)/pcap.so
34 endef
35
36 define Build/Compile
37 $(if $(Build/Compile/PyMod),,@echo Python packaging code not found.; false)
38 $(call Build/Compile/PyMod,., \
39 install --prefix="$(PKG_INSTALL_DIR)/usr", \
40 PCAP_HOME="$(STAGING_DIR)/usr" \
41 )
42 endef
43
44 $(eval $(call PyPackage,python-pcap))
45 $(eval $(call BuildPackage,python-pcap))