branch Attitude Adjustment packages
[12.09/packages.git] / lang / cython / Makefile
1 #
2 # Copyright (C) 2009-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=cython
11 PKG_VERSION:=0.10.3
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=Cython-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.cython.org/
16 PKG_BUILD_DIR:=$(BUILD_DIR)/Cython-$(PKG_VERSION)
17 PKG_MD5SUM:=684103ed37472d9beef3a38e0d5c431d
18
19 PKG_BUILD_DEPENDS:=python
20
21 include $(INCLUDE_DIR)/package.mk
22 $(call include_mk, python-package.mk)
23
24 define Package/cython
25   SUBMENU:=Python
26   SECTION:=lang
27   CATEGORY:=Languages
28   TITLE:=cython
29   URL:=http://www.cython.org
30   DEPENDS:=+python-mini
31 endef
32
33 define Package/cython/description
34   Cython is a language that should make writing C extensions for the Python language easier
35 endef
36
37 define Build/Compile
38         # <--no-cython-compile> required, otherwise setup.py calls the target-gcc to create so-files which obviously can't be used by <python> on the host system.
39         $(call Build/Compile/PyMod,,install --no-cython-compile --prefix="$(PKG_INSTALL_DIR)/usr")
40 endef
41
42 define Build/InstallDev
43         $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
44         $(CP) \
45             $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
46             $(1)$(PYTHON_PKG_DIR)
47 endef
48
49 $(eval $(call BuildPackage,cython))