# /usr/ports/textproc/Makefile.local		by jhs_ERASE_@berklix.com
.include "../Makefile.undef"

.if ( defined(BERKLIX_CLIENT) ) #{
.if defined(BERKLIX_AMBITIOUS)	#{
# See Also ../misc/translate	# Experimental search for translators 2014-06
#	/usr/local/bin/translate: Perl script
.endif				#} BERKLIX_AMBITIOUS
.endif				#} BERKLIX_CLIENT

.if ( defined(BERKLIX_CLIENT) ) #{
.if defined(BERKLIX_AMBITIOUS)	#{
#	Experimental search for translators 2014-06
# SUBDIR += gnome-translate	# Doesnt exist on 12.0-CURRENT-2017-11-15
#	http://www.nongnu.org/libtranslate/
#	LIB_DEPENDS=            translate:${PORTSDIR}/textproc/libtranslate
#	bin/gnome-translate
#	Calls internet web servers
.endif				#} BERKLIX_AMBITIOUS
.endif				#} BERKLIX_CLIENT

.if ( defined(BERKLIX_CLIENT) ) #{
SUBDIR += hs-pandoc		# multi format CLI converter includes epub
#	http://cgit.freebsd.org/ports/tree/textproc/hs-pandoc/pkg-descr
#	Breaks on 12.4-RELEASE, JJLATER try again.
.endif				#} BERKLIX_CLIENT

.if ( defined(BERKLIX_CLIENT) ) #{
.if defined(BERKLIX_AMBITIOUS)	#{
SUBDIR += libtranslate
#	man translate(1)
#	supporting web-based translation services such as Babel Fish,
#		Google Language Tools and SYSTRAN
#	man 5 services.xml	/usr/local/share/libtranslate/
.endif				#} BERKLIX_AMBITIOUS
.endif				#} BERKLIX_CLIENT

.if ( defined(BERKLIX_CLIENT) ) #{
.if defined(BERKLIX_AMBITIOUS)	#{
SUBDIR += translate-toolkit	# Experimental search for translators 2014-06
#	to help make the lives of localizers both more productive

.endif				#} BERKLIX_AMBITIOUS
.endif				#} BERKLIX_CLIENT

.if ( defined(BERKLIX_CLIENT) ) #{
SUBDIR += antiword
# Works on doc Word 97 probably,
# not on .docx which are zip files full of MS rubbish

.if defined(BERKLIX_AMBITIOUS)	#{
SUBDIR += docbook	# to build FreeBSD doc/ loads of packages

# SUBDIR += docproj	# JADETEX=yes_or_no - for CD build
# 	docproj has been a disaster for a decade or more, damn thing constantly
#	 broke, on dependencies, ive commented out the build in 2015
#		# Failing on host=lapd 7.0-rel, often fails. Too many deps.

SUBDIR += groff		# 2012-10 current@ are discussing (again)
#				  zapping groff cos new one is GPL3
#	On 9.0-RELEASE:
#		ghostscript8 required by textproc/groff
#		ghostscript9 required by textproc/docproj & many others
#		ghostscript8 & ghostscript9 conflict
#	On 9.1-RELEASE:
#		pkg_delete -f ghostscript9-9.06_1
#			required by these other packages
#			cups-base-1.5.2_2
#			cups-pstoraster-8.15.4_7
#			evince-2.32.0_9
#			foomatic-filters-4.0.7_1
#			hplip-3.12.2_2
.endif				#} BERKLIX_AMBITIOUS

# SUBDIR += ispell		# In:     10.0-RELEASE,
#				# Not In 9.3-RELEASE & current 2014-08
#				# Not In 12.0-CURRENT-2017-11-14

SUBDIR += aspell
SUBDIR += en-aspell		# library for aspell

SUBDIR += aspell-ispell		# In		9.3-RELEASE & current 2014-08 & 2014-12-26
#				# Not In	10.0-RELEASE
#				# In		12.0-CURRENT-2017-11-14

.if defined(BERKLIX_AMBITIOUS)	#{
SUBDIR += latex2html	# For ~jhs/public_html/bim/leaflet/newest/
.endif				#} BERKLIX_AMBITIOUS

.if defined(BERKLIX_AMBITIOUS)  #{
SUBDIR += slides	# For /usr/doc/en_US.ISO8859-1/slides presentation
#			# 10.-RELEASE fails on xmlcatmgr: entry already exists for `http://docbook.sourceforge.net/release/slides/' of type `delegateSystem'
.endif				#} BERKLIX_AMBITIOUS
.endif				#} BERKLIX_CLIENT

.if ( defined(BERKLIX_CLIENT) ) #{
#	|| defined(BERKLIX_GATE)
#		Nice to have it, but it is heavy on dependencies,
#		& a lot of libX
#		pkg_info -r /var/db/pkg/mgdiff* | wc -l	# 33
SUBDIR += mgdiff
.endif				#} BERKLIX_CLIENT

.if ( defined(BERKLIX_CLIENT) ) #{
SUBDIR += pdfgrep

SUBDIR += pdftohtml

SUBDIR += unroff	# Previously for ~/job/groff/cv/laser4/
.endif				#} BERKLIX_CLIENT
