massive python changes:
[openwrt/svn-archive/archive.git] / lang / egenix-mx / Makefile
1 #
2 # Copyright (C) 2007 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$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=egenix-mx
12 PKG_VERSION:=2.0.6
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-base-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.egenix.com/files/python/
17 PKG_MD5SUM:=66841151728a06f92d0b8dd2ed317a29
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-base-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22 include ../python/python-package.mk
23
24 define PyPackage/egenix-mx
25 TITLE:=Egenix mxBase
26 URL:=http://www.egenix.com/products/python/mxBase/
27 endef
28
29 define PyPackage/egenix-mx/description
30 This package contains a set of base packages from Egenix required by other
31 python packages.
32 endef
33
34 define Build/Compile
35 $(call Build/Compile/PyMod,., \
36 build --build-lib="foo", \
37 BASECFLAGS="$(TARGET_CFLAGS)" \
38 OPT="" \
39 )
40 endef
41
42 define Build/InstallDev
43 mkdir -p $(STAGING_DIR)$(PYTHON_PKG_DIR)/mx/BeeBase/mxBeeBase
44 $(CP) \
45 $(PKG_BUILD_DIR)/mx/BeeBase/mxBeeBase/mxh.h \
46 $(PKG_BUILD_DIR)/mx/BeeBase/mxBeeBase/btr.h \
47 $(PKG_BUILD_DIR)/mx/BeeBase/mxBeeBase/mxBeeBase.h \
48 $(STAGING_DIR)$(PYTHON_PKG_DIR)/mx/BeeBase/mxBeeBase/
49 mkdir -p $(STAGING_DIR)$(PYTHON_PKG_DIR)/mx/DateTime/mxDateTime
50 $(CP) \
51 $(PKG_BUILD_DIR)/mx/DateTime/mxDateTime/mxh.h \
52 $(PKG_BUILD_DIR)/mx/DateTime/mxDateTime/mxDateTime.h \
53 $(STAGING_DIR)$(PYTHON_PKG_DIR)/mx/DateTime/mxDateTime/
54 mkdir -p $(STAGING_DIR)$(PYTHON_PKG_DIR)/mx/Proxy/mxProxy
55 $(CP) \
56 $(PKG_BUILD_DIR)/mx/Proxy/mxProxy/mxh.h \
57 $(PKG_BUILD_DIR)/mx/Proxy/mxProxy/mxProxy.h \
58 $(STAGING_DIR)$(PYTHON_PKG_DIR)/mx/Proxy/mxProxy/
59 mkdir -p $(STAGING_DIR)$(PYTHON_PKG_DIR)/mx/Queue/mxQueue
60 $(CP) \
61 $(PKG_BUILD_DIR)/mx/Queue/mxQueue/mxh.h \
62 $(PKG_BUILD_DIR)/mx/Queue/mxQueue/mxQueue.h \
63 $(STAGING_DIR)$(PYTHON_PKG_DIR)/mx/Queue/mxQueue/
64 mkdir -p $(STAGING_DIR)$(PYTHON_PKG_DIR)/mx/TextTools/mxTextTools
65 $(CP) \
66 $(PKG_BUILD_DIR)/mx/TextTools/mxTextTools/mxh.h \
67 $(PKG_BUILD_DIR)/mx/TextTools/mxTextTools/mxbmse.h \
68 $(PKG_BUILD_DIR)/mx/TextTools/mxTextTools/mxte.h \
69 $(PKG_BUILD_DIR)/mx/TextTools/mxTextTools/mxTextTools.h \
70 $(STAGING_DIR)$(PYTHON_PKG_DIR)/mx/TextTools/mxTextTools/
71 mkdir -p $(STAGING_DIR)$(PYTHON_PKG_DIR)/mx/Tools/mxTools
72 $(CP) \
73 $(PKG_BUILD_DIR)/mx/Tools/mxTools/mxh.h \
74 $(PKG_BUILD_DIR)/mx/Tools/mxTools/mxTools.h \
75 $(STAGING_DIR)$(PYTHON_PKG_DIR)/mx/Tools/mxTools/
76 endef
77
78 define Build/UninstallDev
79 rm -rf $(STAGING_DIR)$(PYTHON_PKG_DIR)/mx
80 endef
81
82 define PyPackage/egenix-mx/install
83 $(CP) $(PKG_BUILD_DIR)/foo/mx $(1)$(PYTHON_PKG_DIR)/
84 ln -sf $(1)$(PYTHON_PKG_DIR)/mx/BeeBase/ExitFunctions.py \
85 $(1)$(PYTHON_PKG_DIR)/mx/Misc/
86 rm -rf $(1)$(PYTHON_PKG_DIR)/mx/*/Examples
87 endef
88
89 $(eval $(call PyPackage,egenix-mx))