source: packages/lang/erlang/Makefile @ 32710

Last change on this file since 32710 was 32710, checked in by acinonyx, 4 years ago

[packages] erlang: Version bump to R15B01

Updated lang/erlang package with some adjustments for the new version.

Signed-off-by: Mark Wolfe <mark@…>
Signed-off-by: Vasilis Tsiligiannis <b_tsiligiannis@…>

File size: 8.3 KB
Line 
1#
2# Copyright (C) 2009 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=erlang
11PKG_VERSION:=R15B01
12PKG_RELEASE:=1
13
14PKG_SOURCE:=otp_src_$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:= http://www.erlang.org/download/ \
16        http://erlang.mirror.su.se/     
17PKG_MD5SUM:=f12d00f6e62b36ad027d6c0c08905fad
18
19PKG_BUILD_DEPENDS:=erlang/host openssl
20
21HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/otp_src_$(PKG_VERSION)
22PKG_BUILD_DIR:=$(BUILD_DIR)/otp_src_$(PKG_VERSION)
23
24include $(INCLUDE_DIR)/host-build.mk
25include $(INCLUDE_DIR)/package.mk
26
27define Package/erlang/Default
28  SUBMENU:=Erlang
29  SECTION:=lang
30  CATEGORY:=Languages
31  TITLE:=Erlang/OTP programming language
32  URL:=http://www.erlang.org/
33endef
34
35define Package/erlang/Default/description
36 Erlang/OTP is a general-purpose programming language and runtime
37 environment. Erlang has built-in support for concurrency, distribution
38 and fault tolerance.
39endef
40
41
42define Package/erlang
43$(call Package/erlang/Default)
44  DEPENDS+= +libncurses +librt +zlib
45  PROVIDES:= erlang-erts=5.9 erlang-kernel=2.15 erlang-sasl=2.2 erlang-stdlib=1.18
46endef
47
48define Package/erlang/description
49$(call Package/erlang/Default/description)
50 .
51 This package contains the runtime implementation and a minimal set of
52 modules (erts, kernel, sasl & stdlib).
53endef
54
55
56define Package/erlang-asn1
57$(call Package/erlang/Default)
58  TITLE:=Abstract Syntax Notation One (ASN.1) support
59  VERSION:=1.6.19
60  DEPENDS+= +erlang +erlang-syntax-tools
61endef
62
63define Package/erlang-asn1/description
64$(call Package/erlang/Default/description)
65 .
66 This Erlang/OTP package provides Abstract Syntax Notation One (ASN.1) 
67 support.
68endef
69
70
71define Package/erlang-compiler
72$(call Package/erlang/Default)
73  TITLE:=Byte code compiler
74  VERSION:=4.8
75  DEPENDS+= +erlang +erlang-hipe
76endef
77
78define Package/erlang-compiler/description
79$(call Package/erlang/Default/description)
80 .
81 This Erlang/OTP package provides a byte code compiler for Erlang which
82 produces highly compact code.
83endef
84
85
86define Package/erlang-crypto
87$(call Package/erlang/Default)
88  TITLE:=Cryptography support
89  VERSION:=2.1
90  DEPENDS+= +erlang +libopenssl
91endef
92
93define Package/erlang-crypto/description
94$(call Package/erlang/Default/description)
95 .
96 This Erlang/OTP package provides functions for computation of message
97 digests, and encryption and decryption functions.
98endef
99
100
101define Package/erlang-hipe
102$(call Package/erlang/Default)
103  TITLE:=High Performance Erlang
104  VERSION:=3.9
105  DEPENDS+= +erlang
106endef
107
108define Package/erlang-hipe/description
109$(call Package/erlang/Default/description)
110 .
111 This Erlang/OTP package provides HiPE (High Performance Erlang) 
112 support.
113endef
114
115
116define Package/erlang-inets
117$(call Package/erlang/Default)
118  TITLE:=Internet clients and servers
119  VERSION:=5.8
120  DEPENDS+= +erlang
121endef
122
123define Package/erlang-inets/description
124$(call Package/erlang/Default/description)
125 .
126 This Erlang/OTP package provides a container for Internet clients and
127 servers. Currently a FTP client, a HTTP client and server, and a tftp
128 client and server have been incorporated in Inets.
129endef
130
131
132define Package/erlang-mnesia
133$(call Package/erlang/Default)
134  TITLE:=Distributed database
135  VERSION:=4.6
136  DEPENDS+= +erlang
137endef
138
139define Package/erlang-mnesia/description
140$(call Package/erlang/Default/description)
141 .
142 This Erlang/OTP package provides a distributed DataBase Management
143 System (DBMS), appropriate for telecommunications applications and
144 other Erlang applications which require continuous operation and
145 exhibit soft real-time properties.
146endef
147
148
149define Package/erlang-runtime-tools
150$(call Package/erlang/Default)
151  TITLE:=Low-profile debugging/tracing tools
152  VERSION:=1.8.7
153  DEPENDS+= +erlang
154endef
155
156define Package/erlang-runtime-tools/description
157$(call Package/erlang/Default/description)
158 .
159 This Erlang/OTP package provides low footprint tracing/debugging tools
160 suitable for inclusion in a production system.
161endef
162
163
164define Package/erlang-snmp
165$(call Package/erlang/Default)
166  TITLE:=Simple Network Management Protocol (SNMP) support
167  VERSION:=4.21.4
168  DEPENDS+= +erlang +erlang-asn1
169endef
170
171define Package/erlang-snmp/description
172$(call Package/erlang/Default/description)
173 .
174 This Erlang/OTP package provides Simple Network Management Protocol
175 (SNMP) support including a MIB compiler and tools for creating SNMP
176 agents.
177endef
178
179
180define Package/erlang-ssh
181$(call Package/erlang/Default)
182  TITLE:=Secure Shell (SSH) support
183  VERSION:=2.0.9
184  DEPENDS+= +erlang +erlang-crypto
185endef
186
187define Package/erlang-ssh/description
188$(call Package/erlang/Default/description)
189 .
190 This Erlang/OTP package provides an implementation of the Secure Shell
191 protocol, with SSH & SFTP support.
192endef
193
194
195define Package/erlang-ssl
196$(call Package/erlang/Default)
197  TITLE:=Secure Sockets Layer (SSL) support
198  VERSION:=5.0
199  DEPENDS+= +erlang +erlang-crypto
200endef
201
202define Package/erlang-ssl/description
203$(call Package/erlang/Default/description)
204 .
205 This Erlang/OTP package provides support for secure communication over
206 sockets.
207endef
208
209
210define Package/erlang-syntax-tools
211$(call Package/erlang/Default)
212  TITLE:=Abstract Erlang syntax trees handling support
213  VERSION:=1.6.7.2
214  DEPENDS+= +erlang
215endef
216
217define Package/erlang-syntax-tools/description
218$(call Package/erlang/Default/description)
219 .
220 This Erlang/OTP package provides support for handling abstract Erlang
221 syntax trees.
222endef
223
224
225# Host
226
227HOST_CONFIGURE_ARGS += \
228        --disable-nls \
229        --disable-hipe \
230        --disable-smp-support \
231        --without-ssl
232
233define Host/Compile
234        $(MAKE) -C $(HOST_BUILD_DIR) all
235endef
236
237define Host/Install
238        $(MAKE) -C $(HOST_BUILD_DIR) install
239endef
240
241
242# Target
243
244CONFIGURE_ARGS += \
245        --disable-nls \
246        --disable-hipe \
247        --disable-smp-support \
248        --with-ssl="$(STAGING_DIR)/usr" \
249        --enable-dynamic-ssl-lib
250
251CONFIGURE_VARS += \
252        SHLIB_LD="$(TARGET_CC)" \
253        TARGET_ARCH="$(TARGET_ARCH)" \
254        ac_cv_prog_RX_LD="$(TARGET_LD)" \
255        ac_cv_func_getaddrinfo=no \
256        ac_cv_func_mmap_fixed_mapped=yes \
257        ac_cv_path_WX_CONFIG_PATH=no
258
259EXTRA_LDFLAGS+=-lz
260
261define Build/Compile
262        $(MAKE) -C $(PKG_BUILD_DIR) \
263                noboot
264        $(MAKE) -C $(PKG_BUILD_DIR) \
265                INSTALL_PREFIX="$(PKG_INSTALL_DIR)" \
266                install
267endef
268
269define Package/erlang/install
270        $(INSTALL_DIR) $(1)/usr/bin
271        for f in epmd erl erlc escript run_erl; do \
272                $(CP) $(PKG_INSTALL_DIR)/usr/bin/$$$$f $(1)/usr/bin/ ; \
273        done
274        $(INSTALL_DIR) $(1)/usr/lib/erlang/bin
275        for f in erl erlc escript run_erl start start.boot start.script start_clean.boot start_erl start_sasl.boot to_erl; do \
276                $(CP) $(PKG_INSTALL_DIR)/usr/lib/erlang/bin/$$$$f $(1)/usr/lib/erlang/bin/ ; \
277        done
278        $(INSTALL_DIR) $(1)/usr/lib/erlang/lib
279        for m in erts kernel sasl stdlib; do \
280                $(CP) $(PKG_INSTALL_DIR)/usr/lib/erlang/lib/$$$$m-* $(1)/usr/lib/erlang/lib/ ; \
281                rm -rf $(1)/usr/lib/erlang/lib/$$$$m-*/examples ; \
282                rm -rf $(1)/usr/lib/erlang/lib/$$$$m-*/src ; \
283        done
284        $(INSTALL_DIR) $(1)/usr/lib/erlang
285        $(CP) $(PKG_INSTALL_DIR)/usr/lib/erlang/erts-* $(1)/usr/lib/erlang/
286        rm -rf $(1)/usr/lib/erlang/erts-*/{doc,include,lib,man,src}
287        rm -rf $(1)/usr/lib/erlang/erts-*/bin/*.src
288        $(INSTALL_DIR) $(1)/usr/lib/erlang/releases
289        $(CP) $(PKG_INSTALL_DIR)/usr/lib/erlang/releases/* $(1)/usr/lib/erlang/releases/
290        $(SED) 's,%ERL_ROOT%,/usr/lib/erlang,g' \
291                $(1)/usr/lib/erlang/releases/RELEASES.src
292        mv -f $(1)/usr/lib/erlang/releases/RELEASES.src \
293                $(1)/usr/lib/erlang/releases/RELEASES
294        for f in bin/erl bin/start erts-*/bin/erl erts-*/bin/start; do \
295                $(SED) 's,^\(ROOTDIR\)=.*,\1=/usr/lib/erlang,g' \
296                        $(1)/usr/lib/erlang/$$$$f ; \
297        done
298endef
299
300
301define BuildModule
302
303  define Package/erlang-$(1)/install
304        $(INSTALL_DIR) $$(1)/usr/lib/erlang/lib
305        for m in $(2); do \
306                $(CP) $(PKG_INSTALL_DIR)/usr/lib/erlang/lib/$$$$$$$$m-* $$(1)/usr/lib/erlang/lib/ ; \
307                rm -rf $$(1)/usr/lib/erlang/lib/$$$$$$$$m-*/{examples,priv/obj,src} ; \
308        done
309  endef
310
311  $$(eval $$(call BuildPackage,erlang-$(1)))
312
313endef
314
315
316$(eval $(call HostBuild))
317$(eval $(call BuildPackage,erlang))
318$(eval $(call BuildModule,asn1,asn1))
319$(eval $(call BuildModule,compiler,compiler))
320$(eval $(call BuildModule,crypto,crypto))
321$(eval $(call BuildModule,hipe,hipe))
322$(eval $(call BuildModule,inets,inets))
323$(eval $(call BuildModule,mnesia,mnesia))
324$(eval $(call BuildModule,runtime-tools,runtime_tools))
325$(eval $(call BuildModule,snmp,snmp))
326$(eval $(call BuildModule,ssh,ssh))
327$(eval $(call BuildModule,ssl,ssl))
328$(eval $(call BuildModule,syntax-tools,syntax_tools))
Note: See TracBrowser for help on using the repository browser.