summaryrefslogtreecommitdiff
path: root/textproc/denature/Makefile
blob: ea1f22e0d80f7c632b2978159c6428f1928158ee (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
# ex:ts=8
# Ports collection makefile for:	denature
# Date created:			Jan 6, 2004
# Whom:				ijliao
#
# $FreeBSD$
#

PORTNAME=	denature
PORTVERSION=	0.6.5
PORTREVISION=	2
CATEGORIES=	textproc
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A HTML to PDF converter

RUN_DEPENDS=	p5-HTML-Parser>=0:${PORTSDIR}/www/p5-HTML-Parser \
		p5-HTML-Tagset>=0:${PORTSDIR}/www/p5-HTML-Tagset \
		p5-HTML-Tree>=0:${PORTSDIR}/www/p5-HTML-Tree \
		p5-CSS-Tiny>=0:${PORTSDIR}/textproc/p5-CSS-Tiny \
		fop:${PORTSDIR}/textproc/fop

USE_PERL5=	yes
USE_JAVA=	yes
JAVA_VERSION=	1.5+
POD2MAN?=	pod2man
WRKSRC=		${WRKDIR}/${PORTNAME}

MAN1=		denature.1
PLIST_FILES=	bin/denature

post-patch:
	@${PERL} -pi -e "s|%%LOCALBASE%%|${LOCALBASE}| ; \
		s|%%JAVA_HOME%%|${JAVA_HOME}|" ${WRKSRC}/denature

do-build:
	cd ${WRKSRC} && ${POD2MAN} denature > denature.1

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/denature ${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/denature.1 ${MAN1PREFIX}/man/man1

.include <bsd.port.mk>