aboutsummaryrefslogtreecommitdiff
path: root/print/latexmk/Makefile
blob: eeca6447e5fe6972ce4abd7fa67896b41cf91080 (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
# Created by: Fernan Aguero <fernan@iib.unsam.edu.ar>
# $FreeBSD$

PORTNAME=	latexmk
PORTVERSION=	435
CATEGORIES=	print
MASTER_SITES=	http://users.phys.psu.edu/~collins/software/latexmk/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Tool to completely automate generating output from LaTeX documents

LICENSE=	GPLv2 # (or later)

OPTIONS_DEFINE=	DOCS EXAMPLES

NO_WRKSUBDIR=	yes
NO_BUILD=	yes

USE_ZIP=	yes
USE_PERL5_RUN=	yes
USE_TEX=	latex

MAN1=		latexmk.1
PORTDOCS=	*
PORTEXAMPLES=	*
PLIST_FILES=	bin/latexmk

.include <bsd.port.options.mk>

do-install:
	(cd ${WRKSRC} && ${INSTALL_SCRIPT} latexmk.pl ${PREFIX}/bin/latexmk)
	(cd ${WRKSRC} && ${INSTALL_MAN} latexmk.1 ${MANPREFIX}/man/man1)
.if ${PORT_OPTIONS:MDOCS}
	@${MKDIR} ${DOCSDIR}
.for doc in CHANGES INSTALL README latexmk.pdf latexmk.ps latexmk.txt
	(cd ${WRKSRC} && ${INSTALL_DATA} ${doc} ${DOCSDIR})
.endfor
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
	@${MKDIR} ${EXAMPLESDIR}
	@(cd ${WRKSRC} && ${COPYTREE_SHARE} example_rcfiles ${EXAMPLESDIR})
	@(cd ${WRKSRC} && ${COPYTREE_BIN} extra-scripts ${EXAMPLESDIR})
.endif
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>