aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/nagaina/Makefile
blob: d46d17512269616fe15055ebfc722624ad79e8f7 (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
60
# Created by: Yinghong Liu <relaxbsd@gmail.com>
# $FreeBSD$

PORTNAME=   nagaina
PORTVERSION=    0.1.2
DISTVERSIONSUFFIX=  -sources
PORTREVISION=   6
CATEGORIES= deskutils
MASTER_SITES=   GOOGLE_CODE

MAINTAINER= ports@FreeBSD.org
COMMENT=    Notes-taking application based on Qt4

LICENSE=    GPLv2

LIB_DEPENDS=    pthread-stubs:${PORTSDIR}/devel/libpthread-stubs \
        pcre:${PORTSDIR}/devel/pcre \
        png15:${PORTSDIR}/graphics/png \
        freetype:${PORTSDIR}/print/freetype2 \
        expat:${PORTSDIR}/textproc/expat2 \
        fontconfig:${PORTSDIR}/x11-fonts/fontconfig

OPTIONS_DEFINE= DOCS

WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}

USES=       gettext iconv
USE_GNOME=  glib20
USE_QT4=    corelib gui xml moc_build qmake_build rcc_build uic_build
USE_XORG=   ice sm x11 xau xcb xdmcp xext xrender
MAKE_JOBS_SAFE= yes

PORTDOCS=   CHANGELOG TODO
PLIST_FILES=    bin/${PORTNAME} share/pixmaps/${PORTNAME}.png

DESKTOP_ENTRIES=    "Nagaina" \
            "${COMMENT}" \
            "${PREFIX}/share/pixmaps/${PORTNAME}.png" \
            "${PORTNAME}" \
            "Qt;Office;Utility;" \
            "false"

.include <bsd.port.options.mk>

do-configure:
    @(cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${QMAKE} ${QMAKEFLAGS})

post-install:
    (cd ${WRKSRC}/bin \
        && ${INSTALL_PROGRAM} ${PORTNAME} ${PREFIX}/bin)
    (cd ${WRKSRC}/images \
        && ${INSTALL_DATA} ${PORTNAME}.png ${PREFIX}/share/pixmaps)
.if ${PORT_OPTIONS:MDOCS}
    @${MKDIR} ${DOCSDIR}
.for doc in ${PORTDOCS}
    (cd ${WRKSRC} && ${INSTALL_DATA} ${doc} ${DOCSDIR})
.endfor
.endif

.include <bsd.port.mk>