# -*- Mode: Tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:et:sw=4:ts=4:sts=4 # $Id: Portfile 125003 2014-09-02 15:02:29Z mf2k@macports.org $ PortSystem 1.0 name socket version 1.4 categories net platforms darwin maintainers nomaintainer description an interface to TCP sockets at shell level long_description \ Socket(1) implements an interface to TCP sockets at shell level. Client and server sockets can be used from shell scripts or interactively. Socket can also run a program with stdin, stdout, and stderr connected to the socket connection. A number of sample shell scripts are included. homepage http://www.jnickelsen.de/socket/ master_sites ${homepage} checksums md5 cab42be83b4c0aa42819cc95734c0c58 \ sha1 52562b2600f7b214e8200db0ef43a395b7a6ccd7 \ rmd160 f1fc8dd7574bc161b74f55a1e9c4893f43a451cc use_configure no patchfiles patch-Makefile.diff post-patch { reinplace "s,@prefix@,${destroot}${prefix}," ${worksrcpath}/Makefile if { [variant_isset universal] } { reinplace "s,@cflags@,${configure.universal_cflags}," ${worksrcpath}/Makefile reinplace "s,@ldflags@,${configure.universal_ldflags}," ${worksrcpath}/Makefile } else { reinplace "s,@cflags@,," ${worksrcpath}/Makefile reinplace "s,@ldflags@,," ${worksrcpath}/Makefile } } build.args CC=${configure.cc} variant universal {}