1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name asterisk |
---|
7 | version 1.6.2.8 |
---|
8 | categories net |
---|
9 | platforms darwin |
---|
10 | maintainers viagente.ca:marc.blanchet mr_bond openmaintainer |
---|
11 | |
---|
12 | description An Open Source PBX and telephony toolkit |
---|
13 | long_description Asterisk is an open source PBX and telephony toolkit. It \ |
---|
14 | provides the ability to develop telephony applications on top of internet \ |
---|
15 | telephony (Voice over IP) as well as traditional telephony connectivity (PSTN). |
---|
16 | |
---|
17 | homepage http://www.asterisk.org |
---|
18 | # |
---|
19 | #fetch.type svn |
---|
20 | #svn.url http://svn.digium.com/svn/asterisk/trunk/ |
---|
21 | #worksrcdir trunk |
---|
22 | # |
---|
23 | master_sites http://downloads.digium.com/pub/asterisk/releases/ |
---|
24 | |
---|
25 | depends_lib port:ncurses \ |
---|
26 | port:openssl \ |
---|
27 | port:zlib \ |
---|
28 | port:bison \ |
---|
29 | port:curl \ |
---|
30 | port:wget |
---|
31 | |
---|
32 | checksums md5 2ee5bbb91771c7c9b131da473971bc2f \ |
---|
33 | sha1 7dd7823f0698ff509509fe6e29e8d9bdb9e85570 \ |
---|
34 | rmd160 4d49c0e664ca89b4178857022be48f3d07bd503a |
---|
35 | |
---|
36 | startupitem.create yes |
---|
37 | startupitem.netchange yes |
---|
38 | startupitem.executable ${prefix}/sbin/asterisk -d |
---|
39 | |
---|
40 | universal_variant no |
---|
41 | |
---|
42 | configure.args --without-h323 |
---|
43 | # if {${build_arch} == "x86_64"} { |
---|
44 | # configure.args-append --host=x86_64-darwin |
---|
45 | # } |
---|
46 | |
---|
47 | build.env ASTCFLAGS=-I${prefix}/include \ |
---|
48 | ASTLDFLAGS=-L${prefix}/lib |
---|
49 | |
---|
50 | variant jabber description {Enable Jabber support} { |
---|
51 | depends_lib-append port:iksemel |
---|
52 | } |
---|
53 | |
---|
54 | post-destroot { |
---|
55 | system "rsync -a $worksrcpath/configs/*.sample ${destroot}/${prefix}/etc/asterisk" |
---|
56 | file mkdir "${destroot}/${prefix}/var/run" |
---|
57 | file mkdir "${destroot}/${prefix}/var/log/asterisk" |
---|
58 | } |
---|