1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-19 03:52:17 +00:00
freebsd-ports/deskutils/vym/Makefile
Tobias C. Berner b1a1d38bf9 Replace bsd.qt.mk by Uses/qt.mk and Uses/qt-dist.mk
From now on, ports that depend on Qt4 will have to set
	USES=		qt:4
	USE_QT=		foo bar
ports depending on Qt5 will use
	USES=		qt:5
	USE_QT=		foo bar

PR:		229225
Exp-run by:	antoine
Reviewed by:	mat
Approved by:	portmgr (antoine)
Differential Revision:	→https://reviews.freebsd.org/D15540
2018-06-28 17:39:53 +00:00

54 lines
1.2 KiB
Makefile

# Created by: Gerrit Beine <tux@pinguru.net>
# $FreeBSD$
PORTNAME= vym
PORTVERSION= 2.2.4
PORTREVISION= 3
CATEGORIES= deskutils
MASTER_SITES= SF/vym/Archive/${PORTVERSION}
MAINTAINER= lichray@gmail.com
COMMENT= VYM is a tool to generate and manipulate mind maps
USES= qmake qt:4 shebangfix tar:bzip2
SHEBANG_FILES= scripts/makedist-vym scripts/vivym
USE_QT= uic_build moc_build qt3support_build \
network xml dbus svg
QMAKE_ARGS= DATADIR=${DATADIR:C,/vym$,,} \
DOCDIR=${DOCSDIR}
STRIP_FILES= bin/vym
DESKTOP_ENTRIES= "VYM" \
"Put the things you have got in your mind into a map" \
"${DATADIR}/icons/vym.png" \
"vym" \
"" \
true
OPTIONS_DEFINE= NLS DOCS
OPTIONS_SUB= yes
NLS_USES= qt:4
NLS_USE= QT=linguist_build
.include <bsd.port.options.mk>
post-patch:
.if !${PORT_OPTIONS:MDOCS}
${REINPLACE_CMD} -e '/INSTALLS += doc/d' ${WRKSRC}/vym.pro
.endif
pre-configure:
.if ${PORT_OPTIONS:MNLS}
${LRELEASE} ${WRKSRC}/vym.pro
.endif
post-install:
${STRIP_CMD} ${STRIP_FILES:S,^,${STAGEDIR}${PREFIX}/,}
.if ${PORT_OPTIONS:MNLS}
${MKDIR} ${STAGEDIR}${DATADIR}/lang
${INSTALL_DATA} ${WRKSRC}/lang/*.qm ${STAGEDIR}${DATADIR}/lang/
.endif
.include <bsd.port.mk>