aboutsummaryrefslogtreecommitdiff
path: root/games/legend-of-edgar/Makefile
blob: bc2d61d55b154d7a2da881a896399d18aff1073f (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
PORTNAME=	edgar
DISTVERSION=	1.36
CATEGORIES=	games
MASTER_SITES=	https://github.com/riksweeney/edgar/releases/download/${DISTVERSION}/
PKGNAMEPREFIX=	legend-of-
DISTFILES=	edgar-${DISTVERSION}-1${EXTRACT_SUFX}

MAINTAINER=	makc@FreeBSD.org
COMMENT=	2D platform game with a persistent world
WWW=		https://www.parallelrealities.co.uk/games/edgar/

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/doc/license

LIB_DEPENDS=	libpng.so:graphics/png

USES=		gmake sdl
USE_SDL=	image2 mixer2 sdl2 ttf2
MAKEFILE=	makefile
MAKE_ARGS=	BIN_DIR=${PREFIX}/bin/ \
		DATA_DIR=${DATADIR}/ \
		PREFIX=${PREFIX}

OPTIONS_DEFINE=	DOCS NLS
OPTIONS_SUB=	yes

NLS_USES=		gettext-tools
NLS_MAKE_ARGS_OFF=	LOCALE_MO=""

post-patch:
	${REINPLACE_CMD} -e 's|Categories=Game;|Categories=Game;ArcadeGame;|' \
		${WRKSRC}/icons/${PORTNAME}.desktop

post-install:
	${RLN} ${STAGEDIR}${PREFIX}/share/icons/hicolor/128x128/apps/${PORTNAME}.png \
		${STAGEDIR}${PREFIX}/share/pixmaps/

.include <bsd.port.mk>