Blame view

buildroot/buildroot-2016.08.1/package/python-pypcap/python-pypcap.mk 721 Bytes
6b13f685e   김민수   BSP 최초 추가
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  ################################################################################
  #
  # python-pypcap
  #
  ################################################################################
  
  PYTHON_PYPCAP_VERSION = 6f46e7bf29a648256ddc732a7d0ec83d3ffca390
  PYTHON_PYPCAP_SITE = $(call github,dugsong,pypcap,$(PYTHON_PYPCAP_VERSION))
  PYTHON_PYPCAP_LICENSE = BSD-3c
  PYTHON_PYPCAP_LICENSE_FILES = LICENSE
  PYTHON_PYPCAP_SETUP_TYPE = distutils
  PYTHON_PYPCAP_DEPENDENCIES = host-python-pyrex libpcap
  
  define PYTHON_PYPCAP_CONFIGURE_CMDS
  	$(HOST_DIR)/usr/bin/python2 $(HOST_DIR)/usr/bin/pyrexc $(@D)/pcap.pyx
  	(cd $(@D); \
  		$(HOST_DIR)/usr/bin/python setup.py \
  		config --with-pcap=$(STAGING_DIR)/usr)
  endef
  
  $(eval $(python-package))