2009-01-03 04:34:24 +00:00
#
# Copyright (C) 2008 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := cython
PKG_VERSION := 0.10.3
PKG_RELEASE := 1
PKG_SOURCE := Cython-$( PKG_VERSION) .tar.gz
PKG_SOURCE_URL := http://www.cython.org/
PKG_BUILD_DIR := $( BUILD_DIR) /Cython-$( PKG_VERSION)
2009-01-04 19:24:38 +00:00
PKG_BUILD_DEPENDS := python
2009-01-03 04:34:24 +00:00
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
- i n c l u d e $( if $ ( DUMP ) ,,$ ( STAGING_DIR ) /mk /python -package .mk )
d e f i n e P a c k a g e / c y t h o n
SUBMENU:= Python
SECTION:= lang
CATEGORY:= Languages
TITLE:= cython
URL:= http://www.cython.org
2009-03-06 20:27:09 +00:00
DEPENDS:= +python-mini
2009-01-03 04:34:24 +00:00
e n d e f
d e f i n e P a c k a g e / c y t h o n / d e s c r i p t i o n
Cython is a language that should make writing C extensions for the Python language easier
e n d e f
d e f i n e B u i l d / C o m p i l e
2009-01-04 03:11:33 +00:00
# <--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.
$( call Build/Compile/PyMod,,install --no-cython-compile --prefix= " $( PKG_INSTALL_DIR) /usr " )
2009-01-03 04:34:24 +00:00
e n d e f
d e f i n e B u i l d / I n s t a l l D e v
$( INSTALL_DIR) $( 1) $( PYTHON_PKG_DIR)
$( CP) \
$( PKG_INSTALL_DIR) $( PYTHON_PKG_DIR) /* \
$( 1) $( PYTHON_PKG_DIR)
e n d e f
$( eval $ ( call BuildPackage ,cython ) )