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

.if defined(BERKLIX_CLIENT)		#{
.if defined(BERKLIX_AMBITIOUS)		#{ abiword is big, make it later
SUBDIR += abiword		# fails on companieshouse.gov.uk PDF V1.6
#	abiword supports doc[x] files 
#		Build size: SIZE=103 Meg
#		Package size: 6 Meg, a lot smaller than libreoffice 73Meg.

SUBDIR += abiword-docs			# help files

# koffice:
#	koshell fails on companieshouse.gov.uk PDF V1.6
#	kword fails on companieshouse.gov.uk PDF V1.6 \
#		says: xpdf supports version 1.4
#	Problem of locking, that can be avoided by building local, on:
#		devel/libthai
#		& I think on main port itself

#	4.11-RELEASE/ports/editors/koffice-kde3
#	6.4-RELEASE/ports/editors/koffice-kde3
#	7.3-RELEASE/ports/editors/koffice-kde3
#	7.3-RELEASE/ports/editors/koffice-kde4
#	7.4-RELEASE/ports/editors/koffice-kde3
#	7.4-RELEASE/ports/editors/koffice-kde4
#	8.2-RELEASE/ports/editors/koffice-kde3
#	8.2-RELEASE/ports/editors/koffice-kde4
#	8.3-RELEASE/ports/editors/koffice-kde4
#	9.0-RELEASE/ports/editors/koffice-kde3
#	9.0-RELEASE/ports/editors/koffice-kde4
# 	No 9.1-RELEASE/ports/*/*koffice*
#	Not in 12.0-CURRENT-2017-11-14

# SUBDIR += koffice-kde3
#	8.2-RELEASE: kdelibs-3.5.10_6 conflicts with installed package(s): \
#		 openssl-1.0.0_4
#	9.0-RELEASE: koffice-1.6.3_18,2 is marked as broken: Does not compile.
#	Not in 12.0-CURRENT-2017-11-14

# SUBDIR += koffice-kde4
#	8.2-RELEASE: does not build with x11-toolkits/qt33 installed. \
#		Please, deinstall qt-3.x first.
#	8.3-RELEASE: koffice-kde4-2.3.3_7 does not build with \
#		x11-toolkits/qt33 installed. Please deinstall qt-3.x first.
#	9.0-RELEASE: koffice-kde4-2.3.3_6 does not build with \
#		x11-toolkits/qt33 installed. Please deinstall qt-3.x first.
#	Not in 12.0-CURRENT-2017-11-14
.endif			#} BERKLIX_AMBITIOUS

# SUBDIR += impress		# For Astrid for talk to Faraday.

# SUBDIR += kxmleditor		# Not in 12.0-CURRENT-2017-11-14 Shows xml text 1st lines from fred.k SIZE=??

.if defined(BERKLIX_AMBITIOUS)		#{
.if (( ${OSVERSION} != 802000 )&& ( ${OSVERSION} != 900044 ))	#{{
SUBDIR += libreoffice
#	8.1-RELEASE breaks with
#		configure: error: vigra/copyimage.hxx not found. install vigra
#		gmake: *** [stamp/build] Error 1
#	9.0-RELEASE breaks with:
#		error 65280 occurred while making
#		/usr1/release/9.0-RELEASE/ports/editors/libreoffice/\
#		work/libreoffice-bootstrap-3.4.4.2/sal/qa/osl/security
#		it seems that the error is inside 'sal',
#		please re-run build inside this module to isolate
#		the error and/or test your fix:
#	9.1-RELEASE builds
#	in 12.0-CURRENT-2017-11-14
.endif				#}} ${OSVERSION}

SUBDIR += libreoffice-en_GB	# on 10.2-RELEASE

# SUBDIR += libreoffice4	# Exists on current 2015 Oct 29 & 2016-01-25
#  				# Does not exist on 10.2-RELEASE
# Current 2016-01-25:
#	libreoffice/distinfo:  libreoffice-5.0.4.2.tar.xz
#	libreoffice4/distinfo: libreoffice/libreoffice-4.3.7.2.tar.xz
# Thus libreoffice4 is Older than libreoffice.

#	Open Office			Suggests: 11G disc & 2G memory.

.if ( ${OSVERSION} == 802000 ) #{{
# 8.2-RELEASE test build running
# SUBDIR += openoffice.org-3
.endif				#}} ${OSVERSION}
.if (( ${OSVERSION} == 802000 ) || ( ${OSVERSION} == 803000 ) || ( ${OSVERSION} == 900044 ))	#{{
# SUBDIR += openoffice-3.org	# name in 8.2-RELEASE, 9.0-RELEASE, 8.3-RELEASE
# 8.2-RELEASE Builds OK
# 8.3-RELEASE Builds OK
# 9.0-RELEASE Builds OK
.endif				#}} ${OSVERSION}

# openoffice.org-3
#	Needs sun (now oracle) licence crap that always breaks on
#		tzupdater download, cos they
#		hide the latest behind a licence click web, &  Worse:
#		one can never find to click the older version one needs.
#		Solution read source of web page & hand edit for older version.
#	oo-3 can read .docx, oo-2 can not.
#	(Antonio Olivares olivares14031@@@gmail.com Aug 2011:
#		 Without installing anything, Google Docs also opens
#		 *.docx files, if needed.)
#	7.1 arch=amd64: Fails
#	7.1 arch=i386: OK.
#	7.2 arch=amd64 ports=rel Fails on host=John
#	8.0 arch=amd64 ports=?	 Fails: instsetoo_native need(s) to be rebuilt
#	8.0 arch=amd64 ports=cur Fails cppunit need(s) to be rebuilt
#	8.0 arch=amd64 ports=rel Fails cppunit need(s) to be rebuilt
#	8.0 arch=i386 make package OK, package-recursive fails.
#	8.1 arch=amd64 ports=rel make package OK
#	8.3: install: conflicts with cppunit-1.12.1
#		pkg_delete /var/db/pkg/cppunit-1.12.1
#		pkg_add /usr/packages/All/cppunit-1.12.1.tbz
#	9.1-RELEASE textproc/libexttextcat needs COMPAT_TEXTCAT enabled.
#	current-2012-06-25 no directory, instead: openoffice-3

# SUBDIR += openoffice.org-3-devel      # Older name
#       8.3 no conflicting cppunit-1.12.1

# SUBDIR += openoffice-3-devel # Newer Name for 9.1-RELEASE & current-2012-06-25

# SUBDIR += openoffice.org-vcltesttool
#			Makefile:PORTVERSION=	     2.4.${SNAPDATE}

.if (${ARCH} == i386 )	# {
# SUBDIR += staroffice70	# RUN_DEP emulators/linux_lib,
#				# emulators/linux_lib no longer exists, try linux_base-f10
#				# man 5 linprocfs,
#				# impossible to find source on sun-obscured web
.endif			#} ${ARCH} == i386
.endif			#} BERKLIX_AMBITIOUS

.if defined(BERKLIX_AMBITIOUS)		#{
# SUBDIR += nvi-devel	# @2013.09.10 zy@@miator.net wrote ports@:
#	The nvi in CURRENT already supports UTF-8;
#	if you want varies encodings, you need WITH_ICONV=1
.endif			#} BERKLIX_AMBITIOUS

#-----------
# Note re staroffice openoffice libreoffice.
# A copy of this mail is also archived at
# http://lists.freebsd.org/pipermail/freebsd-questions/2013-November/254673.html
#	Subject: Re: math "formulae" using libreoffice
#	From: Da Rock <freebsd-questions@@herveybayaustralia.com.au>
#	Date: Thu, 28 Nov 2013 22:27:01 +1000
#	To: freebsd-questions@@freebsd.org
#	
#	On 11/22/13 11:26, Polytropon wrote:
#	> On Thu, 21 Nov 2013 16:59:33 -0800, Gary Kline wrote:
#	>> 	I'l ck it out, thankee.  I have been wondering about the diff
#	>> 	between openX and libreX {X == "office"} but  guessed that
#	>> 	"open" was what the BSD's chose ...
#	> No, they are two different products, maintained independently.
#	> If I remember correctly, it started with StarOffice as the first
#	> major office suite becoming a free product (I've been using
#	> version 3.x and 4.0 of this), it was then "incorporated" by
#	> Sun which later became OpenOffice. When Oracle bought and
#	> (mostly) destroyed Sun, OpenOffice was one of the victims;
#	> they added proprietary code and finally abandoned it. That
#	> was the time when LibreOffice was forked. Today, LibreOffice
#	> is _the_ office suite per se.
#	Not to start a war, but it went StarOffice as a free product (up to
#	about 5 or 6, I think), then Sun made it a paid product and forked
#	OpenOffice as an open source alternative (good ole Sun); then Oracle got
#	involved and Libreoffice was forked with some of the original devs
#	walking with it and overhauling it in the process, and finally with
#	OpenOffice finally abandoned to the wolves by Oracle at a later date and
#	rescued by the Apache incubator project not so many years ago now.
#	>
#	> On FreeBSD, all three versions have been available, and today
#	> you can still install both OpenOffice and LibreOffice; only
#	> StarOffice is no longer available (disappeared around 2010).
#	>
#	I believe this was when Oracle staged a takeover, and spelled the
#	beginning of the end of support for OpenOffice.
#	#-----------

.if ( ${OSVERSION} != 802000 )	#{	bad on 8.2-RELEASE, OK on 8.3
# SUBDIR += pdfedit	# companieshouse.gov.uk PDF V1.6 & 7 Unknown compression method inflate stream
#			8.4-RELEASE reports "Depends on QT3; unmaintained."
.endif				#} ${OSVERSION}

# SUBDIR += vilearn	# Doesnt exist on 12.0-CURRENT-2017-11-15
#			# For learners, to save me time.

SUBDIR += vim		# Rainer for leaflet, rec. from Ernst
#			# always too many patches to hand fetch

# SUBDIR += wordperfect # disappeared in 5.[34] & 4.11 & 6.1

SUBDIR += xmleditor	# Not made by kxmleditor. Doesnt view xml from fred.k

# SUBDIR += vile	# maintainer=gj conflicts: /usr/local/lib/vile/atr2ansi

# vile & xvile collide in 10BETA1

SUBDIR += xvile 	# ascii viewer maint=gj

.endif			#} BERKLIX_CLIENT
