blob: 48f50a3825bfe9313505dfd8bb6bc71e3b840c0d (
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
# Created by: Martin Matuska <mm@FreeBSD.org>
# $FreeBSD$
PORTNAME= wkhtmltopdf
DISTVERSION= 0.11.0_rc1
PORTREVISION= 1
CATEGORIES= converters
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}:wkhtmltopdf \
${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= mm/wkhtmltopdf
DISTFILES= ${DISTNAME}.tar.bz2:wkhtmltopdf \
wkhtmltopdf-qt-${WKQTVERSION}.tar.xz
MAINTAINER= mm@FreeBSD.org
COMMENT= Convert HTML (or live webpages) to PDF or image files
LIB_DEPENDS+= fontconfig:${PORTSDIR}/x11-fonts/fontconfig \
freetype:${PORTSDIR}/print/freetype2
WRKSRC= ${WRKDIR}/${PORTNAME}-qt
INSTALL_WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION}
WKQTVERSION= 6053b687
USES= pkgconfig gmake perl5
USE_XORG= x11 xext xrender
USE_PERL5= build
USE_LDCONFIG= yes
HAS_CONFIGURE= yes
OPTIONS_DEFINE= BUNDLED_LIBS
BUNDLED_LIBS_DESC= Use Qt-bundled jpeg, mng, png and tiff
LICENSE= LGPL3
LICENSE_FILE_LGPL3= ${INSTALL_WRKSRC}/COPYING
CONFIGURE_ARGS= -prefix ${WRKDIR}/wkqt \
-release -static -fast -exceptions -no-accessibility -no-stl \
-no-sql-ibase -no-sql-mysql -no-sql-odbc -no-sql-psql -no-sql-sqlite \
-no-sql-sqlite2 -no-qt3support -xmlpatterns -no-phonon \
-no-phonon-backend -webkit -no-scripttools -no-mmx -no-3dnow -no-sse \
-no-sse2 -system-zlib \
-graphicssystem raster -opensource -confirm-license \
-nomake tools -nomake examples -nomake demos -nomake docs \
-nomake translations -no-opengl -no-dbus -no-multimedia -openssl \
-no-declarative -largefile -rpath -no-nis -no-cups -no-iconv -no-pch \
-no-gtkstyle -no-nas-sound -no-sm -no-xshape -no-xinerama -no-xcursor \
-no-xfixes -no-xrandr -no-mitshm -no-xinput -no-xkb -no-glib -no-openvg \
-no-opengl -no-xsync -no-audio-backend -no-sse3 -no-ssse3 -no-sse4.1 \
-no-sse4.2
MAKE_ARGS+= INSTALL_ROOT="${PREFIX}"
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 800000
BROKEN= fails to extract on FreeBSD 7.X
.endif
.if ${ARCH} == "powerpc"
BROKEN= Does not link on powerpc
.endif
.if ${PORT_OPTIONS:MBUNDLED_LIBS}
CONFIGURE_ARGS+= -qt-libtiff -qt-libpng -qt-libmng -qt-libjpeg
.else
LIB_DEPENDS+= jpeg:${PORTSDIR}/graphics/jpeg \
png15:${PORTSDIR}/graphics/png \
mng:${PORTSDIR}/graphics/libmng \
tiff:${PORTSDIR}/graphics/tiff
CONFIGURE_ARGS+= -system-libtiff -system-libpng -system-libmng \
-system-libjpeg
.endif
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
-e 's|/usr/X11R6/include|${LOCALBASE}/include/X11|g' \
-e 's|/usr/X11R6/lib|${LOCALBASE}/lib|g' \
${WRKSRC}/mkspecs/freebsd-g++/qmake.conf
post-build:
@cd ${WRKSRC} && \
${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET} \
INSTALL_ROOT=
@cd ${WRKDIR}/${PORTNAME}-${DISTVERSION} && ${WRKDIR}/wkqt/bin/qmake && \
${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${_MAKE_JOBS} ${MAKE_ARGS} ${ALL_TARGET}
post-install:
@${STRIP_CMD} ${PREFIX}/bin/wkhtmltopdf ${PREFIX}/bin/wkhtmltoimage
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
|