1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id: Portfile 84891 2011-10-04 04:05:33Z ryandesign@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name asterisk |
---|
7 | version 1.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 | fetch.type svn |
---|
19 | svn.url http://svn.digium.com/svn/asterisk/branches/${version}/ |
---|
20 | worksrcdir ${version} |
---|
21 | #master_sites http://downloads.digium.com/pub/asterisk/releases/ |
---|
22 | |
---|
23 | depends_lib port:ncurses \ |
---|
24 | port:openssl \ |
---|
25 | port:zlib \ |
---|
26 | port:bison \ |
---|
27 | port:curl \ |
---|
28 | port:iksemel \ |
---|
29 | port:libogg \ |
---|
30 | port:libvorbis \ |
---|
31 | port:lua \ |
---|
32 | port:openldap \ |
---|
33 | port:popt \ |
---|
34 | port:portaudio \ |
---|
35 | port:spandsp-devel \ |
---|
36 | port:speex \ |
---|
37 | port:sqlite3 \ |
---|
38 | port:wget |
---|
39 | |
---|
40 | # 1.6.2.20 |
---|
41 | #checksums rmd160 8584d0f2e274517ce84576dfa7e936b9befb9fe2 \ |
---|
42 | # sha256 4f3ef1de4644195e0d91816d6741c46ddb5d9ad28b07e631f594674ac9006a27 |
---|
43 | # 1.8.7.1 |
---|
44 | #checksums rmd160 e69d6f6c555f52b8c6bd16428c9e64a22988e736 \ |
---|
45 | # sha256 46a713113705f9c747f19b5c5bfd31ee2ebd7db221eb9aa4ca8c817d531f95f3 |
---|
46 | |
---|
47 | startupitem.create yes |
---|
48 | startupitem.netchange yes |
---|
49 | startupitem.executable ${prefix}/sbin/asterisk -d |
---|
50 | |
---|
51 | universal_variant no |
---|
52 | |
---|
53 | patchfiles makeopts.in.diff menuselect_Makefile.diff |
---|
54 | |
---|
55 | configure.args --without-h323 \ |
---|
56 | --without-netsnmp |
---|
57 | |
---|
58 | configure.optflags -O3 |
---|
59 | |
---|
60 | build.env ASTCFLAGS=-I${prefix}/include \ |
---|
61 | ASTLDFLAGS=-L${prefix}/lib \ |
---|
62 | NOISY_BUILD=1 \ |
---|
63 | OPTIMIZE=${configure.optflags} |
---|
64 | |
---|
65 | use_parallel_build no |
---|
66 | |
---|
67 | destroot.keepdirs ${destroot}${prefix}/var/log/asterisk \ |
---|
68 | ${destroot}${prefix}/var/run/asterisk \ |
---|
69 | ${destroot}${prefix}/var/spool/asterisk \ |
---|
70 | ${destroot}${prefix}/var/spool/asterisk/dictate \ |
---|
71 | ${destroot}${prefix}/var/spool/asterisk/meetme \ |
---|
72 | ${destroot}${prefix}/var/spool/asterisk/monitor \ |
---|
73 | ${destroot}${prefix}/var/spool/asterisk/outgoing \ |
---|
74 | ${destroot}${prefix}/var/spool/asterisk/system \ |
---|
75 | ${destroot}${prefix}/var/spool/asterisk/tmp \ |
---|
76 | ${destroot}${prefix}/var/spool/asterisk/voicemail |
---|
77 | |
---|
78 | variant home_sound_cache description {Use/Build sound file cache from .asterisk_sounds_cache in your home directory} { |
---|
79 | configure.args-append --with-sounds-cache=~/.asterisk_sounds_cache |
---|
80 | } |
---|
81 | |
---|
82 | post-destroot { |
---|
83 | system "rsync -a ${worksrcpath}/configs/*.sample ${destroot}${prefix}/etc/asterisk" |
---|
84 | xinstall -m 644 ${filespath}/asterisk.conf.sample.in ${destroot}${prefix}/etc/asterisk/asterisk.conf.sample |
---|
85 | reinplace "s|@PREFIX@|${prefix}|g" ${destroot}${prefix}/etc/asterisk/asterisk.conf.sample |
---|
86 | xinstall -d ${destroot}${prefix}/var/log/asterisk \ |
---|
87 | ${destroot}${prefix}/var/run/asterisk \ |
---|
88 | ${destroot}${prefix}/var/spool/asterisk/outgoing |
---|
89 | } |
---|