freebsd-ports/games/blobwars/Makefile
Jan Beich 629a8d6b69 Convert CC license names to r421995 spellings
While here fix common mistakes such as:
- Missing "or (at your option) any later version" bit
- LICENSE_FILE with LICENSE_COMB != single
- LICENSE_COMB = dual for code + assets
- Copy-pasting undocumented NC/SA restriction
2016-09-28 06:38:00 +00:00

56 lines
1.1 KiB
Makefile

# 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+ CC-BY-3.0 CC-BY-SA-3.0
LICENSE_COMB= multi
LICENSE_FILE_GPLv2+ = ${WRKSRC}/doc/license
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>