aboutsummaryrefslogtreecommitdiffstats
path: root/lang/erlang/Makefile
blob: 7c49b1c5316a06d37043283b7e2e21df90535284 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
# New ports collection makefile for:    erlang
# Date created:     11 Dec 1998
# Whom:         ruslan@shevchenko.kiev.ua
#
# $FreeBSD$
#

PORTNAME=   erlang
PORTVERSION=    6.1.0
CATEGORIES= lang
MASTER_SITES=   ftp://ftp.erlang.org/pub/download/     \
        http://www.erlang.org/download/        \
        http://erlang.stacken.kth.se/download/ \
        http://www.csd.uu.se/ftp/mirror/erlang/download/
DISTNAME=   otp_src_R6B-0
DISTFILES=  ${DISTNAME}${EXTRACT_SUFX} ${ERLANG_MAN} ${ERLANG_DOCS}

PATCH_SITES=    http://www.erlang.org/faq/ http://erlang.stacken.kth.se/faq/
PATCHFILES= tmp_patch_R6B0.2.txt tmp_patch_R6B0.3.txt \
        tmp_patch_R6B0.4.txt tmp_patch_R6B0.5.txt \
        tmp_patch_R6B0.7.txt tmp_patch_R6B0.8.txt

MAINTAINER= seb@strollo.org

# Make sure jdk is available (see use below)
BUILD_DEPENDS=  ${JAVABINDIR}/javac:${PORTSDIR}/java/jdk

# Don't clutter up /usr/ports/distfiles with all distfiles (including patches)
DIST_SUBDIR=    erlang

EXTRACT_ONLY=   otp_src_R6B-0.tar.gz
ERLANG_MAN=     otp_src_doc_man_R6B-0.tar.gz
ERLANG_DOCS=    otp_src_doc_html_R6B-0.tar.gz

USE_XLIB=   yes
USE_GMAKE=  yes
USE_PERL5=  yes
GNU_CONFIGURE=  yes
CONFIGURE_TARGET=   # empty

STRIP=

# The Java applications that are part of the Erlang distribution are
# not strictly necessary - it is included for completeness sake. A
# problem with the Erlang build procedure is that it only checks if
# javac is in the regular path - and then assumes that all of the jdk
# utilities is in the path as well. The only way to make sure that
# this is the case (that I could think of at least) was to make sure
# JAVABINDIR is added to the PATH, using the *_ENV macros.

# Set JAVABINDIR to where you have javac, if different from below
JAVABINDIR?=    ${LOCALBASE}/jdk1.1.8/bin

# Make sure javabindir is in the path
CONFIGURE_ENV+= PATH=${PATH}:${JAVABINDIR}
MAKE_ENV+=      PATH=${PATH}:${JAVABINDIR}
SCRIPT_ENV+=    PATH=${PATH}:${JAVABINDIR}

# Install documentation. (HTML docs need to be in same dir as the
# rest, not in share/doc/erlang as it should, because of relative
# links in the documentation.
post-install:
    tar --unlink -xzpf ${DISTDIR}/${DIST_SUBDIR}/${ERLANG_MAN} \
        -C ${PREFIX}/lib/erlang
.if !defined(NOPORTDOCS)
    tar --unlink -xzpf ${DISTDIR}/${DIST_SUBDIR}/${ERLANG_DOCS} \
        -C ${PREFIX}/lib/erlang
.endif

# The man-pages are put (in spite of FreeBSD's port convention) in a
# private subdir. This is to avoid cluttering up the man page name
# space. Also the Erlang man pages are more of internal documentation
# using the man format than actual system man pages. (The erl.1 and
# epmd.1 perhaps being the exception).

MAN1PREFIX= ${PREFIX}/lib/erlang
MAN1=  erl_call.1 epmd.1 erl.1 erlc.1 werl.1 erlsrv.1 start_erl.1

MAN3PREFIX= ${PREFIX}/lib/erlang
MAN3=  appmon.3 asn1ct.3 asn1rt.3 compile.3 CosEventChannelAdmin.3  \
       CosEventChannelAdmin_ConsumerAdmin.3             \
       CosEventChannelAdmin_SupplierAdmin.3             \
       CosEventChannelAdmin_EventChannel.3              \
       CosEventChannelAdmin_ProxyPullConsumer.3             \
       CosEventChannelAdmin_ProxyPullSupplier.3             \
       CosEventChannelAdmin_ProxyPushConsumer.3             \
       CosEventChannelAdmin_ProxyPushSupplier.3 OrberEventChannel.3 \
       OrberEventChannel_EventChannelFactory.3 cosTransactions.3    \
       CosTransactions_Control.3 CosTransactions_Coordinator.3      \
       CosTransactions_RecoveryCoordinator.3                \
       CosTransactions_Resource.3                   \
       CosTransactions_SubtransactionAwareResource.3            \
       CosTransactions_Terminator.3                 \
       CosTransactions_TransactionFactory.3 crypto.3 i.3 int.3      \
       erl_connect.3 erl_error.3 erl_eterm.3 registry.3 erl_format.3    \
       erl_malloc.3 erl_marshal.3 erl_global.3 erl_set_memory_block.3   \
       etk.3 tk.3 eva.3 eva_log.3 eva_log_snmp.3 eva_server.3       \
       eva_snmp_adaptation.3 eva_sup.3 log.3 log_server.3 log_snmp.3    \
       log_snmpea.3 gs.3 ic.3 CORBA_Environment_alloc.3 ig.3 ftp.3  \
       httpd.3 jive.3 httpd_conf.3 httpd_core.3 httpd_socket.3      \
       httpd_util.3 mod_actions.3 mod_alias.3 mod_auth.3 mod_cgi.3  \
       mod_dir.3 mod_disk_log.3 mod_esi.3 mod_include.3 mod_log.3   \
       mod_security.3 application.3 auth.3 code.3 disk_log.3        \
       erl_boot_server.3 erl_ddll.3 erl_prim_loader.3 erlang.3      \
       error_handler.3 error_logger.3 file.3 gen_tcp.3 gen_udp.3    \
       global.3 global_group.3 heart.3 inet.3 init.3 net_adm.3      \
       net_kernel.3 os.3 pg2.3 rpc.3 seq_trace.3 wrap_log_reader.3  \
       user.3 mesh.3 mesh_snmp.3 mesh_lib.3 mnemosyne.3 mnesia.3    \
       mnesia_registry.3 mnesia_session.3 odbc.3 any.3 corba.3      \
       corba_object.3 orber.3 CosNaming.3 CosNaming_NamingContext.3 \
       CosNaming_BindingIterator.3 lname.3 lname_component.3        \
       orber_ifr.3 orber_tc.3 Module_Interface.3 cpu_sup.3 disksup.3    \
       memsup.3 os_mon.3 os_sup.3 nteventlog.3 yecc.3 pman.3 dbg.3  \
       alarm_handler.3 overload.3 rb.3 systools.3 release_handler.3 \
       snmp.3 snmp_community_mib.3 snmp_error.3 snmp_framework_mib.3    \
       snmp_generic.3 snmp_index.3 snmp_local_db.3 snmp_mgr.3       \
       snmp_mpd.3 snmp_notification_mib.3 snmp_pdus.3           \
       snmp_standard_mib.3 snmp_supervisor.3 snmp_target_mib.3      \
       snmp_user_based_sm_mib.3 snmp_view_based_acm_mib.3 socket.3  \
       udp.3 ssl.3 ssl_socket.3 c.3 calendar.3 dets.3 dict.3 digraph.3  \
       epp.3 erl_eval.3 erl_id_trans.3 erl_internal.3 erl_lint.3    \
       erl_parse.3 erl_pp.3 erl_scan.3 ets.3 filename.3 gen_event.3 \
       gen_fsm.3 gen_server.3 io.3 io_lib.3 lib.3 lists.3 log_mf_h.3    \
       math.3 ordsets.3 pg.3 pool.3 proc_lib.3 queue.3 random.3     \
       regexp.3 shell.3 shell_default.3 slave.3 string.3 supervisor.3   \
       supervisor_bridge.3 sys.3 timer.3 unix.3 toolbar.3 coast.3   \
       eprof.3 exref.3 instrument.3 tags.3 make.3 tv.3 xref.3       \

MAN4PREFIX= ${PREFIX}/lib/erlang
MAN4=  app.4 config.4 appup.4 rel.4 relup.4 script.4

MAN6PREFIX= ${PREFIX}/lib/erlang
MAN6=  crypto.6 eva.6 inets.6 kernel.6 mesh.6 runtime_tools.6 \
       sasl.6 snmp.6 sockets.6 ssl.6

.include <bsd.port.mk>