aboutsummaryrefslogtreecommitdiff
path: root/games/gnurobots/Makefile
blob: aaefd2045c99508755c0d5d8e4c844ebc2bc719b (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
# Created by: Aaron VonderHaar <avh4@usa.net>

PORTNAME=	gnurobots
PORTVERSION=	1.2.0
PORTREVISION=	14
CATEGORIES=	games
MASTER_SITES=	GNU \
		SF/nemysisfreebsdp/${CATEGORIES}/:icons
DISTFILES=	${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
		${PORTNAME}.png:icons
EXTRACT_ONLY=	${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}

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

LICENSE=	GPLv3+
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libguile.so:lang/guile1

USES=		gnome pkgconfig readline
USE_GNOME=	vte
GNU_CONFIGURE=	yes

CFLAGS+=	-O0
CPPFLAGS+=	-I${LOCALBASE}/include -w
LDFLAGS+=	-L${LOCALBASE}/lib -pthread

PORTDOCS=	*

OPTIONS_DEFINE=	DOCS

SUB_FILES=	pkg-install pkg-message

DESKTOP_ENTRIES="GNU Robots" "" "${PORTNAME}" \
		"${PORTNAME}" "Game;ArcadeGame;" ""

post-patch:
	@${REINPLACE_CMD} -e 's|^CFLAGS=|#CFLAGS=|g' ${WRKSRC}/configure
	@${REINPLACE_CMD} -e 's|#include <pty.h>||g' ${WRKSRC}/src/ui-cmdwin.c
	@${REINPLACE_CMD} -E 's,(readline.h|history.h),readline/\1,' ${WRKSRC}/src/ui-cmdwin.c

post-install:
	${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
		${STAGEDIR}${PREFIX}/share/pixmaps/
	cd ${WRKSRC} && ${COPYTREE_SHARE} "AUTHORS ChangeLog NEWS README THANKS \
		doc/Robots-HOWTO doc/contrib" ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>