--- znotes/Makefile 2013-02-04 22:23:20.716243747 +0400 +++ znotes/Makefile 2013-02-04 17:13:42.692303834 +0400 @@ -1,13 +1,9 @@ -# New ports collection makefile for: znotes -# Date created: 2009-11-12 -# Whom: Gvozdikov Veniamin -# -# $FreeBSD: ports/deskutils/znotes/Makefile,v 1.13 2013/01/23 15:05:32 svnexp Exp $ -# +# Created by: Gvozdikov Veniamin +# $FreeBSD$ PORTNAME= znotes PORTVERSION= 0.4.5 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= deskutils MASTER_SITES= SF/${PORTNAME}/${PORTVERSION}/ @@ -23,7 +19,8 @@ "${PREFIX}/share/pixmaps/${PORTNAME}.png" "${PORTNAME}" \ "Utility;TextEditor;Qt;" ${FALSE} -OPTIONS= NLS "Build with NLS support" on +OPTIONS_DEFINE= NLS +NLS_DESC= Build with NLS support PLIST_FILES= bin/${PORTNAME} \ share/pixmaps/${PORTNAME}.png @@ -34,7 +31,7 @@ @${REINPLACE_CMD} -i -e 's,QCoreApplication::applicationDirPath()+"/translations","${DATADIR}/translations",g' \ ${WRKSRC}/settings.cpp -.include +.include do-configure: cd ${WRKSRC} && ${QMAKE} ${QMAKEFLAGS} @@ -43,7 +40,7 @@ ${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 +56,4 @@ .else .endif -.include +.include