2013-07-22 16:34:22 +02:00
|
|
|
# Created by: Veniamin Gvozdikov <vg@FreeBSD.org>
|
2010-01-31 14:17:15 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= znotes
|
2011-09-12 20:40:43 +02:00
|
|
|
PORTVERSION= 0.4.5
|
2013-01-23 16:00:18 +01:00
|
|
|
PORTREVISION= 2
|
2010-01-31 14:17:15 +01:00
|
|
|
CATEGORIES= deskutils
|
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTVERSION}/
|
|
|
|
|
2013-07-22 16:34:22 +02:00
|
|
|
MAINTAINER= vg@FreeBSD.org
|
2013-11-25 18:54:08 +01:00
|
|
|
COMMENT= Simple notes managment application based on Qt 4
|
2010-01-31 14:17:15 +01:00
|
|
|
|
2011-09-12 20:40:43 +02:00
|
|
|
LICENSE= GPLv3
|
|
|
|
|
2013-11-25 18:54:08 +01:00
|
|
|
USES= qmake
|
|
|
|
USE_QT4= gui network xml uic_build moc_build rcc_build \
|
2010-07-18 23:39:37 +02:00
|
|
|
linguist_build
|
2013-11-25 18:54:08 +01:00
|
|
|
QMAKE_ARGS= QMAKE_LRELEASE=${LRELEASE}
|
2010-07-18 23:39:37 +02:00
|
|
|
|
2013-11-25 18:54:08 +01:00
|
|
|
DESKTOP_ENTRIES="zNotes" "Notes managment" \
|
2010-01-31 14:17:15 +01:00
|
|
|
"${PREFIX}/share/pixmaps/${PORTNAME}.png" "${PORTNAME}" \
|
2013-11-25 18:54:08 +01:00
|
|
|
"Utility;TextEditor;Qt;" true
|
2010-01-31 14:17:15 +01:00
|
|
|
|
2013-02-08 10:15:22 +01:00
|
|
|
OPTIONS_DEFINE= NLS
|
2014-02-08 21:13:10 +01:00
|
|
|
OPTIONS_SUB= yes
|
2010-02-08 16:09:59 +01:00
|
|
|
|
2010-01-31 14:17:15 +01:00
|
|
|
post-patch:
|
2013-11-25 18:54:08 +01:00
|
|
|
@${REINPLACE_CMD} -e '/.path =/s|/usr|$$$$PREFIX|g' \
|
|
|
|
-e '/PREFIX = /d' \
|
2010-02-08 16:09:59 +01:00
|
|
|
${WRKSRC}/${PORTNAME}.pro
|
2013-11-25 18:54:08 +01:00
|
|
|
@${REINPLACE_CMD} -i -e 's,QCoreApplication::applicationDirPath()+"/translations","${DATADIR}/translations",g' \
|
2010-02-08 16:09:59 +01:00
|
|
|
${WRKSRC}/settings.cpp
|
2013-11-28 18:49:59 +01:00
|
|
|
|
|
|
|
pre-configure:
|
2013-11-25 18:54:08 +01:00
|
|
|
#Work around badly written .pro
|
|
|
|
${LRELEASE} ${WRKSRC}/${PORTNAME}.pro
|
2010-02-08 16:09:59 +01:00
|
|
|
|
2013-02-08 10:15:22 +01:00
|
|
|
.include <bsd.port.mk>
|