2005-06-11 14:18:39 +02:00
|
|
|
# New ports collection makefile for: heyu2
|
|
|
|
# Date created: 29 March 2004
|
|
|
|
# Whom: mstowe@chicago.us.mensa.org
|
2000-01-05 14:30:35 +01:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2005-06-11 14:18:39 +02:00
|
|
|
PORTNAME= heyu2
|
2008-04-04 14:32:00 +02:00
|
|
|
PORTVERSION= 2.2.0
|
2000-01-05 14:30:35 +01:00
|
|
|
CATEGORIES= misc
|
2006-02-22 19:57:17 +01:00
|
|
|
MASTER_SITES= http://www.heyu.org/download/
|
2007-07-12 12:50:31 +02:00
|
|
|
DISTNAME= heyu-${PORTVERSION}
|
2000-01-05 14:30:35 +01:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2005-06-11 14:18:39 +02:00
|
|
|
MAINTAINER= mstowe@chicago.us.mensa.org
|
2003-02-21 13:51:06 +01:00
|
|
|
COMMENT= Control a CM11A interface from the command line
|
2000-01-05 14:30:35 +01:00
|
|
|
|
2006-02-22 19:57:17 +01:00
|
|
|
CONFLICTS= heyu-[0-9]*
|
2005-07-25 13:51:05 +02:00
|
|
|
|
2005-06-11 14:18:39 +02:00
|
|
|
#IS_INTERACTIVE= yes
|
2005-07-18 18:20:51 +02:00
|
|
|
ALL_TARGET= all
|
2005-06-11 14:18:39 +02:00
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
CONFIGURE_SCRIPT= Configure
|
|
|
|
CONFIGURE_ARGS= freebsd
|
|
|
|
|
2005-07-18 18:20:51 +02:00
|
|
|
MAN1= heyu.1
|
|
|
|
MAN5= x10config.5 \
|
|
|
|
x10sched.5 \
|
2008-04-04 14:32:00 +02:00
|
|
|
x10scripts.5 \
|
|
|
|
x10rfxmeters.5
|
|
|
|
|
|
|
|
OPTIONS= CM17A "X10 CM17A \"Firecracker\" Support" on \
|
|
|
|
EXTENDED "Extended Type 0 (Shutter/Shade) Support" on \
|
|
|
|
RFXSENS "RFXSensors (RF) Support" on \
|
|
|
|
RFXMETER "RFXMeter (RF) Support" on
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.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 14:18:39 +02:00
|
|
|
|
|
|
|
post-patch:
|
2006-02-22 19:57:17 +01:00
|
|
|
@${REINPLACE_CMD} -E 's|/usr/local|${PREFIX}|g; \
|
2006-07-25 14:19:25 +02:00
|
|
|
s,(CC) =,\1 ?=,g; \
|
|
|
|
s,(CFLAGS) =,\1 +=,g' \
|
2006-02-22 19:57:17 +01: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 14:18:39 +02:00
|
|
|
|
|
|
|
do-install:
|
2005-07-18 18:20:51 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/heyu ${PREFIX}/bin
|
2005-06-11 14:18:39 +02:00
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
2005-07-18 18:20:51 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/heyu.1 ${MAN1PREFIX}/man/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/x10config.5 ${MAN5PREFIX}/man/man5
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/x10sched.5 ${MAN5PREFIX}/man/man5
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/x10scripts.5 ${MAN5PREFIX}/man/man5
|
2008-04-04 14:32:00 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/x10rfxmeters.5 ${MAN5PREFIX}/man/man5
|
2005-06-11 14:18:39 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/x10config.sample ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/x10.sched.sample ${EXAMPLESDIR}
|
2000-01-05 14:30:35 +01:00
|
|
|
|
2008-04-04 14:32:00 +02:00
|
|
|
.include <bsd.port.post.mk>
|