1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-06 01:57:40 +00:00
freebsd-ports/graphics/scantailor/Makefile
Mathieu Arnold 4e1b79a0a6 Remove ${PORTSDIR}/ from dependencies, categories d, e, f, and g.
With hat:	portmgr
Sponsored by:	Absolight
2016-04-01 14:00:51 +00:00

70 lines
1.6 KiB
Makefile

# Created by: Veniamin Gvozdikov <vg@FreeBSD.org>
# $FreeBSD$
PORTNAME= scantailor
PORTVERSION= 0.9.11.1
PORTREVISION= 6
CATEGORIES= graphics
MASTER_SITES= SF
MAINTAINER= vg@FreeBSD.org
COMMENT= Interactive post-processing tool for scanned pages
LICENSE= GPLv3
LIB_DEPENDS= libtiff.so:graphics/tiff \
libjbig.so:graphics/jbigkit \
libpng.so:graphics/png
BUILD_DEPENDS= ${LOCALBASE}/include/boost/shared_ptr.hpp:devel/boost-libs
USES= cmake gettext jpeg
USE_GCC= yes
USE_QT4= gui xml qmake_build uic_build moc_build rcc_build \
linguist_build
DESKTOP_ENTRIES="Scan Tailor" "${COMMENT}" "${PORTNAME}" \
"${PORTNAME}" "Graphics;Scanning;" false
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
.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
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>