blob: 5f7606190d6eab9210c48508152362cf7dcbd49d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# Created by: Veniamin Gvozdikov <vg@FreeBSD.org>
# $FreeBSD$
PORTNAME= scantailor
PORTVERSION= 0.9.11.1
PORTREVISION= 13
CATEGORIES= graphics
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= Interactive post-processing tool for scanned pages
LICENSE= GPLv3
BROKEN_powerpc64= fails to compile: core.hpp:69: boost::lambda::<unnamed>::_1 causes a section type conflict
BUILD_DEPENDS= ${LOCALBASE}/include/boost/shared_ptr.hpp:devel/boost-libs
LIB_DEPENDS= libtiff.so:graphics/tiff \
libjbig.so:graphics/jbigkit \
libpng.so:graphics/png
#MAKE_JOBS_UNSAFE= yes
USES= cmake gettext jpeg
USE_QT4= corelib gui xml qmake_build uic_build moc_build rcc_build \
linguist_build
USE_XORG+= xrender
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>
|