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

.if defined(BERKLIX_CLIENT)	#{

SUBDIR += ctm	# removed from 13 & current 2018-2

.if (${ARCH} == i386)		#{
.if defined(BERKLIX_AMBITIOUS)	  #{
# SUBDIR += compat3x		# For libc.so.3 for Applix.
#				# 7.1-RELEASE:
#				# compat3x/Makefile: # FORBIDDEN=
#				# "FreeBSD-SA-03:05.xdr,
#				# FreeBSD-SA-03:08.realpath  - not
#				# fixed /
#				# no lib available"
# http://lists.freebsd.org/pipermail/freebsd-security-notifications/2003-August/000005.html
#				# 7.2-RELEASE i386:
#				#   compat3x-i386-5.0.20020925 is forbidden:
#				#   "FreeBSD-SA-03:05.xdr,
#				#   FreeBSD-SA-03:08.realpath  - not fixed
#				#   / no lib available".
#				# 8.0-RELEASE:
#				# compat3x-i386-5.0.20020925 is forbidden:
#				#  "FreeBSD-SA-03:05.xdr,
#				#  FreeBSD-SA-03:08.realpath  - not fixed
#				#  / no lib available".
.endif				#} BERKLIX_AMBITIOUS

SUBDIR += compat4x		# For libm.so.2 for Applix.
.endif				#} ${ARCH} == i386
.endif				#} BERKLIX_CLIENT

.if ( ${OSVERSION} >= 1300007 ) #{	
#	cpp -dM /dev/null | grep __FreeBSD_cc_version
SUBDIR += compat12x		# For xterm & firefox on current
# 		avoids need of cd /lib ; ln -s libncurses.so.9 libncurses.so.8 
.endif				#}


.if ( defined(BERKLIX_CLIENT) ) #{
.if ( defined(BERKLIX_AMBITIOUS) )	#{ All languages inc de
SUBDIR += freebsd-doc-en # Loads of dependencies pkg install en-freebsd-doc
#

.if (( ${OSVERSION} != 802000 ) && ( ${OSVERSION} != 900044 ))	#{	
#	8.2-RELEASE -> freebsd-doc-de fails: no BoundingBox found
#	bad on 9.0-RELEASE
# SUBDIR += freebsd-doc-all	# A meta-port to install all language versions
# SUBDIR += freebsd-doc-de # 2014-12-29 breaks on current & I dont want it 
.endif				#} ${OSVERSION}
.endif				#} BERKLIX_AMBITIOUS
.endif				#} BERKLIX_CLIENT

.if ( defined(BERKLIX_CLIENT) || defined(BERKLIX_GATE) )	#{
# SUBDIR += estic	# current-2013-10-14 build on 9.1-RELEASE but not on 10.0-ALPHA5

# SUBDIR += estic-1.60	# Old layout, I need to fix Makefile.
#			  Fails on 8.2 & 8.3.
.endif			#}  defined(BERKLIX_CLIENT) || defined(BERKLIX_GATE)

.if ( defined(BERKLIX_CLIENT) ) #{
SUBDIR += gimp
SUBDIR += gimp-help-en
.endif			#}  defined(BERKLIX_CLIENT)

.if ( defined(BERKLIX_CLIENT) ) #{
.if ( defined(BERKLIX_AMBITIOUS) )	#{ All languages inc de
.if (( ${OSVERSION} == 802000 ) || ( ${OSVERSION} == 803000 ))	#{{
#				8.2-RELEASE kdelibs conflicts with openssl
#				8.3-RELEASE kdebase3 fails
.else				#}{ # OK on 8.3-RELEASE & 9.0-RELEASE
# SUBDIR += kdeaddons3		# Doesnt exist on 12.0-CURRENT-2017-11-15
#				# has RUN_DEPENDS= .. kaddressbook-plugins
#				  I dont use this, just for reference in case
#				  later I might want to use their format for
#			 http://berklix.com/~jhs/src/bsd/jhs/bin/public/phone/

# SUBDIR += kaddressbook-plugins # Not in 12.0-CURRENT-2017-11-14	Rec. by Ernst.

.endif				#}} ${OSVERSION}
.endif				#} BERKLIX_AMBITIOUS

.if ( ${OSVERSION} != 802000 )	#{	bad on 8.2-RELEASE
SUBDIR += magicpoint # Presentations /usr/local/share/doc/mgp/sample/sample.mgp
.endif				#} ${OSVERSION}

SUBDIR += screen

# SUBDIR += p5-Geo-Coder-TomTom	# might be of interest JJLATER.

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


SUBDIR += uk-phone

SUBDIR += uk-postcodes

SUBDIR += unclutter

SUBDIR += us-zipcodes

.endif				#} BERKLIX_CLIENT
