Use this new PyMod template
[openwrt/svn-archive/archive.git] / libs / pyevent / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=pyevent
4 PKG_VERSION:=0.3
5 PKG_RELEASE:=1
6
7 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
8 PKG_SOURCE_URL:=http://pyevent.googlecode.com/files/
9 PKG_MD5SUM:=584912c92d08bf005283fb29a47a6e4d
10 PKG_CAT:=zcat
11
12 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
13 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
14
15 include $(INCLUDE_DIR)/package.mk
16
17 define Package/pyevent
18 SECTION:=libs
19 CATEGORY:=Libraries
20 DEPENDS:=+libevent +python
21 TITLE:=Pyevent
22 MAINTAINER:=jjones@pavlovmedia.com
23 DESCRIPTION:=\
24 Python extension module for libevent
25 URL=http://code.google.com/p/pyevent/
26 endef
27
28 define Build/Compile
29 $(call Build/Compile/PyMod,\
30 LIBEVENT_HOME='$(STAGING_DIR)/usr/lib' \
31 ,\
32 install \
33 )
34 endef
35
36 define Package/pyevent/install
37 $(CP) -R $(PKG_INSTALL_DIR)/* $(1)
38 endef
39
40 $(eval $(call BuildPackage,pyevent))