aboutsummaryrefslogtreecommitdiffstats
path: root/print/latex-prettyref/Makefile
blob: dbf9113b175fd7b2a25808dd8c898f4ed113b196 (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
# New ports collection makefile for:    print/latex-prettyref
# Date created:     19 November 2007
# Whom:         Koji Yokota (yokota@res.otaru-uc.ac.jp)
#
# $FreeBSD$
#

PORTNAME=   latex-prettyref
PORTVERSION=    3.0
CATEGORIES= print
MASTER_SITES=   ${MASTER_SITE_TEX_CTAN}
MASTER_SITE_SUBDIR= macros/latex/contrib
DISTNAME=   ${PORTNAME:S/^latex-//}
DIST_SUBDIR=    latex

MAINTAINER= yokota@res.otaru-uc.ac.jp
COMMENT=    Improved reference formatting for LaTeX2e

BUILD_DEPENDS=  mktexlsr:${PORTSDIR}/print/teTeX-base
RUN_DEPENDS=    latex:${PORTSDIR}/print/teTeX-base

USE_ZIP=    yes

TEXMFDIR=   share/texmf
STYDIR=     tex/latex/${PORTNAME:S/^latex-//}
DOCSDIR=    doc/latex/${PORTNAME:S/^latex-//}
INSFILE=    ${PORTNAME:S/^latex-//}.ins
STYFILE=    ${PORTNAME:S/^latex-//}.sty
PDFFILE=    ${PORTNAME:S/^latex-//}.pdf
MKTEXLSR=   ${LOCALBASE}/bin/mktexlsr

do-build:
    @( cd ${WRKSRC} && tex ${INSFILE} )

do-install:
    @( cd ${WRKSRC} && \
      ${COPYTREE_SHARE} "${STYFILE}" ${PREFIX}/${TEXMFDIR}/${STYDIR} )
.if !defined(NOPORTDOCS)
    @( cd ${WRKSRC} && \
      ${COPYTREE_SHARE} "${PDFFILE}" ${PREFIX}/${TEXMFDIR}/${DOCSDIR} )
.endif

post-install:
    ${MKTEXLSR} ${PREFIX}/${TEXMFDIR}

.include <bsd.port.mk>