1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/deskutils/znotes/Makefile
Raphael Kubo da Costa b6143404a1 - Add OPTIONS_SUB=yes for the plist substitutions (and thus make package) to
work.
- Remove .desktop entry from the plist, as it is added automatically by
  DESKTOP_ENTRIES in the Makefile.

MFH:		2014Q1
2014-02-08 20:13:10 +00:00

39 lines
957 B
Makefile

# 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
USES= qmake
USE_QT4= gui network xml uic_build moc_build rcc_build \
linguist_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>