doc/share/mk/doc.commands.mk
2017-05-05 13:50:57 +00:00

156 lines
3.6 KiB
Makefile

#
# $FreeBSD$
#
#
# General commands
#
AWK?= /usr/bin/awk
CP?= /bin/cp
CAT?= /bin/cat
ECHO_CMD?= echo
FETCH?= /usr/bin/fetch
FIND?= /usr/bin/find
GREP?= /usr/bin/grep
LN?= /bin/ln
MKDIR?= /bin/mkdir
MV?= /bin/mv
RM?= /bin/rm
ISPELL?= ispell
ISPELLOPTS?= -l -p /usr/share/dict/freebsd ${ISPELLFLAGS}
.if exists(/usr/bin/perl)
PERL?= /usr/bin/perl
.elif exists(/usr/local/bin/perl)
PERL?= /usr/local/bin/perl
.else
PERL?= perl
.endif
PKG_CREATE?= /usr/sbin/pkg_create
REALPATH?= /bin/realpath
SED?= /usr/bin/sed
SETENV?= /usr/bin/env
SH?= /bin/sh
SORT?= /usr/bin/sort
STAT?= /usr/bin/stat
TAIL?= /usr/bin/tail
TOUCH?= /usr/bin/touch
TRUE?= /usr/bin/true
XARGS?= /usr/bin/xargs
#
# Version control
#
GIT?= /usr/local/bin/git
SVN?= /usr/local/bin/svn
#
# Compession and decompression
#
BUNZIP2?= /usr/bin/bunzip2
BZIP2?= bzip2
BZIPOPTS?= -qf9
GZIP?= gzip
GZIPOPTS?= -qf9
TAR?= /usr/bin/tar
ZIP?= ${PREFIX}/bin/zip
ZIPOPTS?= -9X
#
# Rendering and format conversion
#
DBLATEX?= ${PREFIX}/bin/dblatex
DVIPS?= ${PREFIX}/bin/dvips
.if defined(PAPERSIZE)
DVIPSOPTS?= -t ${PAPERSIZE:L}
.endif
DVIPSOPTS+= ${DVIPSFLAGS}
FOP?= ${PREFIX}/bin/fop
GROFF?= groff
HTML2PDB?= ${PREFIX}/bin/iSiloBSD
HTML2PDBOPTS?= -y -d0 -Idef ${HTML2PDBFLAGS}
HTML2TXT?= ${PREFIX}/bin/links
HTML2TXTOPTS?= -dump ${HTML2TXTFLAGS}
ITSTOOL?= ${PREFIX}/bin/itstool
JING?= ${PREFIX}/bin/jing
MSGFMT?= ${PREFIX}/bin/msgfmt
MSGMERGE?= ${PREFIX}/bin/msgmerge
XMLLINT?= ${PREFIX}/bin/xmllint
XSLTPROC?= ${PREFIX}/bin/xsltproc
#
# In teTeX 3.0 and later, pdfetex(1) is used as the default TeX
# engine for JadeTeX and tex(1) cannot be used as ${TEX_CMD} anymore
# due to incompatibility of the format file. Since the teTeX 3.0
# distribution has "${PREFIX}/share/texmf-dist/LICENSE.texmf,"
# it is checked here to determine which TeX engine should be used.
.if exists(${PREFIX}/share/texmf-dist/LICENSE.texmf)
TEX_CMD?= ${PREFIX}/bin/etex
PDFTEX_CMD?= ${PREFIX}/bin/pdfetex
.else
TEX_CMD?= ${PREFIX}/bin/tex
PDFTEX_CMD?= ${PREFIX}/bin/pdftex
.endif
LATEX_CMD?= ${PREFIX}/bin/latex
PS2PDF?= ${PREFIX}/bin/ps2pdf
FOP_CMD?= ${PREFIX}/share/fop/fop.sh
XEP_CMD?= sh ${HOME}/XEP/xep.sh
JAVA_CMD?= ${PREFIX}/bin/javavm
SAXON_CMD?= ${JAVA_CMD} -jar ${PREFIX}/share/java/classes/saxon.jar
#
# Image processing
#
SCR2PNG?= ${PREFIX}/bin/scr2png
SCR2PNGOPTS?= ${SCR2PNGFLAGS}
SCR2TXT?= ${PREFIX}/bin/scr2txt
SCR2TXTOPTS?= -l ${SCR2TXTFLAGS}
EPS2PNM?= ${PREFIX}/bin/gs
EPS2PNMOPTS?= -q -dBATCH -dGraphicsAlphaBits=4 -dTextAlphaBits=4 \
-dEPSCrop -r${EPS2PNM_RES}x${EPS2PNM_RES} \
-dNOPAUSE -dSAFER -sDEVICE=pnm -sOutputFile=-
#
# epsgeom is a perl script for 1) extracting geometry information
# from a .eps file and 2) arrange it for ghostscript's pnm driver.
#
EPSGEOM?= ${PERL} ${DOC_PREFIX}/share/misc/epsgeom
EPSGEOMOPTS?= ${EPS2PNM_RES} ${EPS2PNM_RES}
PNMTOPNG?= ${PREFIX}/bin/pnmtopng
PNMTOPNGOPTS?= ${PNGTOPNGFLAGS}
PNGTOPNM?= ${PREFIX}/bin/pngtopnm
PNGTOPNMOPTS?= ${PNGTOPNMFLAGS}
PPMTOPGM?= ${PREFIX}/bin/ppmtopgm
PPMTOPGMOPTS?= ${PPMTOPGMFLAGS}
PNMTOPS?= ${PREFIX}/bin/pnmtops
PNMTOPSOPTS?= -noturn ${PNMTOPSFLAGS}
EPSTOPDF?= ${PREFIX}/bin/epstopdf
EPSTOPDFOPTS?= ${EPSTOPDFFLAGS}
#
PIC2PS?= ${GROFF} -p -S -Wall -mtty-char -man
#
PS2EPS?= ${PREFIX}/bin/gs
PS2EPSOPTS?= -q -dNOPAUSE -dSAFER -dDELAYSAFER \
-sPAPERSIZE=letter -r72 -sDEVICE=bit \
-sOutputFile=/dev/null ${PS2EPSFLAGS} ps2epsi.ps
PS2BBOX?= ${PREFIX}/bin/gs
PS2BBOXOPTS?= -q -dNOPAUSE -dBATCH -dSAFER -dDELAYSAFER \
-sPAPERSIZE=letter -r72 -sDEVICE=bbox \
-sOutputFile=/dev/null ${PS2BBOXFLAGS}
#
# Spell checking
#
ISPELL?= ispell
ISPELLOPTS?= -l -p /usr/share/dict/freebsd ${ISPELLFLAGS}