29e60ed2e37a5624059d4e40296520dec030e6dc
[openwrt/svn-archive/archive.git] / lang / cython / Makefile
1 #
2 # Copyright (C) 2008 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: Makefile 13829 2009-01-03 00:28:00Z mirko $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=cython
12 PKG_VERSION:=0.10.3
13 PKG_RELEASE:=1
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
18 PKG_BUILD_DEPENDS:=python
19
20 include $(INCLUDE_DIR)/package.mk
21 -include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk)
22
23 define Package/cython
24 SUBMENU:=Python
25 SECTION:=lang
26 CATEGORY:=Languages
27 TITLE:=cython
28 URL:=http://www.cython.org
29 DEPENDS:=python-core
30 endef
31
32 define Package/cython/description
33 Cython is a language that should make writing C extensions for the Python language easier
34 endef
35
36 define Build/Compile
37 # <--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.
38 $(call Build/Compile/PyMod,,install --no-cython-compile --prefix="$(PKG_INSTALL_DIR)/usr")
39 endef
40
41 define Build/InstallDev
42 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
43 $(CP) \
44 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
45 $(1)$(PYTHON_PKG_DIR)
46 endef
47
48 $(eval $(call BuildPackage,cython))