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