blob: 38943ef24f423597b0d5745d4ec29997cfc6f79e (
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
51
52
53
54
55
56
|
# $NetBSD: Makefile,v 1.3 2015/02/10 23:53:43 wiz Exp $
DISTNAME= adjustbox
PKGNAME= tex-${DISTNAME}-1.0
PKGREVISION= 1
CATEGORIES= print
MASTER_SITES= http://mirrors.ctan.org/macros/latex/contrib/
EXTRACT_SUFX= .zip
HOMEPAGE= http://www.ctan.org/pkg/adjustbox
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Graphics package-alike macros for general boxes
LICENSE= lppl-1.3c
BUILD_DEPENDS+= web2c-[0-9]*:../../print/web2c
# tex not found
BUILD_DEPENDS+= tex-tetex-[0-9]*:../../print/tex-tetex
# mkfmt tex.fmt not found
BUILD_DEPENDS+= teTeX-texmf-[0-9]*:../../print/teTeX3-texmf
BUILD_DEPENDS+= tex-ydoc-[0-9]*:../../print/tex-ydoc
INSTALL_PATH= share/texmf-dist/tex/latex/adjustbox
AUTO_MKDIRS= yes
do-build:
(cd ${WRKSRC}; tex adjustbox.ins )
do-install:
# *.tex
.for i in box compare margin margin2 trim trim2 trim3 viewport viewport2
(cd ${WRKSRC}; \
${INSTALL_DATA} ${i}.tex ${DESTDIR}${PREFIX}/${INSTALL_PATH} )
.endfor
# adjustbox.*
.for i in dtx ins pdf
(cd ${WRKSRC}; \
${INSTALL_DATA} adjustbox.${i} ${DESTDIR}${PREFIX}/${INSTALL_PATH} )
.endfor
# *.sty
.for i in adjustbox adjcalc trimclip
(cd ${WRKSRC}; \
${INSTALL_DATA} ${i}.sty ${DESTDIR}${PREFIX}/${INSTALL_PATH} )
.endfor
# *.def
.for i in tc-dvips tc-pdftex tc-pgf tc-xetex
(cd ${WRKSRC}; \
${INSTALL_DATA} ${i}.def ${DESTDIR}${PREFIX}/${INSTALL_PATH} )
.endfor
# if from texlive 2014
# TEXLIVE_REV= 26555
# .include "../../print/texlive/package.mk"
#.include "../../print/kpathsea/texmf.mk"
.include "../../mk/bsd.pkg.mk"
|