Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / misc / p5-ControlX10-CM17 / Makefile
blob1d843db417aa49ddb986e5dbe6605de036f1a27e
1 # $NetBSD: Makefile,v 1.16 2012/10/03 21:56:45 wiz Exp $
3 DISTNAME= ControlX10-CM17-0.07
4 PKGNAME= p5-${DISTNAME}
5 PKGREVISION= 6
6 SVR4_PKGNAME= p5cx7
7 CATEGORIES= misc perl5
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.
21 post-patch:
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; \
28 fi; \
29 ${MV} -f $${file}.fixed $${file}; \
30 done
32 .include "../../lang/perl5/module.mk"
33 .include "../../mk/bsd.pkg.mk"