aboutsummaryrefslogtreecommitdiff
path: root/misc/heyu/Makefile
blob: 59c241a9d99b2f00d05fd66f07e94fcbb80daa37 (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
# New ports collection makefile for:	heyu
# Date created:		27 December 1999
# Whom:			plambert@plambert.net
#
# $FreeBSD$
#

PORTNAME=	heyu
PORTVERSION=	1.35
PORTREVISION=	2
CATEGORIES=	misc
MASTER_SITES=	http://www.heyu.org/heyu1/
DISTNAME=	x10_heyu
EXTRACT_SUFX=	.tgz

MAINTAINER=	mstowe@chicago.us.mensa.org
COMMENT=	Control a CM11A interface from the command line

CONFLICTS=	heyu2-[0-9]*

IS_INTERACTIVE=	yes
ALL_TARGET=	heyu
WRKSRC=		${WRKDIR}/heyu.dir

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

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 600105
BROKEN=		Does not compile
.endif

post-patch:
	@${REINPLACE_CMD} -E 's|/usr/local|${PREFIX}|g; \
			      s,(CC|CFLAGS) =,\1 ?=,g' \
		${WRKSRC}/Configure

do-configure:
	(cd ${WRKSRC} && ./Configure freebsd)

post-install:
	${STRIP_CMD} ${PREFIX}/bin/heyu
	${MKDIR} ${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/x10config ${EXAMPLESDIR}/x10config.sample
	${INSTALL_DATA} ${WRKSRC}/x10sched.conf.sample ${EXAMPLESDIR}

.include <bsd.port.post.mk>