blob: 76d7bbdaa2f292971fa6e742d6f335f980e08911 (
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
48
49
50
51
52
53
54
55
56
57
58
59
|
# Created by: Loren M. Lang <lorenl@alzatex.com>
# $FreeBSD$
PORTNAME= blobwars
PORTVERSION= 2.00
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/
MAINTAINER= nemysis@FreeBSD.org
COMMENT= Mission and Objective based 2D Platform Game
LICENSE= GPLv2+ CCbyNCSA3
LICENSE_COMB= dual
LICENSE_NAME_CCbyNCSA3=Attribution-NonCommercial-ShareAlike 3.0 Unported
LICENSE_FILE= ${WRKSRC}/doc/license
LICENSE_TEXT_CCbyNCSA3=CC-BY 3.0
LICENSE_PERMS_CCbyNCSA3=dist-mirror pkg-mirror auto-accept
USES= gmake pkgconfig
USE_SDL= image2 mixer2 net2 sdl2 ttf2
WITH_ZLIB= yes
INSTALLS_ICONS= yes
PORTDOCS= *
OPTIONS_DEFINE= DOCS NLS
OPTIONS_SUB= yes
NLS_USES= gettext
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} \
-e 's|%%LOCALBASE%%|${LOCALBASE}|' \
${WRKSRC}/Makefile
# Correct Permissions
${CHMOD} 664 ${WRKSRC}/icons/*
.if ! ${PORT_OPTIONS:MDOCS}
@${REINPLACE_CMD} \
-e 's|mkdir -p $$(DESTDIR)$$(DOCDIR)|| ; \
s|cp -p $$(DOCS) $$(DESTDIR)$$(DOCDIR)||' \
${WRKSRC}/Makefile
.endif
.if ! ${PORT_OPTIONS:MNLS}
@${REINPLACE_CMD} -i '' -e '/LOCALE_MO =/d' \
${WRKSRC}/Makefile
.endif
post-install:
${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \
${STAGEDIR}${PREFIX}/share/pixmaps/
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
.include <bsd.port.mk>
|