Tweak print/jabref version 3.3,1
[dports.git] / games / blobwars / Makefile
1 # Created by: Loren M. Lang <lorenl@alzatex.com>
2 # $FreeBSD$
3
4 PORTNAME=       blobwars
5 PORTVERSION=    2.00
6 CATEGORIES=     games
7 MASTER_SITES=   SF/${PORTNAME}/
8
9 MAINTAINER=     nemysis@FreeBSD.org
10 COMMENT=        Mission and Objective based 2D Platform Game
11
12 LICENSE=        GPLv2+ CCbyNCSA3
13 LICENSE_COMB=   dual
14 LICENSE_NAME_CCbyNCSA3=Attribution-NonCommercial-ShareAlike 3.0 Unported
15 LICENSE_FILE=   ${WRKSRC}/doc/license
16 LICENSE_TEXT_CCbyNCSA3=CC-BY 3.0
17 LICENSE_PERMS_CCbyNCSA3=dist-mirror pkg-mirror auto-accept
18
19 USES=           gmake pkgconfig
20 USE_SDL=        image2 mixer2 net2 sdl2 ttf2
21 WITH_ZLIB=      yes
22
23 INSTALLS_ICONS= yes
24
25 PORTDOCS=       *
26
27 OPTIONS_DEFINE= DOCS NLS
28 OPTIONS_SUB=    yes
29
30 NLS_USES=       gettext
31
32 .include <bsd.port.options.mk>
33
34 post-patch:
35         @${REINPLACE_CMD} \
36                 -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
37                         ${WRKSRC}/Makefile
38
39 # Correct Permissions
40         ${CHMOD} 664 ${WRKSRC}/icons/*
41
42 .if ! ${PORT_OPTIONS:MDOCS}
43         @${REINPLACE_CMD} \
44         -e 's|mkdir -p $$(DESTDIR)$$(DOCDIR)|| ; \
45         s|cp -p $$(DOCS) $$(DESTDIR)$$(DOCDIR)||' \
46                 ${WRKSRC}/Makefile
47 .endif
48
49 .if ! ${PORT_OPTIONS:MNLS}
50         @${REINPLACE_CMD} -i '' -e '/LOCALE_MO =/d' \
51                 ${WRKSRC}/Makefile
52 .endif
53
54 post-install:
55         ${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \
56                 ${STAGEDIR}${PREFIX}/share/pixmaps/
57         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
58
59 .include <bsd.port.mk>