aboutsummaryrefslogtreecommitdiff
path: root/games/toppler/Makefile
blob: 88ebd8fe54bdf94b69e7b7a713530fab3b38c3d7 (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:	toppler
# Date created:				18 Jan 2002
# Whom:					Dom Mitchell <dom@happygiraffe.net>
#
# $FreeBSD$
#

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

MAINTAINER=	ports@FreeBSD.org
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>