Portfile

# $Id: Portfile 22970 2007-03-20 22:55:33Z eridius@macports.org $

PortSystem 1.0
name heyu
version 2.0beta.7.2
categories comms
platforms darwin
maintainers heyu@keithws.net
homepage http://heyu.tanj.com
description HEYU is a text-based console program for remotely \
controlling lights and appliances in the home or \
office.
long_description Heyu uses the CM11A computer interface to send X10 \
control signals over the AC power lines to modules \
which can turn On, Off, or Dim attached lamps or \
appliances. It can store a schedule of timed \
events in the CM11A memory for execution when the \
computer is turned off or disconnected. Heyu can \
also use an optional CM17A interface to transmit \
X10 RF signals.

master_sites ${homepage}/download/

checksums md5 303efa8b97b2a65df42d98b99047e5a4
extract.suffix .tgz

patchfiles patch-Makefile.in

configure.args darwin
configure.cmd ./Configure

post-destroot {
xinstall -d ${destroot}${prefix}/etc/heyu
file copy ${worksrcpath}/x10config.sample ${destroot}${prefix}/etc/heyu/x10.conf.sample
}

destroot.destdir BIN=${destroot}${prefix}/bin \
MAN=${destroot}${prefix}/share/man/man1 \
MAN5=${destroot}${prefix}/share/man/man5

post-activate {
# install default config file only if no previous config file exists
if {![file exists ${prefix}/etc/heyu/x10.conf]} {
file copy ${prefix}/etc/heyu/x10.conf.sample \
${prefix}/etc/heyu/x10.conf
}
}


variant nocm17a { configure.args-append -nocm17a }

variant noext0 { configure.args-append -noext0 }

files