Ticket #24803: Portfile

File Portfile, 2.1 KB (added by stefan.van.der.eijk@…, 14 years ago)

Asterisk 1.6.2.8

Line 
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
4PortSystem          1.0
5
6name                asterisk
7version             1.6.2.8
8categories          net
9platforms           darwin
10maintainers         viagente.ca:marc.blanchet mr_bond openmaintainer
11
12description         An Open Source PBX and telephony toolkit
13long_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               
17homepage            http://www.asterisk.org
18#
19#fetch.type          svn
20#svn.url             http://svn.digium.com/svn/asterisk/trunk/
21#worksrcdir          trunk
22#
23master_sites        http://downloads.digium.com/pub/asterisk/releases/
24                   
25depends_lib         port:ncurses \
26                    port:openssl \
27                    port:zlib \
28                    port:bison \
29                    port:curl \
30                    port:wget
31
32checksums           md5     2ee5bbb91771c7c9b131da473971bc2f \
33                    sha1    7dd7823f0698ff509509fe6e29e8d9bdb9e85570 \
34                    rmd160  4d49c0e664ca89b4178857022be48f3d07bd503a
35
36startupitem.create      yes
37startupitem.netchange   yes
38startupitem.executable  ${prefix}/sbin/asterisk -d
39
40universal_variant   no
41
42configure.args      --without-h323
43#                   if {${build_arch} == "x86_64"} {
44#                       configure.args-append   --host=x86_64-darwin
45#                   }
46
47build.env           ASTCFLAGS=-I${prefix}/include \
48                    ASTLDFLAGS=-L${prefix}/lib
49                   
50variant jabber description {Enable Jabber support} {
51    depends_lib-append port:iksemel
52}
53
54post-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}