1 | # $Id: Portfile 34049 2008-02-11 04:33:48Z blair@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name ice-cpp |
---|
6 | version 3.2.1 |
---|
7 | revision 1 |
---|
8 | categories devel |
---|
9 | maintainers blair |
---|
10 | description Fast, object-oriented RPC for C++, Java, Python, Ruby, PHP |
---|
11 | |
---|
12 | long_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 | |
---|
32 | homepage http://www.zeroc.com/ |
---|
33 | master_sites http://www.zeroc.com/download/Ice/3.2/ |
---|
34 | distname Ice-${version} |
---|
35 | checksums md5 77bb04788747d0f4f7ef35f7a4c2800f \ |
---|
36 | sha1 69fc7dbdff81d7d9300b57f6e495914f3c9e5c19 \ |
---|
37 | rmd160 c3394486ba13e94c2491b0dc48dc19c3e7565ecd |
---|
38 | platforms darwin |
---|
39 | |
---|
40 | depends_lib port:db45 \ |
---|
41 | port:expat \ |
---|
42 | port:openssl \ |
---|
43 | port:readline |
---|
44 | |
---|
45 | patchfiles patch-config.Make.rules.diff \ |
---|
46 | patch-config.Make.rules.Darwin.diff \ |
---|
47 | patch-ServantLocator.locate-can-throw-user-exceptions.diff |
---|
48 | |
---|
49 | use_configure no |
---|
50 | |
---|
51 | build.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 | |
---|
62 | test.run yes |
---|
63 | test.target test |
---|
64 | |
---|
65 | destroot.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 | |
---|
76 | post-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 | |
---|
102 | platform 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 | |
---|
108 | platform 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 | |
---|
114 | platform 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 | |
---|
120 | variant demo_source_code { |
---|
121 | } |
---|