source: trunk/dports/sysutils/synergy-devel/Portfile

Last change on this file was 98883, checked in by raimue@…, 5 years ago

sysutils/synergy, sysutils/synergy-devel:
Add new devel port, mark conflicting with existing port

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# $Id: Portfile 98883 2012-10-19 19:53:45Z ryandesign@macports.org $
2
3PortSystem 1.0
4PortGroup cmake 1.0
5
6name            synergy-devel
7set realname    synergy
8conflicts       synergy
9version         1.4.10
10categories      sysutils
11license         GPL-2
12platforms       darwin
13maintainers     nomaintainer
14description     A client/server for sharing a single mouse and keyboard
15long_description \
16    Synergy lets you easily share a single mouse and keyboard \
17    between multiple computers with different operating systems \
18    without special hardware. It is intended for users with \
19    multiple computers on their desk since each system uses its \
20    own display.
21homepage        http://synergy-foss.org
22master_sites    googlecode:${realname}
23distname        ${realname}-${version}-Source
24
25checksums       rmd160  829fb9c59312df9698b0e97b9a028396fe9078df \
26                sha256  06d5a2ceb4cf8808cdab22441897c7b54ec8b4bc8351ac116f9accf54c720fbe
27
28patchfiles      patch-CArchFileUnix.cpp.diff \
29                patch-uSynergyUnix.diff
30
31# Force 32-bit, all kinds of Carbon cruft in here. (#20908)
32supported_archs i386 ppc
33
34post-patch {
35    # Set default config path
36    reinplace "s|@@SYSCONFDIR@@|${prefix}/etc/${realname}|g" ${worksrcpath}/src/lib/arch/CArchFileUnix.cpp
37
38    # Fix build architectures
39    reinplace "s:CMAKE_OSX_ARCHITECTURES \"ppc;i386\":CMAKE_OSX_ARCHITECTURES \"[join [get_canonical_archs] ;]\":" ${worksrcpath}/CMakeLists.txt
40}
41
42destroot {
43        xinstall -d ${destroot}${prefix}/bin
44        xinstall -m 755 ${worksrcpath}/bin/synergyc ${destroot}${prefix}/bin
45        xinstall -m 755 ${worksrcpath}/bin/synergys ${destroot}${prefix}/bin
46        xinstall -m 644 ${worksrcpath}/doc/synergyc.man ${destroot}${prefix}/share/man/man1/synergyc.1
47        xinstall -m 644 ${worksrcpath}/doc/synergys.man ${destroot}${prefix}/share/man/man1/synergys.1
48        xinstall -d ${destroot}${prefix}/etc/${realname}
49        xinstall -m 644 -W ${worksrcpath}/doc/ \
50            synergy.conf.example \
51            synergy.conf.example-advanced \
52            synergy.conf.example-basic \
53            ${destroot}${prefix}/etc/${realname}
54}
55
56startupitem.create      yes
57startupitem.executable  ${prefix}/bin/synergys --no-daemon
Note: See TracBrowser for help on using the repository browser.