2005-06-11 12:18:39 +00:00
|
|
|
# New ports collection makefile for: heyu2
|
|
|
|
# Date created: 29 March 2004
|
|
|
|
# Whom: mstowe@chicago.us.mensa.org
|
2000-01-05 13:30:35 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2005-06-11 12:18:39 +00:00
|
|
|
PORTNAME= heyu2
|
2009-09-14 15:00:23 +00:00
|
|
|
PORTVERSION= 2.8.0
|
2000-01-05 13:30:35 +00:00
|
|
|
CATEGORIES= misc
|
2006-02-22 18:57:17 +00:00
|
|
|
MASTER_SITES= http://www.heyu.org/download/
|
2007-07-12 10:50:31 +00:00
|
|
|
DISTNAME= heyu-${PORTVERSION}
|
2000-01-05 13:30:35 +00:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2005-06-11 12:18:39 +00:00
|
|
|
MAINTAINER= mstowe@chicago.us.mensa.org
|
2003-02-21 12:51:06 +00:00
|
|
|
COMMENT= Control a CM11A interface from the command line
|
2000-01-05 13:30:35 +00:00
|
|
|
|
2006-02-22 18:57:17 +00:00
|
|
|
CONFLICTS= heyu-[0-9]*
|
2005-07-25 11:51:05 +00:00
|
|
|
|
2005-06-11 12:18:39 +00:00
|
|
|
#IS_INTERACTIVE= yes
|
2005-07-18 16:20:51 +00:00
|
|
|
ALL_TARGET= all
|
2005-06-11 12:18:39 +00:00
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
CONFIGURE_SCRIPT= Configure
|
|
|
|
CONFIGURE_ARGS= freebsd
|
|
|
|
|
2005-07-18 16:20:51 +00:00
|
|
|
MAN1= heyu.1
|
2009-04-06 16:46:28 +00:00
|
|
|
MAN5= x10aux.5 \
|
|
|
|
x10config.5 \
|
|
|
|
x10cm17a.5 \
|
|
|
|
x10digimax.5 \
|
|
|
|
x10oregon.5 \
|
2005-07-18 16:20:51 +00:00
|
|
|
x10sched.5 \
|
2008-04-04 12:32:00 +00:00
|
|
|
x10scripts.5 \
|
2009-04-06 16:46:28 +00:00
|
|
|
x10rfxmeters.5 \
|
|
|
|
x10rfxsensors.5
|
2008-04-04 12:32:00 +00:00
|
|
|
|
|
|
|
OPTIONS= CM17A "X10 CM17A \"Firecracker\" Support" on \
|
|
|
|
EXTENDED "Extended Type 0 (Shutter/Shade) Support" on \
|
|
|
|
RFXSENS "RFXSensors (RF) Support" on \
|
2008-11-06 16:53:57 +00:00
|
|
|
RFXMETER "RFXMeter (RF) Support" on \
|
|
|
|
DMX "Digimax Thermostat Support" on \
|
|
|
|
OREGON "Oregon Support" on
|
2008-04-04 12:32:00 +00:00
|
|
|
|
|
|
|
.if !defined(WITH_CM17A)
|
|
|
|
CONFIGURE_ARGS+= nocm17a
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITH_EXTENDED)
|
|
|
|
CONFIGURE_ARGS+= noext0
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITH_RFXSENS)
|
|
|
|
CONFIGURE_ARGS+= norfxs
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITH_RFXMETER)
|
|
|
|
CONFIGURE_ARGS+= norfxm
|
|
|
|
.endif
|
2005-06-11 12:18:39 +00:00
|
|
|
|
2008-11-06 16:53:57 +00:00
|
|
|
.if !defined(WITH_DMX)
|
|
|
|
CONFIGURE_ARGS+= nodmx
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITH_OREGON)
|
|
|
|
CONFIGURE_ARGS+= noore
|
|
|
|
.endif
|
|
|
|
|
2005-06-11 12:18:39 +00:00
|
|
|
post-patch:
|
2006-02-22 18:57:17 +00:00
|
|
|
@${REINPLACE_CMD} -E 's|/usr/local|${PREFIX}|g; \
|
2006-07-25 12:19:25 +00:00
|
|
|
s,(CC) =,\1 ?=,g; \
|
|
|
|
s,(CFLAGS) =,\1 +=,g' \
|
2006-02-22 18:57:17 +00:00
|
|
|
${WRKSRC}/Configure
|
|
|
|
@${REINPLACE_CMD} -e 's|<.*termio[s]*.h|<sys/ttycom.h|g' \
|
|
|
|
${WRKSRC}/cm17a.c \
|
|
|
|
${WRKSRC}/xsync.c \
|
|
|
|
${WRKSRC}/xwrite.c
|
2005-06-11 12:18:39 +00:00
|
|
|
|
|
|
|
do-install:
|
2005-07-18 16:20:51 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/heyu ${PREFIX}/bin
|
2005-06-11 12:18:39 +00:00
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
2005-07-18 16:20:51 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/heyu.1 ${MAN1PREFIX}/man/man1
|
2009-04-06 16:46:28 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/x10aux.5 ${MAN5PREFIX}/man/man5
|
2005-07-18 16:20:51 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/x10config.5 ${MAN5PREFIX}/man/man5
|
2009-04-06 16:46:28 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/x10cm17a.5 ${MAN5PREFIX}/man/man5
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/x10digimax.5 ${MAN5PREFIX}/man/man5
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/x10oregon.5 ${MAN5PREFIX}/man/man5
|
2005-07-18 16:20:51 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/x10sched.5 ${MAN5PREFIX}/man/man5
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/x10scripts.5 ${MAN5PREFIX}/man/man5
|
2008-04-04 12:32:00 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/x10rfxmeters.5 ${MAN5PREFIX}/man/man5
|
2009-04-06 16:46:28 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/x10rfxsensors.5 ${MAN5PREFIX}/man/man5
|
2005-06-11 12:18:39 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/x10config.sample ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/x10.sched.sample ${EXAMPLESDIR}
|
2000-01-05 13:30:35 +00:00
|
|
|
|
2008-04-22 15:46:05 +00:00
|
|
|
.include <bsd.port.mk>
|