cc4128d97e
${PREFIX} -- everything else is pickup up from ${BUILDLINK_DIR}.
36 lines
1.1 KiB
Makefile
36 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.3 2001/11/26 06:50:08 jlam Exp $
|
|
|
|
DISTNAME= ControlX10-CM17-0.07
|
|
PKGNAME= p5-${DISTNAME}
|
|
SVR4_PKGNAME= p5cx7
|
|
CATEGORIES= misc perl5
|
|
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=ControlX10/}
|
|
|
|
MAINTAINER= damon@brodiefamily.org
|
|
HOMEPAGE= http://members.aol.com/Bbirthisel/x10.d/index.html
|
|
COMMENT= perl5 module for controlling the X10 CM17A controller
|
|
|
|
DEPENDS+= p5-Device-SerialPort>=0.070:../../comms/p5-Device-SerialPort
|
|
|
|
USE_BUILDLINK_ONLY= YES
|
|
PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/ControlX10/CM17/.packlist
|
|
|
|
# We don't actually install the example perl script, but we patch it
|
|
# to be useful, just the same.
|
|
#
|
|
post-patch:
|
|
cd ${WRKSRC}; for file in eg/eg_cm17.plx; do \
|
|
${SED} -e "s|/usr/bin/perl|${PERL5}|g" \
|
|
-e "s|/dev/ttyS0|${DEFAULT_SERIAL_DEVICE}|g" \
|
|
$${file} > $${file}.fixed; \
|
|
if [ -x $${file} ]; then \
|
|
${CHMOD} +x $${file}.fixed; \
|
|
fi; \
|
|
${MV} -f $${file}.fixed $${file}; \
|
|
done
|
|
|
|
do-configure:
|
|
@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL
|
|
|
|
.include "../../lang/perl5/buildlink.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|