1 # $NetBSD: Makefile,v 1.16 2012/10/03 21:56:45 wiz Exp $
3 DISTNAME
= ControlX10-CM17-0.07
4 PKGNAME
= p5-
${DISTNAME}
8 MASTER_SITES
= ${MASTER_SITE_PERL_CPAN
:=ControlX10
/}
10 MAINTAINER
= damon@brodiefamily.org
11 HOMEPAGE
= http
://members.aol.com
/Bbirthisel
/x10.d
/index.html
12 COMMENT
= Perl5 module for controlling the X10 CM17A controller
14 DEPENDS
+= p5-Device-SerialPort
>=0.07:..
/..
/comms
/p5-Device-SerialPort
16 PERL5_PACKLIST
= auto
/ControlX10
/CM17
/.packlist
18 # We don't actually install the example perl script, but we patch it
19 # to be useful, just the same.
22 cd
${WRKSRC}; for file in eg
/eg_cm17.plx
; do \
23 ${SED} -e
"s|/usr/bin/perl|${PERL5}|g" \
24 -e
"s|/dev/ttyS0|${DEFAULT_SERIAL_DEVICE}|g" \
25 $${file} > $${file}.fixed
; \
26 if
[ -x
$${file} ]; then \
27 ${CHMOD} +x
$${file}.fixed
; \
29 ${MV} -f
$${file}.fixed
$${file}; \
32 .
include "../../lang/perl5/module.mk"
33 .
include "../../mk/bsd.pkg.mk"