freebsd-ports/graphics/scantailor/Makefile
Felix Palmen ddae4e92d8 Mk/Uses: always use colon for build/run suffix
Most USES use a colon for build/run(/test) suffixes. Change kde.mk,
qt.mk and pyqt.mk to do the same, and update all ports using that.

Document in CHANGES.

PR:			266034
Exp-run by:		antoine
Approved by:		tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D36349
2022-09-11 12:20:14 +02:00

79 lines
2.0 KiB
Makefile

PORTNAME= scantailor
DISTVERSIONPREFIX= v
DISTVERSION= 1.0.16
PORTREVISION= 2
CATEGORIES= graphics
MAINTAINER= m.ne@gmx.net
COMMENT= Interactive post-processing tool for scanned pages
WWW= https://github.com/4lex4/scantailor-advanced
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${LOCALBASE}/include/boost/shared_ptr.hpp:devel/boost-libs
LIB_DEPENDS= libjbig.so:graphics/jbigkit \
libpng.so:graphics/png \
libtiff.so:graphics/tiff
USES= cmake compiler:c++11-lang desktop-file-utils jpeg qt:5 \
shared-mime-info xorg
USE_CXXSTD= gnu++98
USE_GITHUB= yes
USE_QT= core gui network opengl widgets xml buildtools:build \
linguisttools:build qmake:build
USE_XORG+= xrender
GH_ACCOUNT= 4lex4
GH_PROJECT= scantailor-advanced
OPTIONS_GROUP= DOXYGEN
OPTIONS_GROUP_DOXYGEN= HTML LATEX
OPTIONS_DEFAULT=
HTML_DESC= Install HTML Doxygen files
LATEX_DESC= Install LaTeX Doxygen files
OPTIONS_DEFINE= DOCS NLS
OPTIONS_SUB= yes
NLS_USES= gettext
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MHTML} || ${PORT_OPTIONS:MLATEX}
PORTDOCS= *
.endif
.if ${PORT_OPTIONS:MHTML} || ${PORT_OPTIONS:MLATEX}
BUILD_DEPENDS+= doxygen:devel/doxygen
.endif
post-patch:
@${REINPLACE_CMD} -e 's|_[12]|boost::lambda::&|g; s|bind(|boost::lambda::&|' \
${WRKSRC}/filters/*/Filter.cpp
@${REINPLACE_CMD} -e '/Categories/s|Applications|Scanning|' \
${WRKSRC}/resources/unix/scantailor.desktop
post-patch-NLS-off:
@${REINPLACE_CMD} -e '/\/translations/s/install/# install/' ${WRKSRC}/CMakeLists.txt
post-install:
${INSTALL_DATA} ${WRKSRC}/resources/icons/appicon-about.png \
${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png
.if ${PORT_OPTIONS:MHTML} || ${PORT_OPTIONS:MLATEX}
@cd ${WRKSRC} && doxygen .
.endif
.if ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MHTML}
@(cd ${WRKSRC} && ${COPYTREE_SHARE} html ${STAGEDIR}${DOCSDIR})
.endif
.if ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MLATEX}
@(cd ${WRKSRC} && ${COPYTREE_SHARE} latex ${STAGEDIR}${DOCSDIR})
.endif
.include <bsd.port.mk>