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

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

SUBDIR += aterm			# gj says aterm is a better rxvt

SUBDIR += mrxvt			# gj rec 2012-10 top panel flips like firefox

SUBDIR += editres		# a dynamic resource editor for X Toolkit applications

.if defined(BERKLIX_AMBITIOUS)	#{
.if ( ${OSVERSION} == 803000 )	#{ # Not OK on 8.2 & 9.0.
# I thought OK on 8.3, but apprently not as dependency kdebase3 fails
# SUBDIR += kde3	# Not in 12.0-CURRENT-2017-11-14
#	"meta-port" for KDE.  Lots of dependencies, inc x11/kdelibs3
#	kdelibs-3.5.10_8 conflicts with installed package(s): openssl-1.0.0_7
.endif				#} ${OSVERSION}

.if (( ${OSVERSION} == 802000 ) || ( ${OSVERSION} == 803000 ) \
	|| ( ${OSVERSION} == 900044 ) ) #{
.else				#}{
# SUBDIR += kdebase3	Not in 12.0-CURRENT-2017-11-14
# Not OK on 8.2 & 8.3.
#	kdebase for /usr/local/bin/konqueror browser.
#		8.2-RELEASE: conflicts with openssl-1.0.0_4
#		pkg_delete openssl-1.0.0_4: required by 43 packages, inc. some X
#	9.0 depends on net/mDNSResponder which fails with
#		make install
#		Un-necessary: You were previously root.
#		===>  Installing for mDNSResponder-333.10
#		===>   Generating temporary packing list
#		/usr/local/etc/rc.d/mdns.sh: not found
#		gmake: *** [/usr/local/sbin/mdnsd] Error 127
#
.endif				#} ${OSVERSION}

.if ( ${OSVERSION} == 802000 )	#{
# SUBDIR += kdebase4	Not in 12.0-CURRENT-2017-11-14
# 8.2 failed on /usr/local/include/qt4/QtCore/qstring.h
# 8.3 & 9.0 have no kdebase4, just kdebase3
.endif				#} ${OSVERSION}
.endif				#} BERKLIX_AMBITIOUS

SUBDIR += listres

SUBDIR += smproxy

.if defined(BERKLIX_AMBITIOUS)	#{ pkgconf-0.8.9 conflicts pkg-config-0.25_1
.if ( ${OSVERSION} > 900044 ) #{
#		Not in 9.0-RELEASE &8.3-RELEASE. 
#		In 9.3-RELEASE
SUBDIR += lxrandr
.endif				#} ${OSVERSION}
.endif				#} BERKLIX_AMBITIOUS

SUBDIR += rgb			# RUN_DEPENDS of xcolors

# SUBDIR += showrgb		# Doesnt exist on 12.0-CURRENT-2017-11-15
#				# installs showrgb, rgb used to be in xorg.conf

SUBDIR += xstdcmap		# X standard colormap utility

SUBDIR += viewres		# graphical class browser for Xt

SUBDIR += xautolock

SUBDIR += xcolors

.endif				#} BERKLIX_CLIENT


.if ( defined(BERKLIX_CLIENT) || defined(BERKLIX_GATE) || \
	 defined(BERKLIX_MINIMAL) )	#{
SUBDIR += xconsole
.endif			#}

.if defined(BERKLIX_CLIENT)	#{
SUBDIR += xditview
.endif				#} BERKLIX_CLIENT

.if (defined(BERKLIX_CLIENT) || defined(BERKLIX_MINIMAL))	#{
SUBDIR += xdm
.endif				#} BERKLIX_CLIENT || BERKLIX_MINIMAL

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

SUBDIR += xfd			# display all the characters in an X font
.endif				#} BERKLIX_CLIENT

.if (defined(BERKLIX_CLIENT) || defined(BERKLIX_MINIMAL))	#{
SUBDIR += xinit			# for 7.0
.endif				#} BERKLIX_CLIENT || BERKLIX_MINIMAL

.if defined(BERKLIX_CLIENT)	#{
SUBDIR += xkeyboard-config	# breaks on current 2015-05-20
#	 xkeyboard-config needed to avoid:
#		The XKEYBOARD keymap compiler (xkbcomp) reports:
#		> Error:	    Can't find file "complete" for types include
#		>		    Exiting
#		>		    Abandoning keytypes file "default"
#		Errors from xkbcomp are not fatal to the X server
#		(EE) Error compiling keymap (server-0)
#		(EE) XKB: Couldn't compile keymap

SUBDIR += xkeycaps

SUBDIR += xlockmore

SUBDIR += xmag			# magnify parts of the screen

SUBDIR += xman			# Manual page display program

SUBDIR += xmore			# plain text display program
.endif				#} BERKLIX_CLIENT

.if (defined(BERKLIX_CLIENT) || defined(BERKLIX_MINIMAL))	#{
SUBDIR += xorg			# meta port includes all xorg in ports/
.endif			#}

.if (defined(BERKLIX_CLIENT) || defined(BERKLIX_MINIMAL) || \
	defined(BERKLIX_GATE))	#{
SUBDIR += xorg-apps		# xauth, xdpyinfo, xterm.  No xdm, xclock

SUBDIR += xdpyinfo		# 6.4-RELEASE gate for ~/bin/.sh/telno
.endif			#}

.if ( defined(BERKLIX_CLIENT) || defined(BERKLIX_GATE) || \
	 defined(BERKLIX_MINIMAL) )	#{
.if ( ${OSVERSION} <= 603000 )
# SUBDIR += xorg-clients	# 6.2  xconsole xauth. Not in 7.2 Doesnt exist on 12.0-CURRENT-2017-11-15
.endif
.endif	#}

.if defined(BERKLIX_CLIENT)	#{
SUBDIR += xrandr		# Sharing screen to TV, & dual head displays.

SUBDIR += xrestop		# like top for X

SUBDIR += xsetpointer		# set an X Input device as the main pointer

SUBDIR += xsetroot		# xsetroot -def to override 8.0-RELEASE black background

SUBDIR += xsm
.endif				#} BERKLIX_CLIENT

.if ( defined(BERKLIX_CLIENT) || defined(BERKLIX_GATE) || \
	 defined(BERKLIX_MINIMAL) )	#{
SUBDIR += xauth			# 7.0
.endif			#}

.if ( defined(BERKLIX_CLIENT) || defined(BERKLIX_MINIMAL) || \
	defined(BERKLIX_GATE) )	#{
SUBDIR += xbiff			# 7.0
.endif				#}

.if ( defined(BERKLIX_CLIENT) || defined(BERKLIX_GATE) )	#{
SUBDIR += xload			# prevent fvwm2 from complaining at start
.endif				#}

.if ( defined(BERKLIX_CLIENT) || defined(BERKLIX_GATE) || \
	 defined(BERKLIX_MINIMAL) )	#{
SUBDIR += xterm			# for consolev running at holz
.endif			#}

.if defined(BERKLIX_CLIENT)	#{
SUBDIR += xvidtune		# video mode tuner for Xorg
.endif				#} BERKLIX_CLIENT
