1 | # $Id: $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name poco |
---|
6 | version 1.3.0 |
---|
7 | categories devel |
---|
8 | maintainers n.oxyde@gmail.com |
---|
9 | description POCO C++ Libraries |
---|
10 | |
---|
11 | long_description \ |
---|
12 | POCO aims to be for network-centric, cross-platform C++ software development \ |
---|
13 | what Apple's Cocoa is for Mac development, or Ruby on Rails is for Web \ |
---|
14 | development — a powerful, yet easy to use platform to build your applications upon. |
---|
15 | |
---|
16 | homepage http://pocoproject.org/ |
---|
17 | master_sites sourceforge |
---|
18 | use_bzip2 yes |
---|
19 | |
---|
20 | checksums [suffix ${distname}] \ |
---|
21 | md5 798e3e99f3ed97fe4d2151acec12024e \ |
---|
22 | sha1 8630341bd54af3ef4176a41e4d90ca3e8e91e5ad \ |
---|
23 | rmd160 da58302df5fed9f111ee08a2f8ecdf1d9e0cbf15 \ |
---|
24 | [suffix ${distname}-ssl] \ |
---|
25 | md5 c5169f92f2787a609f9611346d221e78 \ |
---|
26 | sha1 1429b7fb925e61e88df8d19648ef87c29144b6b4 \ |
---|
27 | rmd160 aeb24c2382a13e21d14bba4160bc7d144bb2780b \ |
---|
28 | ${name}-${version}-doc.tar.gz \ |
---|
29 | md5 6107295904c6203a58377b2e7f97ed33 \ |
---|
30 | sha1 1374f44a3f82477c6587037e0d990cd26d0eb61e \ |
---|
31 | rmd160 433a7ff6f5db661fb799f09c4bfbf439f4cbc841 |
---|
32 | |
---|
33 | platforms darwin |
---|
34 | |
---|
35 | configure.args --no-tests \ |
---|
36 | --no-samples |
---|
37 | |
---|
38 | build.target poco |
---|
39 | |
---|
40 | set docdir ${prefix}/share/doc/${name}-${version} |
---|
41 | |
---|
42 | post-destroot { |
---|
43 | xinstall -m 0755 -d ${destroot}${docdir} |
---|
44 | xinstall -m 0644 -W ${worksrcpath} CHANGELOG CONTRIBUTORS LICENSE NEWS README VERSION \ |
---|
45 | ${destroot}${docdir} |
---|
46 | |
---|
47 | if {! [variant_isset doc]} { |
---|
48 | xinstall -m 0755 -d ${destroot}${docdir}/html |
---|
49 | xinstall -m 0644 -W ${worksrcpath}/doc Acknowledgements.html ${destroot}${docdir}/html |
---|
50 | } |
---|
51 | } |
---|
52 | |
---|
53 | variant ipv6 requires darwin_8 {} |
---|
54 | |
---|
55 | variant ssl { |
---|
56 | distname ${distname}-ssl |
---|
57 | depends_lib-append port:openssl |
---|
58 | } |
---|
59 | |
---|
60 | variant doc { |
---|
61 | extract.only ${distfiles} |
---|
62 | distfiles-append ${name}-${version}-doc.tar.gz |
---|
63 | |
---|
64 | post-extract { |
---|
65 | system "tar xzf ${distpath}/${name}-${version}-doc.tar.gz -C ${workpath}" |
---|
66 | } |
---|
67 | |
---|
68 | post-destroot { |
---|
69 | set workdocpath ${workpath}/${name}-${version}-doc |
---|
70 | |
---|
71 | xinstall -m 0755 -d ${destroot}${docdir}/html |
---|
72 | eval xinstall -m 0644 [glob ${workdocpath}/*.html] ${destroot}${docdir}/html |
---|
73 | |
---|
74 | foreach {dir} {images css} { |
---|
75 | xinstall -m 0755 -d ${destroot}${docdir}/html/${dir} |
---|
76 | eval xinstall -m 0644 [glob ${workdocpath}/${dir}/*] ${destroot}${docdir}/html/${dir} |
---|
77 | } |
---|
78 | } |
---|
79 | } |
---|
80 | |
---|
81 | platform darwin { |
---|
82 | post-destroot { |
---|
83 | system "env destroot=${destroot} prefix=${prefix} worksrcpath=${worksrcpath} \ |
---|
84 | ${portpath}/${filesdir}/fix_install_names.sh" |
---|
85 | } |
---|
86 | } |
---|
87 | |
---|
88 | platform darwin 7 { |
---|
89 | configure.args-append --config=Darwin7 |
---|
90 | } |
---|
91 | |
---|
92 | platform darwin 8 { |
---|
93 | post-patch { |
---|
94 | if {! [variant_isset ipv6]} { |
---|
95 | reinplace "s/-DPOCO_HAVE_IPv6//" ${worksrcpath}/build/config/Darwin |
---|
96 | } |
---|
97 | } |
---|
98 | } |
---|