aboutsummaryrefslogtreecommitdiff
path: root/graphics/tiled/Makefile
blob: 8a9617e0cfab232fc4275a69d70082163621b771 (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
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$

PORTNAME=	tiled
PORTVERSION=	1.5.0
DISTVERSIONPREFIX=	v
CATEGORIES=	graphics editors games

MAINTAINER=	amdmi3@FreeBSD.org
COMMENT=	General purpose tile map editor

LICENSE=	BSD2CLAUSE BSD3CLAUSE GPLv2+
LICENSE_COMB=	multi

LIB_DEPENDS=	libzstd.so:archivers/zstd

USE_GITHUB=	yes
GH_ACCOUNT=	bjorn

USES=		compiler:c++14-lang desktop-file-utils gl qmake qt:5 \
		shared-mime-info xorg
USE_QT=		core gui widgets opengl network declarative \
		buildtools_build linguisttools_build
USE_GL=		gl
USE_LDCONFIG=	yes
QMAKE_ARGS=	SYSTEM_ZSTD=yes

PORTDOCS=	*

OPTIONS_DEFINE=	PYTHON DOCS
OPTIONS_DEFAULT=PYTHON
OPTIONS_SUB=	yes

PYTHON_DESC=	Enable python plugin
PYTHON_USES=	pkgconfig python:3.6+
PYTHON_QMAKE_OFF=	DISABLE_PYTHON_PLUGIN=yes

post-patch-PYTHON-on:
	@${REINPLACE_CMD} -e 's|python3|python-${PYTHON_VER}|' \
		${WRKSRC}/src/plugins/python/find_python.pri

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

.include <bsd.port.mk>