# /usr/ports/Makefile.local		by jhs_ERASE_@berklix.com
# I have extended bsd.port.subdir.mk to support package-recursive, eg
#	cd /usr/ports ; make BERKLIX_CLIENT=YES package-recursive

#	.include <bsd.port.mk>	# Import ${OSREL} ${OSVERSION}
#	test_osv:	# Code to detect Version Numbers of releases:
#		@echo "${OSREL} ${OSVERSION}"
#			4.11	492000
#			7.1	701000
#			8.2	802000
#			8.3	803000
#			9.0	803000
#	.if ${OSVERSION} >= 701000	#
#		echo new
#	.else
#		echo old
#	.endif

# If things blow, current/ may build, &/or this may help: ldconfig -R  -v

# /etc/make.conf can define any or all of these per host:
#   BERKLIX_MINIMAL	X, rdist6 exmh fvwm etc (all also in BERKLIX_CLIENT).
#   BERKLIX_CLIENT	Workstation clients.
#   BERKLIX_GATE	Gateways.
#   BERKLIX_SERVER	Remote servers.
#   BERKLIX_AMBITIOUS	Monsters like openoffice that likely break.

.if ( defined(BERKLIX_MINIMAL) || defined(BERKLIX_CLIENT) || \
	 defined(BERKLIX_GATE) || defined(BERKLIX_SERVER) )	#{
.undef SUBDIR
.ifdef BERKLIX_NO_REV
SUBDIR += archivers
SUBDIR += astro
SUBDIR += audio
SUBDIR += comms
SUBDIR += converters
SUBDIR += databases
SUBDIR += deskutils
SUBDIR += devel
SUBDIR += dns
SUBDIR += editors
SUBDIR += emulators
SUBDIR += ftp
SUBDIR += german
SUBDIR += graphics
SUBDIR += java
SUBDIR += lang
SUBDIR += mail
SUBDIR += math
SUBDIR += misc
SUBDIR += multimedia
SUBDIR += net
SUBDIR += net-mgmt
SUBDIR += news
SUBDIR += print
SUBDIR += security
SUBDIR += shells
SUBDIR += sysutils
SUBDIR += textproc
SUBDIR += www
SUBDIR += x11
SUBDIR += x11-clocks
SUBDIR += x11-drivers
SUBDIR += x11-fm
SUBDIR += x11-fonts
SUBDIR += x11-servers
SUBDIR += x11-toolkits
SUBDIR += x11-wm

.else
# Reverse order with sort -r, as I want X essential built before random tools.
SUBDIR += x11-wm
SUBDIR += x11-toolkits
SUBDIR += x11-servers
SUBDIR += x11-fonts
SUBDIR += x11-fm
SUBDIR += x11-drivers
SUBDIR += x11-clocks
SUBDIR += x11
SUBDIR += www
SUBDIR += textproc
SUBDIR += sysutils
SUBDIR += shells
SUBDIR += security
SUBDIR += print
SUBDIR += news
SUBDIR += net-mgmt
SUBDIR += net
SUBDIR += multimedia
SUBDIR += misc
SUBDIR += math
SUBDIR += mail
SUBDIR += lang
SUBDIR += java
SUBDIR += graphics
SUBDIR += german
SUBDIR += ftp
SUBDIR += emulators
SUBDIR += editors
SUBDIR += dns
SUBDIR += devel
SUBDIR += deskutils
SUBDIR += databases
SUBDIR += converters
SUBDIR += comms
SUBDIR += audio
SUBDIR += astro
SUBDIR += archivers

.endif					#}

.endif					#}
