summaryrefslogtreecommitdiff
path: root/games/numptyphysics/Makefile
blob: 586a9ac924fa77d654801cfd8b21de0e89f60077 (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
# New ports collection makefile for:	numptyphysics
# Date created:		04 Jan 2009
# Whom:			Dmitry Marakasov <amdmi3@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	numptyphysics
DISTVERSION=	0.3.r20090104
PORTREVISION=	3
CATEGORIES=	games
MASTER_SITES=	http://mirror.amdmi3.ru/distfiles/ \
		ftp://ftp.openbsd.org/pub/OpenBSD/distfiles/ \
		ftp://ftp3.usa.openbsd.org/pub/OpenBSD/distfiles/

MAINTAINER=	amdmi3@FreeBSD.org
COMMENT=	Drawing physics-based puzzle game

USE_BZIP2=	yes
GNU_CONFIGURE=	yes
USE_SDL=	sdl image
INSTALLS_ICONS=	yes

CONFIGURE_ENV=	LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" \
		CPPFLAGS="-I${LOCALBASE}/include -DINSTALL_BASE_PATH=\"\\\"${DATADIR}\\\"\""

WRKSRC=		${WRKDIR}/${PORTNAME}

OPTIONS=	MOREFPS "More FPS for smoother graphics" on

.include <bsd.port.pre.mk>

post-patch:
.if !defined(WITHOUT_MOREFPS)
	@${REINPLACE_CMD} -e '/define RENDER_RATE/ s|20|60|' \
		${WRKSRC}/Config.h
.endif
	@${CHMOD} a+x ${WRKSRC}/install-sh
	@${REINPLACE_CMD} -e 's|\(desktopentrydir=\).*|\1${PREFIX}/share/applications|' \
		${WRKSRC}/configure ${WRKSRC}/configure.in
	@${REINPLACE_CMD} -e 's|^Exec=.*|Exec=${PORTNAME}|; /^X-Icon-Path/ d' \
		${WRKSRC}/data/${PORTNAME}.desktop

post-install:
	@${STRIP_CMD} ${PREFIX}/bin/${PORTNAME}

.include <bsd.port.post.mk>