1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/graphics/qvge/Makefile
Alexey Dokuchaev 3d56f9c7b7 qvge is a multi-platform graph editor written in C++/Qt. Its main goal
is to make possible visually edit two-dimensional graphs in a simple and
intuitive way.

WWW: https://github.com/ArsMasiuk/qvge
2020-06-27 07:11:51 +00:00

46 lines
1.1 KiB
Makefile

# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
# $FreeBSD$
PORTNAME= qvge
PORTVERSION= 0.5.5
CATEGORIES= graphics
MAINTAINER= danfe@FreeBSD.org
COMMENT= Qt Visual Graph Editor
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/../LICENSE
LIB_DEPENDS= libOGDF.so:math/ogdf
USE_GITHUB= yes
GH_ACCOUNT= ArsMasiuk
USES= compiler:c++11-lang qt:5 xorg
USE_QT= buildtools_build qmake_build core gui network opengl \
printsupport widgets x11extras xml
USE_XORG= x11
MAKE_ARGS= INSTALL_ROOT=${STAGEDIR}
WRKSRC_SUBDIR= src
PLIST_FILES= bin/qvgeapp
PORTDOCS= CHANGES README.md
OPTIONS_DEFINE= DOCS
post-patch:
@${RM} -r ${BUILD_WRKSRC}/3rdParty/ogdf
@${REINPLACE_CMD} -e '/CONFIG += c++/s,14,11,' ${WRKSRC}/config.pri
@${REINPLACE_CMD} -e '/^USE_OGDF{/,+4d' ${WRKSRC}/qvgeapp.pro
@${REINPLACE_CMD} -e '/#include/s,math\.h,cmath,' ${WRKSRC}/qvge/CUtils.cpp
do-configure:
cd ${CONFIGURE_WRKSRC} && ${QMAKE_ENV} ${QMAKE} ${QMAKE_ARGS}
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/../,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>