added XOrg video drivers for i810, ati, nv and fbdev
[openwrt/svn-archive/archive.git] / lang / yapsnmp / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=yapsnmp
12 PKG_VERSION:=0.7.8
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
17 PKG_MD5SUM:=8a3e9a5b814388d7907c639105cb2365
18
19 include $(INCLUDE_DIR)/package.mk
20 include ../python/python-package.mk
21
22 define PyPackage/yapsnmp
23 TITLE:=Python interface to Net-SNMP
24 URL:=http://yapsnmp.sourceforge.net/
25 DEPENDS+= +libnetsnmp
26 endef
27
28 define PyPackage/yapsnmp/description
29 This package contains a Python SNMP module based on the net-snmp (formerly
30 known as ucd-snmp) library. It's composed of a low level interface to the
31 library, created using SWIG, and a higher level python module removing all
32 the complexity out of dealing with SNMP.
33 endef
34
35 define PyPackage/yapsnmp/filespec
36 +|$(PYTHON_PKG_DIR)/netsnmp.py
37 +|$(PYTHON_PKG_DIR)/netsnmpc.so
38 +|$(PYTHON_PKG_DIR)/yapsnmp.py
39 endef
40
41 CONFIGURE_ARGS += \
42 --enable-shared \
43 --enable-static \
44 --enable-site-packages-prefix="$(PYTHON_PKG_DIR)" \
45
46 CONFIGURE_VARS += \
47 ac_cv_file__usr_include_net_snmp_library="yes" \
48 ac_cv_prog_SWIG="echo MISSING SWIG" \
49
50 define Build/Configure
51 $(call Build/Configure/Default)
52 $(call libtool_disable_rpath)
53 endef
54
55 define Build/Compile
56 $(MAKE) -C $(PKG_BUILD_DIR) \
57 INCLUDES="-I$(PYTHON_INC_DIR)" \
58 SNMPINCDIR="$(STAGING_DIR)/usr/include/net-snmp/library" \
59 all
60 $(call libtool_fixup_libdir,$(PKG_INSTALL_DIR))
61 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
62 endef
63
64 $(eval $(call PyPackage,yapsnmp))