aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/vym/Makefile
blob: da696b1aafdf1c4d0716f21c5388f74864119fc6 (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
58
59
# Created by: Gerrit Beine <tux@pinguru.net>
# $FreeBSD$

PORTNAME=   vym
PORTVERSION=    2.2.4
PORTREVISION=   1
CATEGORIES= deskutils
MASTER_SITES=   SF/vym/${PORTVERSION}

MAINTAINER= lichray@gmail.com
COMMENT=    VYM is a tool to generate and manipulate mind maps

USE_BZIP2=  yes
USE_QT4=    qmake_build uic_build moc_build \
        qt3support network xml dbus svg
QMAKE_ARGS= PREFIX=${PREFIX} \
        DATADIR=${DATADIR:C,/vym$,,} \
        DOCDIR=${DOCSDIR}
QT_LRELEASE=    ${LOCALBASE}/bin/lrelease-qt4

MAKE_JOBS_SAFE= yes
STRIP_FILES=    bin/vym

DESKTOP_ENTRIES=    "VYM" \
            "Put the things you have got in your mind into a map" \
            "${DATADIR}/icons/vym.png" \
            "vym" \
            "" \
            false

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MNLS}
USE_QT4+=   linguist_build
PLIST_SUB+= NLS=""
.else
PLIST_SUB+= NLS="@comment "
.endif

post-patch:
.if ${PORT_OPTIONS:MDOCS}
    ${REINPLACE_CMD} -e '/INSTALLS += doc/d' ${WRKSRC}/vym.pro
.endif

do-configure:
.if ${PORT_OPTIONS:MNLS}
    cd ${WRKSRC} && ${QT_LRELEASE} vym.pro
.endif
    @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${QMAKE} \
        ${QMAKEFLAGS} ${QMAKE_ARGS} vym.pro

post-install:
    ${STRIP_CMD} ${STRIP_FILES:S,^,${PREFIX}/,}
.if ${PORT_OPTIONS:MNLS}
    ${MKDIR} ${DATADIR}/lang
    ${INSTALL_DATA} ${WRKSRC}/lang/*.qm ${DATADIR}/lang/
.endif

.include <bsd.port.mk>