blob: e307745614cd18231a0bded34a5b7eb909ef8104 (
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
|
# Created by: Makoto WATANABE <watanabe@zlab.phys.nagoya-u.ac.jp>
# $FreeBSD$
PORTNAME= dvipsk
PORTVERSION= 5.95b
PORTREVISION= 14
CATEGORIES= japanese print
MASTER_SITES= ${MASTER_SITE_TEX_CTAN} \
${MASTER_SITE_LOCAL:S,%SUBDIR%,hrs/teTeX,:S,$,:udvipspatch,}
# ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/dvips/:jpatch \
MASTER_SITE_SUBDIR= obsolete/systems/unix/teTeX/3.0/distrib/
PKGNAMESUFFIX= -tetex
DISTFILES= ${TETEX_SRC}${EXTRACT_SUFX} \
dvipsk-${PORTVERSION}-p1.7a.tar.gz:udvipspatch
DIST_SUBDIR= teTeX
EXTRACT_ONLY= ${TETEX_SRC}${EXTRACT_SUFX} \
dvipsk-${PORTVERSION}-p1.7a.tar.gz
MAINTAINER= hrs@FreeBSD.org
COMMENT= A DVI to PostScript translator + Japanese patch
BUILD_DEPENDS= ${TEXMFLOCAL_LSR}:${PORTSDIR}/print/tex-texmflocal \
${LOCALBASE}/${TEXMFDISTDIR}/LICENSE.texmf:${PORTSDIR}/print/teTeX-texmf \
mktexlsr:${PORTSDIR}/print/teTeX-base \
${LOCALBASE}/${TEXMFDIR}/fonts/tfm/ptex/min10.tfm:${PORTSDIR}/japanese/ptex
RUN_DEPENDS= ${TEXMFLOCAL_LSR}:${PORTSDIR}/print/tex-texmflocal \
${LOCALBASE}/${TEXMFDISTDIR}/LICENSE.texmf:${PORTSDIR}/print/teTeX-texmf \
mktexlsr:${PORTSDIR}/print/teTeX-base \
${LOCALBASE}/${TEXMFDIR}/fonts/tfm/ptex/min10.tfm:${PORTSDIR}/japanese/ptex
LIB_DEPENDS= png15:${PORTSDIR}/graphics/png \
wwwcore.1:${PORTSDIR}/www/libwww \
t1.5:${PORTSDIR}/devel/t1lib
PATCH_WRKSRC= ${WRKDIR}/${TETEX_SRC}/texk
EXTRA_PATCHES= ${WRKDIR}/dvipsk-${PORTVERSION}-p1.7a.diff
CONFIGURE_WRKSRC=${WRKDIR}/${TETEX_SRC}
BUILD_WRKSRC= ${WRKDIR}/${TETEX_SRC}/texk/dvipsk
INSTALL_WRKSRC= ${WRKDIR}/${TETEX_SRC}/texk/dvipsk
PLIST_SUB= DVIPSDIR=${DVIPSDIR} \
DVIPSCONFIGDIR=${DVIPSCONFIGDIR} \
DVIPSCONFIGDIR_DIST=${DVIPSCONFIGDIR_DIST} \
MKTEXLSR="${MKTEXLSR}" \
TEXMFCONFIGDIR=${TEXMFCONFIGDIR} \
FONTSMAPDIR=${FONTSMAPDIR} \
UPDMAP_SYS="${UPDMAP_SYS}"
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-multiplatform \
--without-texinfo \
--without-dialog \
--with-system-ncurses --with-system-zlib \
--with-system-wwwlib --with-libwww-libdir=${LIBWWW_PREFIX}/lib \
--with-libwww-include=${LIBWWW_PREFIX}/include/w3c-libwww \
--with-system-pnglib --with-pnglib-libdir=${LIBPNG_PREFIX}/lib \
--with-pnglib-include=${LIBPNG_PREFIX}/include \
--with-system-t1lib --with-t1lib-libdir=${LIBT1_PREFIX}/lib \
--with-t1lib-include=${LIBT1_PREFIX}/include \
--without-xdvik --without-oxdvik
CONFLICTS= dvipsk-tetex-[0-9]* \
dvips-[0-9]* \
texlive-[0-9]* tex-web2c-[0-9]* \
tex-kpathsea-[0-9]* tex-xdvik-[0-9]* \
tex-dvipsk-[0-9]* tex-dvipdfmx-[0-9]*
MAN1= dvips.1 afm2tfm.1
MLINKS= dvips.1 odvips.1
INFO= dvips
TETEX_SRC= tetex-src-3.0
MKTEXLSR?= ${LOCALBASE}/bin/mktexlsr \
${LOCALBASE}/${TEXMFDIR} \
${LOCALBASE}/${TEXMFCONFIGDIR}
TEXMFDIR= share/texmf
TEXMFDISTDIR= share/texmf-dist
TEXMFLOCALDIR= share/texmf-local
TEXMFCONFIGDIR= share/texmf-config
TEXMFLOCAL_LSR?=${LOCALBASE}/${TEXMFLOCALDIR}/ls-R
FONTSMAPDIR= ${TEXMFDIR}/fonts/map/ptex
DVIPSDIR?= ${TEXMFDIR}/dvips/ptex
DVIPSCONFIGDIR?=${TEXMFCONFIGDIR}/dvips/ptex
DVIPSCONFIGDIR_DIST?=${TEXMFDIR}/dvips/ptex
LIBPNG_PREFIX?= ${LOCALBASE}
LIBWWW_PREFIX?= ${LOCALBASE}
LIBT1_PREFIX?= ${LOCALBASE}
UPDMAP_SYS= ${LOCALBASE}/bin/updmap-sys --progname=ptex
TEXCONFIGBIN= ${SETENV} TEXCONFIGINPUTS=\$$TEXMF/texconfig/ptex/ \
${LOCALBASE}/bin/texconfig-sys
post-configure:
cd ${PATCH_WRKSRC} && \
${RM} -rf udvipsk && ${CP} -R dvipsk udvipsk
do-build:
cd ${WRKDIR}/${TETEX_SRC}/texk/dvipsk &&\
${SETENV} ${MAKE_ENV} ${GMAKE} \
${MAKE_FLAGS} ${MAKEFILE} ${ALL_TARGET}
cd ${WRKDIR}/${TETEX_SRC}/texk/udvipsk &&\
${SETENV} ${MAKE_ENV} ${GMAKE} \
${MAKE_FLAGS} ${MAKEFILE} \
program=udvips XDEFS=-DUDVIPS \
${ALL_TARGET}
do-install:
${MKDIR} ${PREFIX}/${DVIPSCONFIGDIR}/config
cd ${WRKDIR}/${TETEX_SRC}/texk/dvipsk &&\
${SETENV} ${MAKE_ENV} ${GMAKE} \
${MAKE_FLAGS} ${MAKEFILE} ${INSTALL_TARGET}
${INSTALL_PROGRAM} \
${PATCH_WRKSRC}/udvipsk/udvips \
${PREFIX}/bin
${INSTALL_DATA} \
${FILESDIR}/ptex-kanji.map \
${PREFIX}/${FONTSMAPDIR}/dvips/psfonts_jp.map
${RM} -f ${PREFIX}/${FONTSMAPDIR}/../dvips/ptex/psfonts_jp.map
${RMDIR} ${PREFIX}/${FONTSMAPDIR}/../dvips/ptex
${MKTEXLSR}
${SH} ${UPDMAP_SYS} --enable Map=psfonts_jp.map
post-install:
${TEXCONFIGBIN} dvips printcmd -
${MKTEXLSR}
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|