0492a2569f61fada71c1f77f513e586064a9fbbc
[openwrt/svn-archive/archive.git] / lang / pyevent / 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:=pyevent
12 PKG_VERSION:=0.3
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://pyevent.googlecode.com/files/
17 PKG_MD5SUM:=584912c92d08bf005283fb29a47a6e4d
18
19 include $(INCLUDE_DIR)/package.mk
20 include ../python/python-package.mk
21
22 define PyPackage/python-event
23 TITLE:=Python interface to libevent
24 URL=http://code.google.com/p/pyevent/
25 DEPENDS+= +libevent
26 endef
27
28 define PyPackage/python-event/filespec
29 +|$(PYTHON_PKG_DIR)/event.so
30 endef
31
32 define Build/Compile
33 $(call Build/Compile/PyMod,., \
34 install --prefix="$(PKG_INSTALL_DIR)/usr", \
35 LIBEVENT_HOME="$(STAGING_DIR)/usr/lib" \
36 )
37 endef
38
39 $(eval $(call PyPackage,python-event))