1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-13 07:34:50 +00:00
freebsd-ports/cad/qfsm/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

43 lines
1.2 KiB
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= qfsm
PORTVERSION= 0.54.0
DISTVERSIONSUFFIX= -Source
CATEGORIES= cad
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION:R}
MAINTAINER= ports@FreeBSD.org
COMMENT= Graphical tool for designing finite state machines
LICENSE= GPLv3+
OPTIONS_DEFINE= GRAPHVIZ DOCS EXAMPLES
USES= qt:4 tar:bzip2 cmake desktop-file-utils
USE_XORG= xi
USE_QT= corelib gui qt3support svg xml \
moc_build qmake_build rcc_build uic_build
INSTALLS_ICONS= yes
GRAPHVIZ_BUILD_DEPENDS= graphviz>=2.22:graphics/graphviz
GRAPHVIZ_RUN_DEPENDS= graphviz>=2.22:graphics/graphviz
GRAPHVIZ_CMAKE_OFF= -DQFSM_AVOID_GRAPHVIZ:BOOL=ON
pre-configure:
${REINPLACE_CMD} -e \
'/\/usr\//d' ${WRKSRC}/FindGraphViz.cmake
${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' \
-e '/examples/s|share/qfsm|share/examples/${PORTNAME}|' \
${WRKSRC}/CMakeLists.txt
pre-configure-DOCS-on:
${REINPLACE_CMD} -e 's|%%PD%%||' ${WRKSRC}/CMakeLists.txt
pre-configure-DOCS-off:
${REINPLACE_CMD} -e 's|%%PD%%|#|' ${WRKSRC}/CMakeLists.txt
pre-configure-EXAMPLES-on:
${REINPLACE_CMD} -e 's|%%PE%%||' ${WRKSRC}/CMakeLists.txt
pre-configure-EXAMPLES-off:
${REINPLACE_CMD} -e 's|%%PE%%|#|' ${WRKSRC}/CMakeLists.txt
.include <bsd.port.mk>