aboutsummaryrefslogtreecommitdiff
path: root/textproc/htmldoc/Makefile
blob: be9f380f05bd539d6e18b777e6f1e28f52358657 (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
PORTNAME=	htmldoc
PORTVERSION=	1.9.17
DISTVERSIONPREFIX=	v
CATEGORIES=	textproc

MAINTAINER=	fuz@FreeBSD.org
COMMENT=	Converts HTML to PDF and/or PostScript
WWW=		https://michaelrsweet.github.io/htmldoc

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

BROKEN_mips=	complains about expecting ) before png_ptr

LIB_DEPENDS=	libcups.so:print/cups \
		libpng.so:graphics/png

USES=		compiler:c11 cpe jpeg pkgconfig
CPE_VENDOR=	${PORTNAME}_project
USE_GITHUB=	yes
GH_ACCOUNT=	michaelrsweet

HAS_CONFIGURE=	yes

OPTIONS_DEFINE=		HTMLDOCGUI
HTMLDOCGUI_DESC=	Build GUI front-end
HTMLDOCGUI_LIB_DEPENDS=		libfltk.so:x11-toolkits/fltk \
				libfontconfig.so:x11-fonts/fontconfig
HTMLDOCGUI_USES=		xorg
HTMLDOCGUI_USE=			XORG=x11,xcursor,xext,xfixes,xft,xinerama,xpm,xrender
HTMLDOCGUI_CONFIGURE_WITH=	gui=yes

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/htmldoc

.include <bsd.port.mk>