2013-02-02 15:52:15 +01:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2013-02-04 10:41:53 +01:00
|
|
|
#
|
|
|
|
# General commands
|
|
|
|
#
|
|
|
|
|
|
|
|
AWK?= /usr/bin/awk
|
2013-02-02 15:52:15 +01:00
|
|
|
CP?= /bin/cp
|
|
|
|
CAT?= /bin/cat
|
|
|
|
ECHO_CMD?= echo
|
2013-02-04 10:41:53 +01:00
|
|
|
FETCH?= /usr/bin/fetch
|
|
|
|
FIND?= /usr/bin/find
|
|
|
|
GREP?= /usr/bin/grep
|
2013-02-02 15:52:15 +01:00
|
|
|
LN?= /bin/ln
|
|
|
|
MKDIR?= /bin/mkdir
|
|
|
|
MV?= /bin/mv
|
2013-02-04 10:41:53 +01:00
|
|
|
RM?= /bin/rm
|
2013-02-02 15:52:15 +01:00
|
|
|
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
|
2013-02-04 10:41:53 +01:00
|
|
|
PKG_CREATE?= /usr/sbin/pkg_create
|
2013-02-02 15:52:15 +01:00
|
|
|
REALPATH?= /bin/realpath
|
2013-02-04 10:41:53 +01:00
|
|
|
SED?= /usr/bin/sed
|
2013-02-02 15:52:15 +01:00
|
|
|
SETENV?= /usr/bin/env
|
|
|
|
SH?= /bin/sh
|
|
|
|
SORT?= /usr/bin/sort
|
2016-07-04 16:56:42 +02:00
|
|
|
STAT?= /usr/bin/stat
|
2016-05-05 00:04:56 +02:00
|
|
|
TAIL?= /usr/bin/tail
|
2013-02-02 15:52:15 +01:00
|
|
|
TOUCH?= /usr/bin/touch
|
2013-02-04 10:41:53 +01:00
|
|
|
TRUE?= /usr/bin/true
|
2013-02-02 15:52:15 +01:00
|
|
|
XARGS?= /usr/bin/xargs
|
|
|
|
|
2016-07-04 16:56:42 +02:00
|
|
|
#
|
|
|
|
# Version control
|
|
|
|
#
|
|
|
|
GIT?= /usr/local/bin/git
|
2017-05-05 15:50:57 +02:00
|
|
|
SVN?= /usr/local/bin/svn
|
2016-07-04 16:56:42 +02:00
|
|
|
|
2013-02-04 10:41:53 +01:00
|
|
|
#
|
|
|
|
# Compession and decompression
|
|
|
|
#
|
|
|
|
|
|
|
|
BUNZIP2?= /usr/bin/bunzip2
|
2013-02-02 15:52:15 +01:00
|
|
|
BZIP2?= bzip2
|
|
|
|
BZIPOPTS?= -qf9
|
|
|
|
GZIP?= gzip
|
|
|
|
GZIPOPTS?= -qf9
|
2013-02-04 10:41:53 +01:00
|
|
|
TAR?= /usr/bin/tar
|
2013-02-05 11:11:29 +01:00
|
|
|
ZIP?= ${PREFIX}/bin/zip
|
|
|
|
ZIPOPTS?= -9X
|
2013-02-02 15:52:15 +01:00
|
|
|
|
2013-02-04 10:41:53 +01:00
|
|
|
#
|
|
|
|
# Rendering and format conversion
|
|
|
|
#
|
|
|
|
|
2013-07-03 17:22:19 +02:00
|
|
|
DBLATEX?= ${PREFIX}/bin/dblatex
|
|
|
|
|
2013-02-04 10:41:53 +01:00
|
|
|
DVIPS?= ${PREFIX}/bin/dvips
|
|
|
|
.if defined(PAPERSIZE)
|
|
|
|
DVIPSOPTS?= -t ${PAPERSIZE:L}
|
2013-02-02 15:52:15 +01:00
|
|
|
.endif
|
2013-02-04 10:41:53 +01:00
|
|
|
DVIPSOPTS+= ${DVIPSFLAGS}
|
2013-02-02 15:52:15 +01:00
|
|
|
|
|
|
|
FOP?= ${PREFIX}/bin/fop
|
|
|
|
|
|
|
|
GROFF?= groff
|
2013-02-04 10:41:53 +01:00
|
|
|
|
2013-02-02 15:52:15 +01:00
|
|
|
HTML2PDB?= ${PREFIX}/bin/iSiloBSD
|
|
|
|
HTML2PDBOPTS?= -y -d0 -Idef ${HTML2PDBFLAGS}
|
2013-07-21 16:47:14 +02:00
|
|
|
HTML2TXT?= ${PREFIX}/bin/links
|
2013-02-04 10:41:53 +01:00
|
|
|
HTML2TXTOPTS?= -dump ${HTML2TXTFLAGS}
|
|
|
|
|
2015-08-24 17:54:10 +02:00
|
|
|
ITSTOOL?= ${PREFIX}/bin/itstool
|
|
|
|
|
2013-07-03 14:07:50 +02:00
|
|
|
JING?= ${PREFIX}/bin/jing
|
|
|
|
|
2017-08-14 23:08:28 +02:00
|
|
|
MSGATTRIB?= ${PREFIX}/bin/msgattrib
|
2015-08-24 17:54:10 +02:00
|
|
|
MSGFMT?= ${PREFIX}/bin/msgfmt
|
|
|
|
MSGMERGE?= ${PREFIX}/bin/msgmerge
|
|
|
|
|
2013-02-04 10:41:53 +01:00
|
|
|
XMLLINT?= ${PREFIX}/bin/xmllint
|
|
|
|
XSLTPROC?= ${PREFIX}/bin/xsltproc
|
2013-02-02 15:52:15 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
|
2013-02-04 10:41:53 +01:00
|
|
|
#
|
|
|
|
# Image processing
|
|
|
|
#
|
|
|
|
|
2013-02-02 15:52:15 +01:00
|
|
|
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}
|
2013-02-04 10:41:53 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# Spell checking
|
|
|
|
#
|
|
|
|
|
|
|
|
ISPELL?= ispell
|
|
|
|
ISPELLOPTS?= -l -p /usr/share/dict/freebsd ${ISPELLFLAGS}
|