Ticket #33445: Portfile.2

File Portfile.2, 3.2 KB (added by lockhart (Thomas Lockhart), 13 years ago)

Portfile for devel/libACE to retire libACE in favor of ace.

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