add libtool fixes, remove uneeded packages files, cleanup
[openwrt/svn-archive/archive.git] / lang / twisted / Makefile
1 #
2 # Copyright (C) 2006 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:=twisted
12 PKG_VERSION:=2.5.0
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=Twisted-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://tmrc.mit.edu/mirror/twisted/Twisted/2.5
17 PKG_MD5SUM:=56df2ae66db57932515a491c03bf514f
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/Twisted-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22 include ../python/python-package.mk
23
24 define PyPackage/twisted/default
25 URL:=http://twistedmatrix.com/
26 endef
27
28 define PyPackage/twisted/default/description
29 Twisted is a networking engine written in Python, supporting numerous
30 protocols. It contains a web server, numerous chat clients, chat servers,
31 mail servers, and more.
32 endef
33
34 define PyPackage/twisted
35 $(call PyPackage/twisted/default)
36 MENU:=1
37 TITLE:=Python networking engine
38 DEPENDS+= +zope-interface
39 endef
40
41 define PyPackage/twisted-conch
42 $(call PyPackage/twisted/default)
43 TITLE:=Twisted - Conch
44 DEPENDS+= twisted
45 endef
46
47 define PyPackage/twisted-lore
48 $(call PyPackage/twisted/default)
49 TITLE:=Twisted - Lore
50 DEPENDS+= twisted
51 endef
52
53 define PyPackage/twisted-mail
54 $(call PyPackage/twisted/default)
55 TITLE:=Twisted - Mail
56 DEPENDS+= twisted
57 endef
58
59 define PyPackage/twisted-names
60 $(call PyPackage/twisted/default)
61 TITLE:=Twisted - Names
62 DEPENDS+= twisted
63 endef
64
65 define PyPackage/twisted-news
66 $(call PyPackage/twisted/default)
67 TITLE:=Twisted - News
68 DEPENDS+= twisted
69 endef
70
71 define PyPackage/twisted-runner
72 $(call PyPackage/twisted/default)
73 TITLE:=Twisted - Runner
74 DEPENDS+= twisted
75 endef
76
77 define PyPackage/twisted-web
78 $(call PyPackage/twisted/default)
79 TITLE:=Twisted - Web
80 DEPENDS+= twisted
81 endef
82
83 define PyPackage/twisted-words
84 $(call PyPackage/twisted/default)
85 TITLE:=Twisted - Words
86 DEPENDS+= twisted
87 endef
88
89 define PyPackage/zope-interface
90 $(call PyPackage/twisted/default)
91 TITLE:=Zope interface
92 DESCRIPTION:=zope-interface
93 endef
94
95 TWISTED_SUPPROJECTS:=core
96
97 ZOPE_IF_VER=3.3.0
98
99 ifneq ($(SDK)$(CONFIG_PACKAGE_twisted-conch),)
100 TWISTED_SUBPROJECTS+=conch
101 endif
102 ifneq ($(SDK)$(CONFIG_PACKAGE_twisted-lore),)
103 TWISTED_SUBPROJECTS+=lore
104 endif
105 ifneq ($(SDK)$(CONFIG_PACKAGE_twisted-mail),)
106 TWISTED_SUBPROJECTS+=mail
107 endif
108 ifneq ($(SDK)$(CONFIG_PACKAGE_twisted-names),)
109 TWISTED_SUBPROJECTS+=names
110 endif
111 ifneq ($(SDK)$(CONFIG_PACKAGE_twisted-news),)
112 TWISTED_SUBPROJECTS+=news
113 endif
114 ifneq ($(SDK)$(CONFIG_PACKAGE_twisted-runner),)
115 TWISTED_SUBPROJECTS+=runner
116 endif
117 ifneq ($(SDK)$(CONFIG_PACKAGE_twisted-web),)
118 TWISTED_SUBPROJECTS+=web
119 endif
120 ifneq ($(SDK)$(CONFIG_PACKAGE_twisted-words),)
121 TWISTED_SUBPROJECTS+=words
122 endif
123
124
125 define Build/Configure
126 endef
127
128 define PyPackage/twisted/filespec
129 +|/usr/bin/mktap
130 +|/usr/bin/twistd
131 +|$(PYTHON_PKG_DIR)/twisted/application
132 +|$(PYTHON_PKG_DIR)/twisted/copyright.py
133 +|$(PYTHON_PKG_DIR)/twisted/cred
134 +|$(PYTHON_PKG_DIR)/twisted/enterprise
135 +|$(PYTHON_PKG_DIR)/twisted/im.py
136 +|$(PYTHON_PKG_DIR)/twisted/__init__.py
137 +|$(PYTHON_PKG_DIR)/twisted/internet
138 +|$(PYTHON_PKG_DIR)/twisted/manhole
139 +|$(PYTHON_PKG_DIR)/twisted/persisted
140 +|$(PYTHON_PKG_DIR)/twisted/plugin.py
141 +|$(PYTHON_PKG_DIR)/twisted/protocols
142 +|$(PYTHON_PKG_DIR)/twisted/python
143 +|$(PYTHON_PKG_DIR)/twisted/scripts
144 +|$(PYTHON_PKG_DIR)/twisted/spread
145 +|$(PYTHON_PKG_DIR)/twisted/tap
146 +|$(PYTHON_PKG_DIR)/twisted/trial
147 -|$(PYTHON_PKG_DIR)/twisted/trial/test
148 +|$(PYTHON_PKG_DIR)/twisted/_version.py
149 +|$(PYTHON_PKG_DIR)/twisted/plugins/dropin.cache
150 +|$(PYTHON_PKG_DIR)/twisted/plugins/__init__.py
151 +|$(PYTHON_PKG_DIR)/twisted/plugins/notestplugin.py
152 +|$(PYTHON_PKG_DIR)/twisted/plugins/testplugin.py
153 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_ftp.py
154 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_inet.py
155 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_manhole.py
156 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_portforward.py
157 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_reactors.py
158 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_socks.py
159 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_telnet.py
160 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_trial.py
161 endef
162
163 define PyPackage/twisted-conch/filespec
164 +|$(PYTHON_PKG_DIR)/twisted/conch
165 -|$(PYTHON_PKG_DIR)/twisted/conch/test
166 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_conch.py
167 endef
168
169 define PyPackage/twisted-lore/filespec
170 +|$(PYTHON_PKG_DIR)/twisted/lore
171 -|$(PYTHON_PKG_DIR)/twisted/lore/test
172 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_lore.py
173 endef
174
175 define PyPackage/twisted-mail/filespec
176 +|$(PYTHON_PKG_DIR)/twisted/mail
177 -|$(PYTHON_PKG_DIR)/twisted/mail/test
178 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_mail.py
179 endef
180
181 define PyPackage/twisted-names/filespec
182 +|$(PYTHON_PKG_DIR)/twisted/names
183 -|$(PYTHON_PKG_DIR)/twisted/names/test
184 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_names.py
185 endef
186
187 define PyPackage/twisted-news/filespec
188 +|$(PYTHON_PKG_DIR)/twisted/news
189 -|$(PYTHON_PKG_DIR)/twisted/news/test
190 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_news.py
191 endef
192
193 define PyPackage/twisted-runner/filespec
194 +|$(PYTHON_PKG_DIR)/twisted/runner
195 endef
196
197 define PyPackage/twisted-web/filespec
198 +|$(PYTHON_PKG_DIR)/twisted/web
199 -|$(PYTHON_PKG_DIR)/twisted/web/test
200 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_web.py
201 endef
202
203 define PyPackage/twisted-words/filespec
204 +|$(PYTHON_PKG_DIR)/twisted/words
205 -|$(PYTHON_PKG_DIR)/twisted/words/test
206 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_words.py
207 endef
208
209 define PyPackage/zope-interface/filespec
210 +|$(PYTHON_PKG_DIR)/zope
211 -|$(PYTHON_PKG_DIR)/zope/interface/tests
212 endef
213
214 define Build/Compile
215 $(call Build/Compile/PyMod,., \
216 install --prefix="$(PKG_INSTALL_DIR)/usr" --no-compile, \
217 TWISTED_SUBPROJECTS="$(TWISTED_SUBPROJECTS)" \
218 )
219 $(call Build/Compile/PyMod,zope.interface-$(ZOPE_IF_VER), \
220 install --prefix="$(PKG_INSTALL_DIR)/usr" --no-compile, \
221 )
222 $(SED) 's,#!$(PYTHON),#!/usr/bin/python,' $(PKG_INSTALL_DIR)/usr/bin/*
223 endef
224
225 $(eval $(call PyPackage,twisted))
226 $(eval $(call PyPackage,twisted-conch))
227 $(eval $(call PyPackage,twisted-lore))
228 $(eval $(call PyPackage,twisted-mail))
229 $(eval $(call PyPackage,twisted-names))
230 $(eval $(call PyPackage,twisted-news))
231 $(eval $(call PyPackage,twisted-runner))
232 $(eval $(call PyPackage,twisted-web))
233 $(eval $(call PyPackage,twisted-words))
234 $(eval $(call PyPackage,zope-interface))