2 # Copyright (C) 2007-2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://pyevent.googlecode.com
/files
/
17 PKG_MD5SUM
:=584912c92d08bf005283fb29a47a6e4d
19 PKG_BUILD_DEPENDS
:=python
21 include $(INCLUDE_DIR
)/package.mk
22 -include $(if
$(DUMP
),,$(STAGING_DIR
)/mk
/python-package.mk
)
24 define Package
/python-event
28 TITLE
:=Python interface to libevent
29 URL
:=http
://code.google.com
/p
/pyevent
/
30 DEPENDS
:=python-core
+libevent
33 define PyPackage
/python-event
/filespec
34 +|
$(PYTHON_PKG_DIR
)/event.so
38 $(if
$(Build
/Compile
/PyMod
),,@echo Python packaging code not found.
; false
)
39 $(call Build
/Compile
/PyMod
,.
, \
40 install --prefix="$(PKG_INSTALL_DIR)/usr", \
41 LIBEVENT_HOME
="$(STAGING_DIR)/usr/lib" \
45 $(eval
$(call PyPackage
,python-event
))
46 $(eval
$(call BuildPackage
,python-event
))