[packages] lang: use $(CP) & $(INSTALL_DIR)
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=cython
11 PKG_VERSION:=0.10.3
12 PKG_RELEASE:=1
13 PKG_SOURCE:=Cython-$(PKG_VERSION).tar.gz
14 PKG_SOURCE_URL:=http://www.cython.org/
15 PKG_BUILD_DIR:=$(BUILD_DIR)/Cython-$(PKG_VERSION)
16
17 PKG_BUILD_DEPENDS:=python
18
19 include $(INCLUDE_DIR)/package.mk
20 -include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk)
21
22 define Package/cython
23 SUBMENU:=Python
24 SECTION:=lang
25 CATEGORY:=Languages
26 TITLE:=cython
27 URL:=http://www.cython.org
28 DEPENDS:=+python-mini
29 endef
30
31 define Package/cython/description
32 Cython is a language that should make writing C extensions for the Python language easier
33 endef
34
35 define Build/Compile
36 # <--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.
37 $(call Build/Compile/PyMod,,install --no-cython-compile --prefix="$(PKG_INSTALL_DIR)/usr")
38 endef
39
40 define Build/InstallDev
41 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
42 $(CP) \
43 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
44 $(1)$(PYTHON_PKG_DIR)
45 endef
46
47 $(eval $(call BuildPackage,cython))