summaryrefslogtreecommitdiff
path: root/print/tex-textpos/Makefile
blob: a7ea9c2a3f63776b2d032fcc16eba09fea7695e2 (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
47
48
49
50
# $NetBSD: Makefile,v 1.18 2006/04/07 05:18:35 minskim Exp $
#

NAME=		textpos
DISTNAME=	${NAME}
PKGNAME=	tex-${NAME}-1.2b
PKGREVISION=	3
CATEGORIES=	print
MASTER_SITES=	${MASTER_SITE_TEX_CTAN:=macros/latex/contrib/supported/${NAME}/}

MAINTAINER=	pkgsrc-users@NetBSD.org
# HOMEPAGE=
COMMENT=	Absolute positioning of text on the LaTeX page

WRKSRC=		${WRKDIR}
DIST_SUBDIR=	${NAME}
DISTFILES=	textpos.ins LICENCE README textpos.dtx VERSION

# included in teTeX3
TEX_ACCEPTED=	teTeX1 teTeX2

NO_CONFIGURE=	yes
USE_DIRS+=	texmf-1.0

.include "../../mk/bsd.prefs.mk"

.if ${TEX_DEFAULT} == "teTeX3"
PKG_SKIP_REASON+=	"textpos is included in ${TEX_DEFAULT}."
.else
.include "../../print/teTeX/module.mk"
.endif

do-build:
	cd ${WRKSRC} && latex textpos.ins
	cd ${WRKSRC} && latex textpos.drv

do-install:
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/${PKGBASE}
	${INSTALL_DATA} ${WRKSRC}/textpos-example.tex \
		${PREFIX}/share/examples/${PKGBASE}
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/${PKGBASE}
	for f in LICENCE README VERSION textpos.dvi; do \
		${INSTALL_DATA} ${WRKSRC}/$$f \
			${PREFIX}/share/doc/${PKGBASE}; done
	${INSTALL_DATA_DIR} ${PKG_LOCALTEXMFPREFIX}/tex/latex/textpos
	for f in textpos.sty textpos.dtx; do \
		${INSTALL_DATA} ${WRKSRC}/$$f \
			${PKG_LOCALTEXMFPREFIX}/tex/latex/textpos; done

.include "../../mk/bsd.pkg.mk"