From ec9d1ab3083a51088ec01a66c9b0b43939cb4545 Mon Sep 17 00:00:00 2001 From: Martin Wilke Date: Fri, 8 Feb 2013 09:15:22 +0000 Subject: - OptionNG - Trim header PR: 175839 175840 Submitted by: maintainer --- deskutils/znotes/Makefile | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'deskutils/znotes') diff --git a/deskutils/znotes/Makefile b/deskutils/znotes/Makefile index 48b2792dedf6..7967ebe941d7 100644 --- a/deskutils/znotes/Makefile +++ b/deskutils/znotes/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: znotes -# Date created: 2009-11-12 -# Whom: Gvozdikov Veniamin -# +# Created by: Gvozdikov Veniamin # $FreeBSD$ -# PORTNAME= znotes PORTVERSION= 0.4.5 @@ -23,7 +19,7 @@ DESKTOP_ENTRIES="zNotes" "Simple notes" \ "${PREFIX}/share/pixmaps/${PORTNAME}.png" "${PORTNAME}" \ "Utility;TextEditor;Qt;" ${FALSE} -OPTIONS= NLS "Build with NLS support" on +OPTIONS_DEFINE= NLS PLIST_FILES= bin/${PORTNAME} \ share/pixmaps/${PORTNAME}.png @@ -34,7 +30,7 @@ post-patch: @${REINPLACE_CMD} -i -e 's,QCoreApplication::applicationDirPath()+"/translations","${DATADIR}/translations",g' \ ${WRKSRC}/settings.cpp -.include +.include do-configure: cd ${WRKSRC} && ${QMAKE} ${QMAKEFLAGS} @@ -43,7 +39,7 @@ do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/${PORTNAME} ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.png ${PREFIX}/share/pixmaps/ -.if defined(WITH_NLS) +.if ${PORT_OPTIONS:MNLS} ${MKDIR} ${DATADIR}/translations ${INSTALL_DATA} ${WRKSRC}/translations/*.qm ${DATADIR}/translations PLIST_FILES+= %%DATADIR%%/translations/${PORTNAME}_cs.qm \ @@ -59,4 +55,4 @@ PLIST_DIRS+= %%DATADIR%%/translations \ .else .endif -.include +.include -- cgit v1.2.3