aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/vym/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'deskutils/vym/Makefile')
-rw-r--r--deskutils/vym/Makefile33
1 files changed, 12 insertions, 21 deletions
diff --git a/deskutils/vym/Makefile b/deskutils/vym/Makefile
index 4268cd5c8011..fa945c0e00a1 100644
--- a/deskutils/vym/Makefile
+++ b/deskutils/vym/Makefile
@@ -10,13 +10,12 @@ MASTER_SITES= SF/vym/${PORTVERSION}
MAINTAINER= lichray@gmail.com
COMMENT= VYM is a tool to generate and manipulate mind maps
+USES= qmake
USE_BZIP2= yes
-USE_QT4= qmake_build uic_build moc_build \
+USE_QT4= uic_build moc_build \
qt3support network xml dbus svg
-QMAKE_ARGS= PREFIX=${PREFIX} \
- DATADIR=${DATADIR:C,/vym$,,} \
+QMAKE_ARGS= DATADIR=${DATADIR:C,/vym$,,} \
DOCDIR=${DOCSDIR}
-QT_LRELEASE= ${LOCALBASE}/bin/lrelease-qt4
STRIP_FILES= bin/vym
@@ -25,35 +24,27 @@ DESKTOP_ENTRIES= "VYM" \
"${DATADIR}/icons/vym.png" \
"vym" \
"" \
- false
+ true
-NO_STAGE= yes
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE= NLS
+OPTIONS_SUB= yes
+NLS_USE= QT4=linguist_build
-.if ${PORT_OPTIONS:MNLS}
-USE_QT4+= linguist_build
-PLIST_SUB+= NLS=""
-.else
-PLIST_SUB+= NLS="@comment "
-.endif
+.include <bsd.port.options.mk>
post-patch:
.if !${PORT_OPTIONS:MDOCS}
${REINPLACE_CMD} -e '/INSTALLS += doc/d' ${WRKSRC}/vym.pro
.endif
-
-do-configure:
.if ${PORT_OPTIONS:MNLS}
- cd ${WRKSRC} && ${QT_LRELEASE} vym.pro
+ cd ${WRKSRC} && ${LRELEASE} vym.pro
.endif
- @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${QMAKE} \
- ${QMAKEFLAGS} ${QMAKE_ARGS} vym.pro
post-install:
- ${STRIP_CMD} ${STRIP_FILES:S,^,${PREFIX}/,}
+ ${STRIP_CMD} ${STRIP_FILES:S,^,${STAGEDIR}${PREFIX}/,}
.if ${PORT_OPTIONS:MNLS}
- ${MKDIR} ${DATADIR}/lang
- ${INSTALL_DATA} ${WRKSRC}/lang/*.qm ${DATADIR}/lang/
+ ${MKDIR} ${STAGEDIR}${DATADIR}/lang
+ ${INSTALL_DATA} ${WRKSRC}/lang/*.qm ${STAGEDIR}${DATADIR}/lang/
.endif
.include <bsd.port.mk>