summaryrefslogtreecommitdiff
path: root/games/gnurobots/Makefile
blob: c4855cb9255186326ba5e60cb7a83e52d8d3aa49 (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
# New ports collection makefile for:	gnurobots
# Date created:				22 Sept 2000
# Whom:					Aaron VonderHaar <avh4@usa.net>
#
# $FreeBSD$
#

PORTNAME=	gnurobots
PORTVERSION=	1.0D
CATEGORIES=	games
MASTER_SITES=	${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR=	gnurobots

MAINTAINER=	ports@FreeBSD.org
COMMENT=	GNU diversion wherein Scheme-coded robots explore a world

LIB_DEPENDS=	guile.10:${PORTSDIR}/lang/guile

GNU_CONFIGURE=	yes
USE_XPM=	yes
USE_XLIB=	yes

pre-patch:
	${CP} ${WRKSRC}/getopt/getopt.h ${WRKSRC}/include
	${CP} ${WRKSRC}/getopt/getopt.c ${WRKSRC}/src
	${CP} ${WRKSRC}/getopt/getopt1.c ${WRKSRC}/src

do-install:
	${MKDIR} ${PREFIX}/share/gnurobots/maps ${PREFIX}/share/gnurobots/scheme \
		${PREFIX}/share/doc/gnurobots
	${INSTALL_PROGRAM} ${WRKSRC}/src/robots ${PREFIX}/bin/gnurobots
	${INSTALL_PROGRAM} ${WRKSRC}/src/robots_logfile ${PREFIX}/bin/gnurobots_logfile
	${INSTALL_PROGRAM} ${WRKSRC}/src/xrobots ${PREFIX}/bin/xgnurobots
	${INSTALL_DATA} ${WRKSRC}/maps/* ${PREFIX}/share/gnurobots/maps/
	${INSTALL_DATA} ${WRKSRC}/scheme/* ${PREFIX}/share/gnurobots/scheme/
	${INSTALL_MAN} ${WRKSRC}/doc/* ${PREFIX}/share/doc/gnurobots/

post-install:
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>