blob: 7d15f85c70af130d9b98179e1e03081ca54c25cc (
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
|
# Created by: Glenn Trewitt <glenn@trewitt.org>
PORTNAME= htmldoc
PORTVERSION= 1.9.3
PORTREVISION= 1
DISTVERSIONPREFIX= v
CATEGORIES= textproc
MAINTAINER= jose@diasfernandes.pt
COMMENT= Converts HTML to PDF and/or PostScript
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
BROKEN_mips= Complains of expecting ) before png_ptr
LIB_DEPENDS= libpng.so:graphics/png
USES= compiler:c11 cpe
CPE_VENDOR= ${PORTNAME}_project
USE_GITHUB= yes
GH_ACCOUNT= michaelrsweet
HAS_CONFIGURE= yes
OPTIONS_DEFINE= HTMLDOCGUI GNUTLS
OPTIONS_DEFAULT= GNUTLS
HTMLDOCGUI_DESC= Build GUI front-end
HTMLDOCGUI_CONFIGURE_WITH= gui=yes
HTMLDOCGUI_LIB_DEPENDS= libfltk.so:x11-toolkits/fltk \
libfontconfig.so:x11-fonts/fontconfig
HTMLDOCGUI_USES= xorg
HTMLDOCGUI_USE= XORG=x11,xrender,xcursor,xfixes \
xext,xft,xinerama jpeg
GNUTLS_CONFIGURE_ENABLE= gnutls
GNUTLS_USES= pkgconfig
GNUTLS_LIB_DEPENDS= libgnutls.so:security/gnutls
.include <bsd.port.pre.mk>
# Fix arm64 build
.if ${ARCH} == "aarch64"
pre-build:
${REINPLACE_CMD} -e '/PNG_FILTER_OPTIMIZATIONS(pp, bpp);/d' ${WRKSRC}/png/pngrutil.c
.endif
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/htmldoc
.include <bsd.port.post.mk>
|