aboutsummaryrefslogtreecommitdiff
path: root/games/domino-chain/Makefile
blob: 0367541b79614a7595dd94dadb0428374e5c059c (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
PORTNAME=	domino-chain
PORTVERSION=	1.1
PORTREVISION=	6
CATEGORIES=	games

MAINTAINER=	amdmi3@FreeBSD.org
COMMENT=	Rearrange dominoes on different platforms to start a chain reaction
WWW=		https://domino-chain.gitlab.io/

LICENSE=	GPLv3+
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	libpng.so:graphics/png \
		libfribidi.so:converters/fribidi \
		libboost_filesystem.so:devel/boost-libs
BUILD_DEPENDS=	povray:graphics/povray-meta
RUN_DEPENDS=	${FREESANS_DIR}/FreeSans.ttf:x11-fonts/freefont-ttf

USES=		compiler:c++17-lang gettext gmake lua:52 magick:build \
		pkgconfig sdl
USE_GITLAB=	yes
GL_PROJECT=	domino-chain.gitlab.io
GL_COMMIT=	3969eaa66f753e873eca4ef33b263ca1307be2df
USE_SDL=	sdl2 mixer2 ttf2 image2

LIBS+=		${LOCALBASE}/lib/libintl.so

FREESANS_DIR=	${LOCALBASE}/share/fonts/freefont-ttf

PORTDOCS=	*
PORTDATA=	*

OPTIONS_DEFINE=	DOCS NLS
OPTIONS_SUB=	yes

post-patch:
	@${REINPLACE_CMD} -e '/fontpaths.*=/,/^}/ s|".*fonts.*"|"${FREESANS_DIR}"|' \
		${WRKSRC}/src/domino-chain/screen.cpp

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README.md ${WRKSRC}/AUTHORS ${STAGEDIR}${DOCSDIR}/

.include <bsd.port.mk>