aboutsummaryrefslogtreecommitdiff
path: root/games/corewars/Makefile
blob: 70be1e7365c4a59c0e25b180042fe993503adf12 (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
# New ports collection makefile for:	corewars
# Version required:		0.9.2
# Date created:			29 February 2000
# Whom:				Jim Mock <jim@FreeBSD.org>
#
# $FreeBSD$
#

DISTNAME=	corewars-0.9.2
CATEGORIES=	games
MASTER_SITES=	http://download.sourceforge.net/corewars/

MAINTAINER=	jim@FreeBSD.org

LIB_DEPENDS=	gtk12.2:${PORTSDIR}/x11-toolkits/gtk12

GTK_CONFIG?=	${X11BASE}/bin/gtk12-config
GLIB_CONFIG?=	${LOCALBASE}/bin/glib12-config

USE_X_PREFIX=	yes
GNU_CONFIGURE=	yes

CONFIGURE_ENV=	GTK_CONFIG="${GTK_CONFIG}" \
		GLIB_CONFIG="${GLIB_CONFIG}"
MAKE_ENV=	FREEBSD_CFLAGS="${CFLAGS}"

post-install:
	@strip ${PREFIX}/bin/corewars
.if !defined(NOPORTDOCS)
	@${ECHO} "===>   Installing README in ${PREFIX}/share/doc/corewars."
	@${ECHO} "===>   Please read it before playing."
	@${MKDIR} ${PREFIX}/share/doc/corewars && ${CHMOD} a+rx ${PREFIX}/share/doc/corewars
	@${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/corewars
.endif

.include <bsd.port.mk>