Ticket #34115: Portfile

File Portfile, 3.0 KB (added by lockhart (Thomas Lockhart), 12 years ago)

Full Portfile for ACE-6.1.1 with incremental changes from the previous Portfile. New version number, deleted the revision number, changed checksums, and added mountainlion as an OS X release.

Line 
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 90399 2012-03-04 20:04:23Z pixilla@macports.org $
3
4PortSystem          1.0
5PortGroup           muniversal 1.0
6
7name                ace
8set name_package    ACE
9version             6.1.1
10distname            ${name_package}-${version}
11categories          devel
12maintainers         fourpalms.org:lockhart openmaintainer
13platforms           darwin
14license             BSD
15description         ACE is an object-oriented framework that implements many core patterns for \
16                    concurrent communication software.
17long_description    The ADAPTIVE Communication Environment (ACE) is a freely available, \
18                    open-source object-oriented (OO) framework that implements many core \
19                    patterns for concurrent communication software. ACE provides a rich set \
20                    of reusable C++ wrapper facades and framework components that perform \
21                    common communication software tasks across a range of OS platforms. The \
22                    communication software tasks provided by ACE include event \
23                    demultiplexing and event handler dispatching, signal handling, service \
24                    initialization, interprocess communication, shared memory management, \
25                    message routing, dynamic (re)configuration of distributed services, \
26                    concurrent execution and synchronization.
27
28conflicts           tao
29
30homepage            http://www.cs.wustl.edu/~schmidt/ACE.html
31master_sites        http://download.dre.vanderbilt.edu/previous_versions
32
33use_bzip2           yes
34checksums           ${distname}${extract.suffix} \
35                    sha1    01b4996cd389eaffcbaee87b312f79f7e033fdc3 \
36                    rmd160  096c33d8fd8c042742b4c3d9298905c4dbb38e7b
37
38worksrcdir          ACE_wrappers
39
40patch.pre_args      -p1
41patchfiles          patch-ace-config.h.diff \
42                    patch-include-makeinclude-platform_macros.GNU.diff
43
44set os.name "lion"
45array set os.names {
46     7  panther
47     8  tiger
48     9  leopard
49    10  snowleopard
50    11  lion
51    12  mountainlion
52}
53if {"darwin" == ${os.platform}} {
54    foreach {key value} [array get os.names]  {
55        if {${key} == ${os.major}} {
56            set os.name ${value}
57        }
58    }
59}
60
61post-patch {
62    reinplace "s|@MACOSX@|${os.name}|g" \
63        ${worksrcpath}/ace/config.h \
64        ${worksrcpath}/include/makeinclude/platform_macros.GNU
65}
66
67use_configure       no
68
69use_parallel_build  no
70
71build.env-append    "DYLD_LIBRARY_PATH=${worksrcpath}/lib"
72build.env-append    "ACE_ROOT=${worksrcpath}"
73build.env-append    "INSTALL_PREFIX=${prefix}"
74
75destroot.env-append "DYLD_LIBRARY_PATH=${worksrcpath}/lib"
76destroot.env-append "ACE_ROOT=${worksrcpath}"
77destroot.args-append "INSTALL_PREFIX=${prefix}"
78
79livecheck.url       ${master_sites}
80livecheck.regex     ${name_package}-(\\d+\[0-9a-z.\]*)${extract.suffix}