source: trunk/dports/net/jabber/Portfile

Last change on this file was 112113, checked in by jmr@…, 4 years ago

jabber: not C99 compatible

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# $Id: Portfile 112113 2013-10-12 06:38:11Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            jabber
6version         1.4.2
7revision        5
8categories      net
9license         GPL-2+ MPL-1.1 Apache-1 Restrictive
10maintainers     nomaintainer
11homepage        http://jabberd.org/
12description     Online presence and instant messaging server
13long_description        The Jabber server (jabberd) is a daemon for Jabber clients to connect and communicate with.
14platforms       darwin
15master_sites    http://download.jabberd.org/jabberd14/ \
16                http://download.jabberd.org/jabberd14/old/ \
17                http://download.jabberd.org/jabberd14/old/discontinued/ \
18                netbsd:packages/distfiles/
19checksums       md5 10780dbdb93926ea5bb360e1186b939c
20depends_lib     port:libiconv port:expat port:gettext lib:libpth.a:pth
21build.type  gnu
22
23platform darwin {
24        configure.cflags-append "-DBIND_8_COMPAT=1"
25}
26
27configure.cflags-append -std=gnu89
28
29destroot {
30        file mkdir ${destroot}${prefix}/etc
31        file mkdir ${destroot}${prefix}/lib
32        file mkdir ${destroot}${prefix}/sbin
33        file mkdir ${destroot}${prefix}/share/man
34        xinstall -o root -m 755 ${worksrcpath}/jabberd/jabberd ${destroot}${prefix}/sbin
35               
36        xinstall -o root -m 755 -d ${destroot}${prefix}/lib/jabber/pthsock
37        xinstall -o root -m 755 ${worksrcpath}/pthsock/pthsock_client.so ${destroot}${prefix}/lib/jabber/pthsock
38       
39        xinstall -o root -m 755 -d ${destroot}${prefix}/lib/jabber/dialback
40        xinstall -o root -m 755 ${worksrcpath}/dialback/dialback.so ${destroot}${prefix}/lib/jabber/dialback
41       
42        xinstall -o root -m 755 -d ${destroot}${prefix}/lib/jabber/dnsrv
43        xinstall -o root -m 755 ${worksrcpath}/dnsrv/dnsrv.so ${destroot}${prefix}/lib/jabber/dnsrv
44       
45        xinstall -o root -m 755 -d ${destroot}${prefix}/lib/jabber/xdb_file
46        xinstall -o root -m 755 ${worksrcpath}/xdb_file/xdb_file.so ${destroot}${prefix}/lib/jabber/xdb_file
47       
48        xinstall -o root -m 755 -d ${destroot}${prefix}/lib/jabber/jsm
49        xinstall -o root -m 755 ${worksrcpath}/jsm/jsm.so ${destroot}${prefix}/lib/jabber/jsm
50               
51        xinstall -o root -m 755 -d ${destroot}${prefix}/etc/jabber/
52        xinstall -o root -m 755 ${worksrcpath}/jabber.xml ${destroot}${prefix}/etc/jabber
53       
54        destroot.keepdirs \
55                ${destroot}${prefix}/var/lib/jabber \
56                ${destroot}${prefix}/var/run/jabber \
57                ${destroot}${prefix}/var/log/jabber \
58                ${destroot}${prefix}/var/spool/jabber
59
60        file copy -force ${destroot}${prefix}/etc/jabber/jabber.xml ${destroot}${prefix}/etc/jabber/jabber.xml.default
61}
62
63variant ssl description {Enable SSL} {
64        depends_lib-append      lib:libssl.0.9:openssl
65        configure.args  --enable-ssl
66}
Note: See TracBrowser for help on using the repository browser.