# -*- 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
# There seems to be little upstream work on socketxx (a.k.a. socket++).
# Use the version supplied by GDCM instead.
# see ${worksrcpath}/CMakeLists.txt
maintainers {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
description a family of C++ classes that gives the same interface as the iostream classes for input and output for communication between processes
long_description Socket++ is ${description}.
homepage https://github.com/malaterre/socketxx-1
master_sites sourceforge:gdcm
distname gdcm-${gdcm_version}
checksums rmd160 0dd7e5458ee9747a8e310b8df44cbf974611a8be \
sha256 4bd0caa18632d3af5cb672cf9b7051cd9ef5ba42eca3d31412d3c8a3166a0a27 \
worksrcdir gdcm-${gdcm_version}/Utilities/socketxx
patchfiles-append patch-include.diff
configure.args-append -DBUILD_SHARED_LIBS=ON \
-DSOCKETXX_INSTALL_INCLUDE_DIR=include/socket++
xinstall -m 0644 ${extract.dir}/build/socket++/config.h ${destroot}${prefix}/include/socket++
copy ${destroot}${prefix}/lib/libsocketxx.dylib ${destroot}${prefix}/lib/libsocket++.dylib
livecheck.version ${gdcm_version}