source: trunk/dports/sysutils/synergy/Portfile @ 56602

Last change on this file since 56602 was 56602, checked in by jmr@…, 8 years ago

update code to force 32-bit build_arch (see #20908)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1# $Id: Portfile 56602 2009-08-30 18:41:30Z jmr@macports.org $
2
3PortSystem 1.0
4
5name                    synergy
6set sf_proj             synergy2
7version                 1.3.1
8categories              sysutils
9platforms               darwin
10maintainers             gmail.com:ascarter
11description             a client/server for sharing a single mouse and keyboard
12long_description        Synergy lets you easily share a single mouse and keyboard \
13                                between multiple computers with different operating systems \
14                                without special hardware. It is intended for users with \
15                                multiple computers on their desk since each system uses its \
16                                own display.
17master_sites    sourceforge
18master_sites.mirror_subdir      ${sf_proj}
19
20checksums               md5 a6e09d6b71cb217f23069980060abf27
21
22configure.args  --sysconfdir=${prefix}/etc/${name}
23patchfiles              patch-CArchFileUnix.cpp.diff patch-configure.diff
24
25post-patch {
26        reinplace "s|__SYSCONFDIR|${prefix}/etc/${name}|g" ${worksrcpath}/lib/arch/CArchFileUnix.cpp
27}
28
29variant server {
30        startupitem.create      yes
31        startupitem.name        Synergy
32        startupitem.start       "${prefix}/bin/synergys --daemon &"
33        startupitem.stop        "/usr/bin/killall synergys"
34}
35
36post-destroot {
37        xinstall -m 755 -d ${destroot}${prefix}/etc/${name}
38        xinstall -m 644 -c ${worksrcpath}/examples/synergy.conf \
39                ${destroot}${prefix}/etc/${name}/synergy.conf.sample
40}
41
42livecheck.name  ${sf_proj}
43livecheck.regex <title>Sources (.*) released.*</title>
44
45# Force 32-bit, all kinds of Carbon cruft in here. (#20908)
46if {$build_arch == "x86_64"} {
47    configure.build_arch i386
48} elseif {$build_arch == "ppc64"} {
49    configure.build_arch ppc
50}
Note: See TracBrowser for help on using the repository browser.