aboutsummaryrefslogtreecommitdiff
path: root/freebsd/Makefile.in
blob: 77748dbbc349c4e7789d595442d600d776efd9e4 (plain)
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
# New ports collection makefile for: pandoc
# Date created:                      9 February 2007
# Whom:                              John MacFarlane <jgm@berkeley.edu>
#
# $FreeBSD: ports/textproc/pandoc/Makefile,v 1.2 2007/05/19 20:24:07 flz Exp $
#

PORTNAME=	pandoc
PORTVERSION=	@VERSION@
CATEGORIES=	textproc haskell
MASTER_SITES=	http://pandoc.googlecode.com/files/

MAINTAINER=	jgm@berkeley.edu
COMMENT=	A general markup converter

BUILD_DEPENDS=	ghc>=6.6:${PORTSDIR}/lang/ghc

MANCOMPRESSED=	no
MAN1=		pandoc.1 markdown2pdf.1 html2markdown.1 hsmarkdown.1

USE_GMAKE=	yes
USE_PERL5=	yes

PLIST_FILES=	bin/pandoc bin/markdown2pdf bin/html2markdown bin/hsmarkdown
PORTDOCS=	BUGS README README.html
SCRIPTS=	markdown2pdf hsmarkdown html2markdown

do-install:
	@${INSTALL_PROGRAM} ${WRKSRC}/dist/build/pandoc/pandoc ${PREFIX}/bin
.for f in ${DATA_FILES}
    @${INSTALL_DATA} ${WRKSRC}/${f} ${DATADIR}
.endfor
.for script in ${SCRIPTS}
	@${INSTALL_SCRIPT} ${WRKSRC}/${script} ${PREFIX}/bin
.endfor
.for man in ${MAN1}
	@${INSTALL_MAN} ${WRKSRC}/man/man1/${man} ${PREFIX}/man/man1
.endfor
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
.for doc in ${PORTDOCS}
	@${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>