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

.if defined(BERKLIX_CLIENT)	#{
.if defined(BERKLIX_AMBITIOUS)	#{	Later.
# SUBDIR += claraocr	# OCR optical character recognition, 
#			# grapical interface, not learnt it,
#			# need graphics/netpbm which is Interactive.
#			# included for http://www.berklix.com/scanjet/#ocr
.endif				#} BERKLIX_AMBITIOUS

SUBDIR += netpbm

SUBDIR += tesseract	# OCR CLI easy
SUBDIR += tesseract-data	# OCR CLI easy - add support for German

SUBDIR += cthumb	# For pics on web. Interactive despite BATCH
# Other gallery tools I might look at later, mentioned by questions@ 
# to guru@@unixarea.de 2013-05-10 were:
# 	kphotoalbum	# < guru@@unixarea.de : 	Not in 12.0-CURRENT-2017-11-14
# 	#		# kde4 build fails on builds FreeBSD 10-CURRENT
# 	burplex		# < gobble.wa@@gmail.com :
# 	#		# qt4 program allows user to browse & mark
# 	#		# selects, stored in a plain text file
# 	shotwell	# < gobble.wa@@gmail.com : more elaborate
# 	f-spot		# Not in 12.0-CURRENT-2017-11-14 < gobble.wa@@gmail.com : more elaborate
# 	rawtherapee	# < gobble.wa@@gmail.com : much elaborate
# 	../www/gallery3	# < idefix@@fechner.net

.if defined(BERKLIX_AMBITIOUS)	#{ 
.if (( ${OSVERSION} == 802000 ) || ( ${OSVERSION} == 803000 ))	#{{
# Depends on graphics/libkipi -> x11/kdelibs3 -> conflicts with openssl-1.0.0_7
.else				#}{ # OK on 9.0-RELEASE
SUBDIR += digikam		# Camera. KDE front to graphics/gphoto2
.endif				#}} ${OSVERSION}
.endif				#} BERKLIX_AMBITIOUS

# SUBDIR += epdfview	# companieshouse.gov.uk PDF V1.6 & 7 starts 1st page

.if defined(BERKLIX_AMBITIOUS)	#{	Later.
# SUBDIR += evince	# a pdf viewer, not tried yet with companieshouse.gov.uk
#				uses bus, various dependencies.
#				builds ok on 8.[23] & 9.0
#			# on ct600.pdf it just said "Please Wait"
#			# current 2014-1-26 fails on ../print/libspectre
.endif				#} BERKLIX_AMBITIOUS

.if defined(BERKLIX_AMBITIOUS)	#{	Later.
SUBDIR += gphoto2		# Camera. CLI front to graphics/libgphoto2

SUBDIR += libgphoto2

SUBDIR += exif 			# pic rotation

SUBDIR += gtkam 		# Camera. Gnome front to graphics/libgphoto2
.endif				#} BERKLIX_AMBITIOUS

# Samsung foolishly have their 500G disc manuals on a page
# crippled by flash, & in some new format called DJVU, so here's tools
# that might cope with DJVU:
#	SUBDIR += djview4
#	SUBDIR += djvulibre
#	SUBDIR += djvulibre-nox11

.if defined(BERKLIX_AMBITIOUS)	#{	Later.
SUBDIR += gocr		# OCR does something sensible with a .tiff :-)
#			# included for http://www.berklix.com/scanjet/#ocr
.endif				#} BERKLIX_AMBITIOUS

# SUBDIR += gnash 		# Not in 12.0-CURRENT-2017-11-14. Flash for browser, see also gnash-devel
# TRYBROKEN=YES fails as per BROKEN=, & MAINTAINER= ports@
# an alternate is swfdec, See Also: ../www/Makefile.local

.if ( ${OSVERSION} != 900044 )	#{
.if defined(BERKLIX_AMBITIOUS)	#{
# SUBDIR += gnustep-slideshow	# SlideShow Viewer
#				# GNUstep/Local/Library/
#				# http://home.gna.org/gsimageapps/
#	9.0-RELEASE:
#		===>  gnustep-base-1.19.3_5 needs an objective C compiler.
#		Stop in /usr/ports/lang/gnustep-base.
#		Stop in /usr/ports/x11-toolkits/gnustep-gui.
#		Stop in /usr/ports/x11-toolkits/gnustep-back.
#		Stop in /usr/ports/graphics/gnustep-slideshow.
.endif				#} BERKLIX_AMBITIOUS

.if defined(BERKLIX_AMBITIOUS)	#{
# SUBDIR += gnustep-slideshowkit	# SlideShow Framework
#	9.0-RELEASE: gnustep-base-1.19.3_5 needs an objective C compiler
#				# http://home.gna.org/gsimageapps/
#	10.0-BETA1 failed
#	current-2015-06-08 breaks on x11-toolkits/gnustep-back
.endif				#} BERKLIX_AMBITIOUS

.if defined(BERKLIX_AMBITIOUS)	#{
# SUBDIR += laternamagica 	# in 12.0-RELEASE, Not in 12.0-CURRENT-2017-11-14	Image viewer and slideshow application
#	9.0-RELEASE: gnustep-base-1.19.3_5 needs an objective C compiler
#				# http://gap.nongnu.org/
.endif				#} BERKLIX_AMBITIOUS
.endif				#}

#			Other ideas:		psearch slide

# SUBDIR += hpoj		# For Ron's similar to HP PSC 1315. Gone from current.

.if defined(BERKLIX_AMBITIOUS)	#{
SUBDIR += mupdf 	
#	pkg-descr: "has support for all non-interactive PDF 1.7 features"
#	but I presume for CT600.pdf I need interactive too.
#	CT600.pdf hangs at "Please wait..."
.endif				#} BERKLIX_AMBITIOUS

.if defined(BERKLIX_AMBITIOUS)	#{
#			# I dont needthis for anthing much, its just a toy,
#			# so build it last, I just use it to display net & cpu 
#			# performance& load occasionaly.
# SUBDIR += mesa-demos	# For glxgears graphical sticky host real time display.
.endif				#} BERKLIX_AMBITIOUS

SUBDIR += mupdf		# gary says is much faster to render bitmaps than xpdf

SUBDIR += libqrencode	# To generate QR codes (box shape like bar codes)

SUBDIR += sane-backends
#	Not necessary to specify as included by both:
#		graphics/xsane/Makefile
#			BUILD_DEPENDS=  \
#				scanimage:${PORTSDIR}/graphics/sane-backends
#		graphics/sane-frontends/Makefile
#			LIB_DEPENDS=    \
#				sane.1:${PORTSDIR}/graphics/sane-backends
#	& better not specified, cos then if release breaks I can then install
#	current sane-backends & make -f graphics/Makefile will not later fail.

SUBDIR += sane-frontends

# Sane:
#	saned will log to the 'daemon' facility; this is a hard-coded
#	default. Also, saned has no support for SSL/TLS or cryptographic
#	authentication; you may wish to deploy security/stunnel to wrap
#	it if you have concerns about security.


SUBDIR += tiff		# For ~/txt/fax/in/Makefile

SUBDIR += unpaper	# Might be useful after OCR of books.

SUBDIR += xbmbrowser	# X bitmaps directory viewer

.if ( ${OSVERSION} != 802000 )	#{	
#	8.2-RELEASE-ports fails to compile, but 8.2-RELEASE/src basd OS +
#	/pri/FreeBSD/branches/amd64/-current/ports/graphics/xfig install OK.
#	I have commented out wysiwyg patches in
#	~/public_html/src/bsd/fixes/FreeBSD/ports/gen/graphics/xfig/files
SUBDIR += xfig
.endif				#} ${OSVERSION}

SUBDIR += xpaint	# Broken on amd64 7.1-RELEASE & current.

SUBDIR += xpdf		# Fails on companieshouse.gov.uk PDF V1.6 & 1.7 \
#				 Unknown filter 'Crypt'
#			breaks if on nfs

.if ( ${OSVERSION} != 802000 )	#{	bad on 8.2-RELEASE
SUBDIR += xsane
.endif				#} ${OSVERSION}

.if ( ${OSVERSION} != 802000 )	#{	bad on 8.2-RELEASE
SUBDIR += xv
.endif				#} ${OSVERSION}

.if defined(BERKLIX_AMBITIOUS)	#{
# SUBDIR += zathura		# A pdf viewer, builds on 8.[23],9.0, 
#				  not tried yet with companieshouse.gov.uk
#				# 9.2-RELEASE: could not open plugin directory: 
#				#	/usr/local/lib/zathura
#				# 11-current: a black wondow with "[No name]" bootom left.
#				# Dep: x11-toolkits/gtk30
.endif				#} BERKLIX_AMBITIOUS

.endif				#} BERKLIX_CLIENT
