2014-04-11 05:39:54 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# python-pypcap
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2015-07-26 22:38:37 +02:00
|
|
|
PYTHON_PYPCAP_VERSION = 6f46e7bf29a648256ddc732a7d0ec83d3ffca390
|
|
|
|
PYTHON_PYPCAP_SITE = $(call github,dugsong,pypcap,$(PYTHON_PYPCAP_VERSION))
|
2017-03-30 15:43:38 +02:00
|
|
|
PYTHON_PYPCAP_LICENSE = BSD-3-Clause
|
2014-04-11 05:39:54 +02:00
|
|
|
PYTHON_PYPCAP_LICENSE_FILES = LICENSE
|
|
|
|
PYTHON_PYPCAP_SETUP_TYPE = distutils
|
|
|
|
PYTHON_PYPCAP_DEPENDENCIES = host-python-pyrex libpcap
|
|
|
|
|
|
|
|
define PYTHON_PYPCAP_CONFIGURE_CMDS
|
2017-07-05 13:14:19 +02:00
|
|
|
$(HOST_DIR)/bin/python2 $(HOST_DIR)/bin/pyrexc $(@D)/pcap.pyx
|
2014-04-11 05:39:54 +02:00
|
|
|
(cd $(@D); \
|
2017-07-05 13:14:19 +02:00
|
|
|
$(HOST_DIR)/bin/python setup.py \
|
2014-04-11 05:39:54 +02:00
|
|
|
config --with-pcap=$(STAGING_DIR)/usr)
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(python-package))
|