# -*- 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
supported_archs i386 x86_64
description POCO C++ Libraries
POCO aims to be for network-centric, cross-platform C++ software development \
what Apple's Cocoa is for Mac development, or Ruby on Rails is for Web \
development -- a powerful, yet easy to use platform to build your applications upon.
homepage http://pocoproject.org/
master_sites ${homepage}releases/poco-[strsed ${version} {s/[^0-9.].*$//}]/
distname ${name}-${version}-all
checksums rmd160 51b6d56429e118014e568443240b0e90a84c517d \
sha256 61f1e26e25af2201295b6a58a8e2bf74063ad3bf49c8e969ba08af42310716c2
set docdir ${prefix}/share/doc/${name}
if {${subport} eq ${name}} {
set omit {NetSSL_OpenSSL Data/SQLite Data/ODBC Data/MySQL Crypto}
if {"x86_64" eq ${configure.build_arch}} {
if {[string match *clang* ${configure.compiler}]} {
set config ${darwin}-clang-libc++
configure.args --static --shared --no-samples --unbundled --config=${config}
# Make sure poco build uses the right compiler.
build.args-append CC=${configure.cc} \
POCO_HOST_OSARCH=${configure.build_arch}
depends_lib-append port:zlib port:pcre port:expat
configure.args-append --omit=[join ${omit} ,]