mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-29 01:13:08 +00:00
164508aca0
PR: ports/138785 Submitted by: Michael Stowe <mstowe AT chicago.us.mensa.org> (maintainer)
95 lines
2.4 KiB
Makefile
95 lines
2.4 KiB
Makefile
# New ports collection makefile for: heyu2
|
|
# Date created: 29 March 2004
|
|
# Whom: mstowe@chicago.us.mensa.org
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= heyu2
|
|
PORTVERSION= 2.8.0
|
|
CATEGORIES= misc
|
|
MASTER_SITES= http://www.heyu.org/download/
|
|
DISTNAME= heyu-${PORTVERSION}
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= mstowe@chicago.us.mensa.org
|
|
COMMENT= Control a CM11A interface from the command line
|
|
|
|
CONFLICTS= heyu-[0-9]*
|
|
|
|
#IS_INTERACTIVE= yes
|
|
ALL_TARGET= all
|
|
HAS_CONFIGURE= yes
|
|
CONFIGURE_SCRIPT= Configure
|
|
CONFIGURE_ARGS= freebsd
|
|
|
|
MAN1= heyu.1
|
|
MAN5= x10aux.5 \
|
|
x10config.5 \
|
|
x10cm17a.5 \
|
|
x10digimax.5 \
|
|
x10oregon.5 \
|
|
x10sched.5 \
|
|
x10scripts.5 \
|
|
x10rfxmeters.5 \
|
|
x10rfxsensors.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 \
|
|
DMX "Digimax Thermostat Support" on \
|
|
OREGON "Oregon Support" on
|
|
|
|
.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
|
|
|
|
.if !defined(WITH_DMX)
|
|
CONFIGURE_ARGS+= nodmx
|
|
.endif
|
|
|
|
.if !defined(WITH_OREGON)
|
|
CONFIGURE_ARGS+= noore
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -E 's|/usr/local|${PREFIX}|g; \
|
|
s,(CC) =,\1 ?=,g; \
|
|
s,(CFLAGS) =,\1 +=,g' \
|
|
${WRKSRC}/Configure
|
|
@${REINPLACE_CMD} -e 's|<.*termio[s]*.h|<sys/ttycom.h|g' \
|
|
${WRKSRC}/cm17a.c \
|
|
${WRKSRC}/xsync.c \
|
|
${WRKSRC}/xwrite.c
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/heyu ${PREFIX}/bin
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
${INSTALL_MAN} ${WRKSRC}/heyu.1 ${MAN1PREFIX}/man/man1
|
|
${INSTALL_MAN} ${WRKSRC}/x10aux.5 ${MAN5PREFIX}/man/man5
|
|
${INSTALL_MAN} ${WRKSRC}/x10config.5 ${MAN5PREFIX}/man/man5
|
|
${INSTALL_MAN} ${WRKSRC}/x10cm17a.5 ${MAN5PREFIX}/man/man5
|
|
${INSTALL_MAN} ${WRKSRC}/x10digimax.5 ${MAN5PREFIX}/man/man5
|
|
${INSTALL_MAN} ${WRKSRC}/x10oregon.5 ${MAN5PREFIX}/man/man5
|
|
${INSTALL_MAN} ${WRKSRC}/x10sched.5 ${MAN5PREFIX}/man/man5
|
|
${INSTALL_MAN} ${WRKSRC}/x10scripts.5 ${MAN5PREFIX}/man/man5
|
|
${INSTALL_MAN} ${WRKSRC}/x10rfxmeters.5 ${MAN5PREFIX}/man/man5
|
|
${INSTALL_MAN} ${WRKSRC}/x10rfxsensors.5 ${MAN5PREFIX}/man/man5
|
|
${INSTALL_DATA} ${WRKSRC}/x10config.sample ${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/x10.sched.sample ${EXAMPLESDIR}
|
|
|
|
.include <bsd.port.mk>
|