171 lines
		
	
	
	
		
			4.4 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			171 lines
		
	
	
	
		
			4.4 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
 | |
| TOUCH?=		/usr/bin/touch
 | |
| TRUE?=		/usr/bin/true
 | |
| XARGS?=		/usr/bin/xargs
 | |
| 
 | |
| #
 | |
| # 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
 | |
| #
 | |
| 
 | |
| DVIPS?=		${PREFIX}/bin/dvips
 | |
| .if defined(PAPERSIZE)
 | |
| DVIPSOPTS?=	-t ${PAPERSIZE:L}
 | |
| .endif
 | |
| DVIPSOPTS+=	${DVIPSFLAGS}
 | |
| 
 | |
| FOP?=		${PREFIX}/bin/fop
 | |
| FOPOPTS?=
 | |
| 
 | |
| GROFF?=		groff
 | |
| 
 | |
| HTML2PDB?=	${PREFIX}/bin/iSiloBSD
 | |
| HTML2PDBOPTS?=	-y -d0 -Idef ${HTML2PDBFLAGS}
 | |
| HTML2TXT?=	${PREFIX}/bin/links
 | |
| HTML2TXTOPTS?=	-dump ${HTML2TXTFLAGS}
 | |
| 
 | |
| .if exists(${PREFIX}/bin/jade) && !defined(OPENJADE)
 | |
| JADE?=		${ENV} SP_ENCODING=XML ${PREFIX}/bin/jade
 | |
| .else
 | |
| JADE?=		${ENV} SP_ENCODING=XML ${PREFIX}/bin/openjade
 | |
| JADEFLAGS+=	-V openjade
 | |
| .endif
 | |
| 
 | |
| 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
 | |
| JADETEX_CMD?=	${PDFTEX_CMD} "&jadetex"
 | |
| JADETEX_PREPROCESS?=	/bin/cat
 | |
| PDFJADETEX_CMD?=${PDFTEX_CMD} "&pdfjadetex"
 | |
| PDFJADETEX_PREPROCESS?= /bin/cat
 | |
| 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
 | |
| 
 | |
| #
 | |
| # Currently, we have to use the FixRTF utility available as textproc/fixrtf
 | |
| # to apply several RTF fixups:
 | |
| #
 | |
| # 1. Embed PNGs into RTF. (Option: -p)
 | |
| # 2. Embed FreeBSD-specific information into RTF, such as organization name,
 | |
| #    building time. But unfortunately, so far only Microsoft Word can read
 | |
| #    them. In contrast, Microsoft Word Viewer and OpenOffice even cannot read
 | |
| #    this kind of information from RTF created by Microsoft Word and
 | |
| #    OpenOffice. (Option: -i)
 | |
| # 3. Do some locale-specific fixing. (Option: -e <encoding>)
 | |
| #
 | |
| # This is a transitional solution before Jade/OpenJade provides these features.
 | |
| #
 | |
| FIXRTF?=	${PREFIX}/bin/fixrtf
 | |
| FIXRTFOPTS?=	-i -p
 | |
| .if defined(SP_ENCODING)
 | |
| FIXRTFOPTS+=	-e ${SP_ENCODING}
 | |
| .endif
 | |
| 
 | |
| #
 | |
| # 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}
 |