aboutsummaryrefslogtreecommitdiff
path: root/graphics/engauge-digitizer/Makefile
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2018-06-20 18:08:30 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2018-06-20 18:08:30 +0000
commitbed56cb66a50d9efca1e25fe513f0aea5c1fc324 (patch)
treef76502e5ba8b6726b1b03b7e8c3941557e3b6e99 /graphics/engauge-digitizer/Makefile
parent2c127c14d8b6936456e7e19e833e7c27f79de256 (diff)
downloadports-bed56cb66a50d9efca1e25fe513f0aea5c1fc324.tar.gz
ports-bed56cb66a50d9efca1e25fe513f0aea5c1fc324.zip
Re-add port: graphics/engauge-digitizer: add from math/digitizer@323747
It was previously deleted on 2013-07-26.
Notes
Notes: svn path=/head/; revision=472893
Diffstat (limited to 'graphics/engauge-digitizer/Makefile')
-rw-r--r--graphics/engauge-digitizer/Makefile59
1 files changed, 59 insertions, 0 deletions
diff --git a/graphics/engauge-digitizer/Makefile b/graphics/engauge-digitizer/Makefile
new file mode 100644
index 000000000000..1edf8d9411f4
--- /dev/null
+++ b/graphics/engauge-digitizer/Makefile
@@ -0,0 +1,59 @@
+# $FreeBSD$
+
+PORTNAME= engauge-digitizer
+DISTVERSIONPREFIX= v
+DISTVERSION= 10.7.6-2
+DISTVERSIONSUFFIX= -g7ce911c2
+PORTREVISION= 1
+CATEGORIES= graphics math science
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Extract data points from images of graphs
+
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+LIB_DEPENDS= libfftw3.so:math/fftw3 \
+ liblog4cpp.so:devel/log4cpp \
+ libopenjp2.so:graphics/openjpeg \
+ libpoppler-qt5.so:graphics/poppler-qt5
+
+USES= desktop-file-utils qmake
+USE_GITHUB= yes
+GH_ACCOUNT= markummitchell
+USE_QT5= core gui printsupport sql xml widgets buildtools_build
+USE_GL= gl
+CONFIGURE_ENV= OPENJPEG_INCLUDE=${PREFIX}/include/openjpeg-2.3 OPENJPEG_LIB=${PREFIX}/lib \
+ POPPLER_INCLUDE=${PREFIX}/include/poppler/qt5 POPPLER_LIB=${PREFIX}/lib
+QMAKE_ARGS= "CONFIG+=jpeg2000 pdf"
+
+OPTIONS_DEFINE= NLS DOCS
+OPTIONS_SUB= yes
+
+DOCS_USE= QT5=help,linguist_build
+
+do-patch-NLS-on:
+ @${REINPLACE_CMD} -e 's|QCoreApplication::applicationDirPath () + "/translations",|"${DATADIR}/translations",|' ${WRKSRC}/src/Translator/TranslatorContainer.cpp
+
+post-build-NLS-on:
+ @cd ${WRKSRC} && lrelease engauge.pro
+
+post-build-DOCS-on:
+ @cd ${WRKSRC}/help && ./build
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/engauge ${STAGEDIR}${PREFIX}/bin
+ @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps
+ ${GZIP_CMD} < ${WRKSRC}/src/img/${PORTNAME}.svg > ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/${PORTNAME}.svgz
+ ${INSTALL_DATA} ${WRKSRC}/dev/${PORTNAME}.desktop ${STAGEDIR}${PREFIX}/share/applications/${PORTNAME}.desktop
+
+do-install-NLS-on:
+ @${MKDIR} ${STAGEDIR}${DATADIR}/translations
+ ${INSTALL_DATA} ${WRKSRC}/translations/*.qm ${STAGEDIR}${DATADIR}/translations
+
+do-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/bin/documentation/engauge.qch ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/bin/documentation/engauge.qhc ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>