aboutsummaryrefslogtreecommitdiffstats
path: root/misc/heyu2/Makefile
blob: 118b9a1b90dd50526edfb57cef015d2ed9deebc8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# New ports collection makefile for:    heyu2
# Date created:     29 March 2004
# Whom:         mstowe@chicago.us.mensa.org
#
# $FreeBSD$
#

PORTNAME=   heyu2
PORTVERSION=    2.0.b.10
CATEGORIES= misc
MASTER_SITES=   http://www.heyu.org/download/
DISTNAME=   heyu-2.0beta.10
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
WRKSRC=     ${WRKDIR}/heyu-2.0beta.10
HAS_CONFIGURE=  yes
CONFIGURE_SCRIPT=   Configure
CONFIGURE_ARGS= freebsd

MAN1=       heyu.1
MAN5=       x10config.5 \
        x10sched.5 \
        x10scripts.5

.include <bsd.port.pre.mk>

post-patch:
    @${REINPLACE_CMD} -E 's|/usr/local|${PREFIX}|g; \
                 s,(CC) =,\1 ?=,g; \
                 s,(CFLAGS) =,\1 +=,g' \
        ${WRKSRC}/Configure
.if ${OSVERSION} >= 500000
    @${REINPLACE_CMD} -e 's|<.*termio[s]*.h|<sys/ttycom.h|g' \
        ${WRKSRC}/cm17a.c \
        ${WRKSRC}/xsync.c \
        ${WRKSRC}/xwrite.c
.else
    @${REINPLACE_CMD} -e 's|<.*termio[s]*.h|<sys/termios.h|g' \
        ${WRKSRC}/cm17a.c \
        ${WRKSRC}/xsync.c \
        ${WRKSRC}/xwrite.c
.endif

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/heyu ${PREFIX}/bin
    ${MKDIR} ${EXAMPLESDIR}
    ${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
    ${INSTALL_DATA} ${WRKSRC}/x10config.sample ${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/x10.sched.sample ${EXAMPLESDIR}

.include <bsd.port.post.mk>