summaryrefslogtreecommitdiff
path: root/games/toppler/Makefile
blob: ebdd21ebfdf7c73c28534a8e9b7fba6ec7d6d4ee (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
# New ports collection makefile for:	toppler
# Date created:				18 Jan 2002
# Whom:					Dom Mitchell <dom@happygiraffe.net>
#
# $FreeBSD$
#

PORTNAME=	toppler
PORTVERSION=	1.1.1
CATEGORIES=	games
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	toppler

MAINTAINER=	dom@happygiraffe.net
COMMENT=	A game where you have to climb the tower and avoid the monsters

GNU_CONFIGURE=	yes
USE_GETTEXT=	yes
USE_GMAKE=	yes
USE_SDL=	mixer sdl
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include"  \
		LDFLAGS="-L${LOCALBASE}/lib" \
		LIBS="-lintl"
CONFIGURE_ARGS=	--program-transform-name= --localstatedir=/var/games

MAN6=		toppler.6

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500000
IGNORE=	can not be compiled because it requires mbrtowc() in libc
.endif

post-install:
	@${CHOWN} root:games ${PREFIX}/bin/toppler
	@${CHMOD} g+s ${PREFIX}/bin/toppler
	@${SETENV} "PKG_PREFIX=${PREFIX}" \
		${SH} pkg-install ${PKGNAME} POST-INSTALL

.include <bsd.port.post.mk>