aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/vpaint/Makefile
blob: bed7d22783d274598a9a88af9922d4edd41870fb (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
49
50
51
52
53
54
55
56
57
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$

PORTNAME=   vpaint
PORTVERSION=    1.7
DISTVERSIONPREFIX=  v
CATEGORIES= graphics

MAINTAINER= amdmi3@FreeBSD.org
COMMENT=    Experimental vector graphics and 2D animation editor

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>