summaryrefslogtreecommitdiff
path: root/graphics/vpaint/Makefile
blob: 940b48c0cef49ba71bb0bf13b0018389c34735e1 (plain)
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
PORTNAME=	vpaint
PORTVERSION=	1.7
PORTREVISION=	2
DISTVERSIONPREFIX=	v
CATEGORIES=	graphics

MAINTAINER=	amdmi3@FreeBSD.org
COMMENT=	Experimental vector graphics and 2D animation editor
WWW=		https://www.vpaint.org/

LICENSE=	APACHE20
LICENSE_FILE=	${WRKSRC}/LICENSE

USE_GITHUB=	yes
GH_ACCOUNT=	dalboris

USES=		compiler:c++11-lib eigen:3 gl qmake qt:5
USE_QT=		core gui widgets opengl network qmake_build buildtools_build
USE_GL=		gl glu glew

QMAKE_SOURCE_PATH=	${WRKSRC}/src/Gui

CXXFLAGS+=	-isystem ${LOCALBASE}/include/eigen3

PORTDOCS=	*
PORTEXAMPLES=	*

DESKTOP_ENTRIES="VPaint" \
		"Vector-Based Animation Editor" \
		"VPaint" \
		"VPaint" \
		"Graphics;" \
		""

OPTIONS_DEFINE=	DOCS EXAMPLES

post-extract:
	@${RM} -r ${WRKSRC}/src/Third

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/VPaint ${STAGEDIR}${PREFIX}/bin
.for s in 16 32 48 256
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}x${s}
	${INSTALL_DATA} ${WRKSRC}/src/Gui/images/icon-${s}.png \
		${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}x${s}/VPaint.png
.endfor

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

do-install-EXAMPLES-on:
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/examples/*.vec ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>