Update games/stransball2 to version 1.5_10
[dports.git] / games / numptyphysics / Makefile
1 # Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
2 # $FreeBSD$
3
4 PORTNAME=       numptyphysics
5 DISTVERSION=    0.3.r20090104
6 PORTREVISION=   9
7 CATEGORIES=     games
8 MASTER_SITES=   http://mirror.amdmi3.ru/distfiles/ \
9                 ftp://ftp.openbsd.org/pub/OpenBSD/distfiles/ \
10                 ftp://ftp3.usa.openbsd.org/pub/OpenBSD/distfiles/
11
12 MAINTAINER=     amdmi3@FreeBSD.org
13 COMMENT=        Drawing physics-based puzzle game
14
15 USES=           tar:bzip2 desktop-file-utils
16 GNU_CONFIGURE=  yes
17 USE_SDL=        sdl image
18 INSTALLS_ICONS= yes
19
20 CONFIGURE_ENV=  AUTOMAKE="${TRUE}" ACLOCAL="${TRUE}" MISSING="${TRUE}"
21 LDFLAGS+=       -L${LOCALBASE}/lib ${PTHREAD_LIBS}
22 CPPFLAGS+=      -I${LOCALBASE}/include -DINSTALL_BASE_PATH=\"\\\"${DATADIR}\\\"\"
23
24 WRKSRC=         ${WRKDIR}/${PORTNAME}
25
26 OPTIONS_DEFINE= MOREFPS
27 OPTIONS_DEFAULT=MOREFPS
28 MOREFPS_DESC=   Smoother graphics support
29
30 .include <bsd.port.options.mk>
31
32 post-patch:
33 .if ${PORT_OPTIONS:MMOREFPS}
34         @${REINPLACE_CMD} -e '/define RENDER_RATE/ s|20|60|' \
35                 ${WRKSRC}/Config.h
36 .endif
37         @${CHMOD} a+x ${WRKSRC}/install-sh
38         @${REINPLACE_CMD} -e 's|\(desktopentrydir=\).*|\1${PREFIX}/share/applications|' \
39                 ${WRKSRC}/configure ${WRKSRC}/configure.in
40         @${REINPLACE_CMD} -e 's|^Exec=.*|Exec=${PORTNAME}|; /^X-Icon-Path/ d' \
41                 ${WRKSRC}/data/${PORTNAME}.desktop
42
43 post-build:
44         ${STRIP_CMD} ${WRKSRC}/${PORTNAME}
45
46 .include <bsd.port.mk>