diff options
author | makc <makc@FreeBSD.org> | 2013-11-26 02:01:01 +0800 |
---|---|---|
committer | makc <makc@FreeBSD.org> | 2013-11-26 02:01:01 +0800 |
commit | e5d433bbd915367a15941a73c3079f8ad7a1b51f (patch) | |
tree | 695f8d271052730dc7b604a2d300deea8fe2d6b6 /deskutils/vym | |
parent | 280eb430d1143c038a9e70f5b6fb66ce38ccfaf2 (diff) | |
download | freebsd-ports-gnome-e5d433bbd915367a15941a73c3079f8ad7a1b51f.tar.gz freebsd-ports-gnome-e5d433bbd915367a15941a73c3079f8ad7a1b51f.tar.zst freebsd-ports-gnome-e5d433bbd915367a15941a73c3079f8ad7a1b51f.zip |
- Convert to USES=qmake
- Add state support
- Convert LIB_DEPENDS to new style, adjust USE_QT4 components, etc.
Approved by: portmgr (blanket approval)
Diffstat (limited to 'deskutils/vym')
-rw-r--r-- | deskutils/vym/Makefile | 33 |
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> |