Prune devel/semantic
[dports.git] / games / blobwars / Makefile
1 # Created by: Loren M. Lang <lorenl@alzatex.com>
2 # $FreeBSD$
3
4 PORTNAME=       blobwars
5 PORTVERSION=    1.19
6 PORTREVISION=   1
7 CATEGORIES=     games
8 MASTER_SITES=   SF/${PORTNAME}/
9
10 MAINTAINER=     games@FreeBSD.org
11 COMMENT=        Mission and Objective based 2D Platform Game
12
13 LICENSE=        GPLv2 CCbyNCSA3
14 LICENSE_COMB=   dual
15 LICENSE_NAME_CCbyNCSA3=Attribution-NonCommercial-ShareAlike 3.0 Unported
16 LICENSE_FILE=   ${WRKSRC}/doc/license
17 LICENSE_TEXT_CCbyNCSA3=CC-BY 3.0
18 LICENSE_PERMS_CCbyNCSA3=dist-mirror pkg-mirror auto-accept
19
20 USES=           gmake
21 USE_SDL=        image mixer net sdl ttf
22 WITH_ZLIB=      yes
23 MAKEFILE=       makefile
24
25 INSTALLS_ICONS= yes
26
27 PORTDOCS=       *.gif *.png *.html changes hacking porting readme samples
28
29 OPTIONS_DEFINE= DOCS NLS
30 OPTIONS_SUB=    yes
31
32 NLS_USES=       gettext
33
34 .include <bsd.port.options.mk>
35
36 post-patch:
37         @${REINPLACE_CMD} \
38         -e 's|mkdir -p $$(DESTDIR)$$(DOCDIR)|| ; \
39         s|cp -p $$(DOCS) $$(DESTDIR)$$(DOCDIR)|| ; \
40         s|USEPAK ?= 0|USEPAK ?= 1| ; \
41         s|/usr|${LOCALBASE}| ; \
42         s|$$(PREFIX)/games/|$$(PREFIX)/bin/| ; \
43         s|/share/games/blobwars/|/share/blobwars/| ; \
44         s| -Werror||' \
45         -e '/LIBS =/s/-lz/-lz -lintl/' \
46                 ${WRKSRC}/makefile
47
48 .if ! ${PORT_OPTIONS:MNLS}
49         @${REINPLACE_CMD} -i '' -e '/LOCALE_MO =/d' \
50                 ${WRKSRC}/makefile
51 .endif
52
53 post-install:
54         ${LN} -sf ${PREFIX}/share/icons/hicolor/64x64/apps/${PORTNAME}.png \
55                 ${STAGEDIR}${PREFIX}/share/pixmaps/
56
57         @${MKDIR} ${STAGEDIR}${DOCSDIR}
58         ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR}
59
60 .include <bsd.port.mk>