Ticket #33445: Portfile

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

Portfile for devel/ace to rename from devel/libACE and update versions.

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 84550 2011-09-27 21:05:11Z snc@macports.org $
3# ACE no longer supports an autoconf build.
4# Use the traditional build technique instead.
5
6PortSystem          1.0
7PortGroup           muniversal 1.0
8
9name                ace
10set name_package    ACE
11version             6.0.8
12revision            2
13distname            ${name_package}-${version}
14categories          devel
15maintainers         gmail.com:enrique.fernandez.perdomo pixilla
16platforms           darwin
17license             BSD
18description         ACE is an object-oriented framework that implements many core patterns for \
19                    concurrent communication software.
20long_description    The ADAPTIVE Communication Environment (ACE) is a freely available, \
21                    open-source object-oriented (OO) framework that implements many core \
22                    patterns for concurrent communication software. ACE provides a rich set \
23                    of reusable C++ wrapper facades and framework components that perform \
24                    common communication software tasks across a range of OS platforms. The \
25                    communication software tasks provided by ACE include event \
26                    demultiplexing and event handler dispatching, signal handling, service \
27                    initialization, interprocess communication, shared memory management, \
28                    message routing, dynamic (re)configuration of distributed services, \
29                    concurrent execution and synchronization.
30
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
37checksums           ${distname}${extract.suffix} \
38                      sha1    189a27b9cfccc0a931f2600166c31c9b49ef5eea \
39                      rmd160  31ebccd204aeeb1b1c5bb76c4cb9ae55bb4ca8e3
40
41worksrcdir          ACE_wrappers
42
43patch.pre_args      -p1
44patchfiles          patch-ace-config.h.diff \
45                    patch-include-makeinclude-platform_macros.GNU.diff
46
47set os.name "lion"
48array set os.names {
49     7  panther
50     8  tiger
51     9  leopard
52    10  snowleopard
53    11  lion
54}
55if {"darwin" == ${os.platform}} {
56    foreach {key value} [array get os.names]  {
57        if {${key} == ${os.major}} {
58            set os.name ${value}
59        }
60    }
61}
62set archs "\"${configure.build_arch}\""
63if {[variant_exists universal] && [variant_isset universal]} {
64    set archs "\"${configure.universal_archs}\""
65}
66
67post-patch {
68    reinplace "s|@MACOSX@|${os.name}|g" \
69        ${worksrcpath}/ace/config.h \
70        ${worksrcpath}/include/makeinclude/platform_macros.GNU
71}
72
73use_configure       no
74
75use_parallel_build  no
76
77build.env-append    "DYLD_LIBRARY_PATH=${worksrcpath}/lib"
78build.env-append    "ACE_ROOT=${worksrcpath}"
79build.env-append    "INSTALL_PREFIX=${prefix}"
80
81destroot.env-append "DYLD_LIBRARY_PATH=${worksrcpath}/lib"
82destroot.env-append "ACE_ROOT=${worksrcpath}"
83destroot.args-append "INSTALL_PREFIX=${prefix}"
84
85livecheck.url       ${master_sites}
86livecheck.regex     ${name_package}-(\\d+\[0-9a-z.\]*)${extract.suffix}