aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/znotes/Makefile
blob: 5aeac1f38ce2acd1236633d5f92b74493aaaef35 (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
# Created by: Veniamin Gvozdikov <vg@FreeBSD.org>
# $FreeBSD$

PORTNAME=   znotes
PORTVERSION=    0.4.5
PORTREVISION=   2
CATEGORIES= deskutils
MASTER_SITES=   SF/${PORTNAME}/${PORTVERSION}/

MAINTAINER= vg@FreeBSD.org
COMMENT=    Simple notes managment application based on Qt 4

LICENSE=    GPLv3
LICENSE_FILE=   ${WRKSRC}/LICENSE

USES=       qmake
USE_QT4=    corelib gui network xml uic_build moc_build rcc_build \
        linguisttools_build
QMAKE_ARGS= QMAKE_LRELEASE=${LRELEASE}

DESKTOP_ENTRIES="zNotes" "Notes managment" \
        "${PREFIX}/share/pixmaps/${PORTNAME}.png" "${PORTNAME}" \
        "Utility;TextEditor;Qt;" true

OPTIONS_DEFINE=     NLS
OPTIONS_SUB=        yes

post-patch:
    @${REINPLACE_CMD} -e '/.path =/s|/usr|$$$$PREFIX|g' \
        -e '/PREFIX = /d' \
        ${WRKSRC}/${PORTNAME}.pro
    @${REINPLACE_CMD} -i -e 's,QCoreApplication::applicationDirPath()+"/translations","${DATADIR}/translations",g' \
        ${WRKSRC}/settings.cpp

pre-configure:
#Work around badly written .pro
    ${LRELEASE} ${WRKSRC}/${PORTNAME}.pro

.include <bsd.port.mk>