Improving /usr/ports/Makefile ?

Aleksandar Simic zen13038 at zen.co.uk
Sat May 1 16:48:56 PDT 2004


Hello,

from time to time you see people asking on questions why is it that
their 'make index' is failing after they cvsup-ed all but excluded
some region specific ports directories, most commonly:

arabic, chinese, hebrew, hungarian, japanese, korean, polish,
portuguese, russian, ukrainian, vietnamese

Could a check be added to see if the above directories, or any other
'undesirable' ones are non existant and if they are, that they should
be ignored ? 


Something like this:


*** /usr/ports/Makefile	Sat May  1 14:20:36 2004
--- /tmp/Makefile	Sat May  1 09:27:44 2004
***************
*** 1,66 ****
--- 1,186 ----
  # $FreeBSD: ports/Makefile,v 1.82 2004/04/02 07:25:23 kris Exp $
  #
  
+ .if exists (${.CURDIR}/accessibility)
  SUBDIR += accessibility
+ .endif
+ .if exists (${.CURDIR}/arabic)
  SUBDIR += arabic
+ .endif
+ .if  exists (${.CURDIR}/archivers)
  SUBDIR += archivers
+ .endif
+ .if exists (${.CURDIR}/astro)
  SUBDIR += astro
+ .endif 
+ .if exists (${.CURDIR}/audio)
  SUBDIR += audio
+ .endif
+ .if exists (${.CURDIR}/benchmarks)
  SUBDIR += benchmarks
+ .endif
+ .if exists (${.CURDIR}/biology)
  SUBDIR += biology
+ .endif
+ .if exists (${.CURDIR}/cad)
  SUBDIR += cad
+ .endif
+ .if exists (${.CURDIR}/chinese)
  SUBDIR += chinese
+ .endif
+ .if exists (${.CURDIR}/comms)
  SUBDIR += comms
+ .endif
+ .if exists (${.CURDIR}/converters)
  SUBDIR += converters
+ .endif
+ .if exists (${.CURDIR}/databases)
  SUBDIR += databases
+ .endif
+ .if exists (${.CURDIR}/deskutils)
  SUBDIR += deskutils
+ .endif
+ .if exists (${.CURDIR}/devel)
  SUBDIR += devel
+ .endif
+ .if exists (${.CURDIR}/dns)
  SUBDIR += dns
+ .endif
+ .if exists (${.CURDIR}/editors)
  SUBDIR += editors
+ .endif
+ .if exists (${.CURDIR}/emulators)
  SUBDIR += emulators
+ .endif
+ .if exists (${.CURDIR}/finance)
  SUBDIR += finance
+ .endif
+ .if exists (${.CURDIR}/french)
  SUBDIR += french
+ .endif
+ .if exists (${.CURDIR}/ftp)
  SUBDIR += ftp
+ .endif
+ .if exists (${.CURDIR}/games)
  SUBDIR += games
+ .endif
+ .if exists (${.CURDIR}/german)
  SUBDIR += german
+ .endif
+ .if exists (${.CURDIR}/graphics)
  SUBDIR += graphics
+ .endif
+ .if exists (${.CURDIR}/hebrew)
  SUBDIR += hebrew
+ .endif
+ .if exists (${.CURDIR}/hungarian)
  SUBDIR += hungarian
+ .endif
+ .if exists (${.CURDIR}/irc)
  SUBDIR += irc
+ .endif
+ .if exists (${.CURDIR}/japanese)
  SUBDIR += japanese
+ .endif
+ .if exists (${.CURDIR}/java)
  SUBDIR += java
+ .endif
+ .if exists (${.CURDIR}/korean)
  SUBDIR += korean
+ .endif
+ .if exists (${.CURDIR}/lang)
  SUBDIR += lang
+ .endif
+ .if exists (${.CURDIR}/mail)
  SUBDIR += mail
+ .endif
+ .if exists (${.CURDIR}/math)
  SUBDIR += math
+ .endif
+ .if exists (${.CURDIR}/mbone)
  SUBDIR += mbone
+ .endif
+ .if exists (${.CURDIR}/misc)
  SUBDIR += misc
+ .endif
+ .if exists (${.CURDIR}/multimedia)
  SUBDIR += multimedia
+ .endif
+ .if exists (${.CURDIR}/net)
  SUBDIR += net
+ .endif
+ .if exists (${.CURDIR}/net-mgmt)
  SUBDIR += net-mgmt
+ .endif
+ .if exists (${.CURDIR}/news)
  SUBDIR += news
+ .endif
+ .if exists (${.CURDIR}/palm)
  SUBDIR += palm
+ .endif
+ .if exists (${.CURDIR}/picobsd)
  SUBDIR += picobsd
+ .endif
+ .if exists (${.CURDIR}/polish)
  SUBDIR += polish
+ .endif
+ .if exists (${.CURDIR}/portugese)
  SUBDIR += portuguese
+ .endif
+ .if exists (${.CURDIR}/print)
  SUBDIR += print
+ .endif
+ .if exists (${.CURDIR}/russian)
  SUBDIR += russian
+ .endif
+ .if exists (${.CURDIR}/science)
  SUBDIR += science
+ .endif
+ .if exists (${.CURDIR}/security)
  SUBDIR += security
+ .endif
+ .if exists (${.CURDIR}/shells)
  SUBDIR += shells
+ .endif
+ .if exists (${.CURDIR}/sysutils)
  SUBDIR += sysutils
+ .endif
+ .if exists (${.CURDIR}/textproc)
  SUBDIR += textproc
+ .endif
+ .if exists (${.CURDIR}/ukrainian)
  SUBDIR += ukrainian
+ .endif
+ .if exists (${.CURDIR}/vietnamese)
  SUBDIR += vietnamese
+ .endif
+ .if exists (${.CURDIR}/www)
  SUBDIR += www
+ .endif
+ .if exists (${.CURDIR}/x11)
  SUBDIR += x11
+ .endif
+ .if exists (${.CURDIR}/x11-clocks)
  SUBDIR += x11-clocks
+ .endif
+ .if exists (${.CURDIR}/x11-fm)
  SUBDIR += x11-fm
+ .endif
+ .if exists (${.CURDIR}/x11-fonts)
  SUBDIR += x11-fonts
+ .endif
+ .if exists (${.CURDIR}/x11-servers)
  SUBDIR += x11-servers
+ .endif
+ .if exists (${.CURDIR}/x11-themes)
  SUBDIR += x11-themes
+ .endif
+ .if exists (${.CURDIR}/x11-toolkits)
  SUBDIR += x11-toolkits
+ .endif
+ .if exists (${.CURDIR}/x11-wm)
  SUBDIR += x11-wm
+ .endif
  
  PORTSTOP=	yes
  

Thanks

Aleksandar


More information about the freebsd-ports mailing list