Ticket #14756: Portfile

File Portfile, 3.3 KB (added by aronnax@…, 17 years ago)

corrected portfile

Line 
1# $Id: Portfile 34049 2008-02-11 04:33:48Z blair@macports.org $
2
3PortSystem 1.0
4
5name            ice-cpp
6version         3.2.1
7revision        1
8categories      devel
9maintainers     blair
10description     Fast, object-oriented RPC for C++, Java, Python, Ruby, PHP
11
12long_description \
13        The Internet Communications Engine (Ice) is a modern alternative to \
14        object middleware such as CORBA or COM/DCOM/COM+, with support for \
15        C++, C#, Java, PHP, Python, Ruby and Visual Basic. \
16        Ice consists of the following packages. \
17        Slice: The Specification Language for Ice.  Slice establishes a \
18        contract between clients and servers, and is also used to describe \
19        persistent data. \
20        Slice Compilers: Slice specifications are compiled into various \
21        programming languages. Ice supports C++, Java, C#, Visual Basic, PHP, \
22        Python and Ruby.  Ice clients and servers work together, regardless \
23        of the programming language. \
24        Ice: The Ice core library manages all the communication tasks using a \
25        highly efficient protocol (including protocol compression and support \
26        for both TCP and UDP), provides a flexible thread pool for \
27        multi-threaded servers. \
28        This Port provides the C++ runtime libraries, the core Slice files \
29        and slice2cpp.  It also includes the slice compilers for all the \
30        other languages: slice2cs, slice2java, slice2py, slice2rb and slice2vb.
31
32homepage        http://www.zeroc.com/
33master_sites    http://www.zeroc.com/download/Ice/3.2/
34distname        Ice-${version}
35checksums       md5 77bb04788747d0f4f7ef35f7a4c2800f \
36                sha1  69fc7dbdff81d7d9300b57f6e495914f3c9e5c19 \
37                rmd160  c3394486ba13e94c2491b0dc48dc19c3e7565ecd
38platforms       darwin
39
40depends_lib     port:db45 \
41                port:expat \
42                port:openssl \
43                port:readline
44
45patchfiles      patch-config.Make.rules.diff \
46                patch-config.Make.rules.Darwin.diff \
47                patch-ServantLocator.locate-can-throw-user-exceptions.diff
48
49use_configure   no
50
51build.target    prefix="${prefix}" \
52                embedded_runpath_prefix="${prefix}" \
53                OPTIMIZE="yes" \
54                BZIP2_HOME="${prefix}" \
55                DB_HOME="${prefix}" \
56                EXPAT_HOME="${prefix}" \
57                OPENSSL_HOME="${prefix}" \
58                READLINE_HOME="${prefix}" \
59                USE_READLINE=yes \
60                all
61               
62test.run        yes
63test.target     test
64
65destroot.target prefix="${destroot}${prefix}" \
66                embedded_runpath_prefix="${prefix}" \
67                OPTIMIZE="yes" \
68                BZIP2_HOME="${prefix}" \
69                DB_HOME="${prefix}" \
70                EXPAT_HOME="${prefix}" \
71                OPENSSL_HOME="${prefix}" \
72                READLINE_HOME="${prefix}" \
73                USE_READLINE=yes \
74                install
75
76post-destroot {
77        cd ${destroot}${prefix}
78
79        file rename include ice
80        xinstall -d -m 755 include
81        file rename ice include/
82
83        xinstall -d -m 755 share/ice
84        file rename slice share/ice/
85        file rename config share/ice/
86
87        xinstall -m 755 -d share/doc/${name}
88        file rename doc/reference share/doc/${name}/reference
89        file rename ICE_LICENSE share/doc/${name}/
90        file rename LICENSE share/doc/${name}/
91
92        cd ${destroot}${prefix}/share/doc/${name}
93        foreach f {CHANGES INSTALL.MACOSX README} {
94                file copy ${worksrcpath}/${f} .
95        }
96
97        if {[variant_isset demo_source_code]} {
98                file copy ${worksrcpath}/demo .
99        }
100}
101
102platform darwin 7 {
103        build.env-append        CPP=/usr/bin/cpp-3.3 \
104                                CC=/usr/bin/gcc-3.3 \
105                                CXX=/usr/bin/g++-3.3
106}
107
108platform darwin 8 {
109        build.env-append        CPP=/usr/bin/cpp-4.0 \
110                                CC=/usr/bin/gcc-4.0 \
111                                CXX=/usr/bin/g++-4.0
112}
113
114platform darwin 9 {
115        build.env-append        CPP=/usr/bin/cpp-4.0 \
116                                CC=/usr/bin/gcc-4.0 \
117                                CXX=/usr/bin/g++-4.0
118}
119
120variant demo_source_code {
121}