2014-06-02 12:24:05 +02:00
|
|
|
# $NetBSD: Makefile,v 1.86 2014/06/02 10:24:05 wiz Exp $
|
2007-01-06 18:10:42 +01:00
|
|
|
#
|
|
|
|
# This is the top-level Makefile of pkgsrc. It contains a list of the
|
|
|
|
# categories of packages, as well as some targets that operate on the
|
|
|
|
# whole pkgsrc system.
|
|
|
|
#
|
|
|
|
# User-settable variables:
|
|
|
|
#
|
|
|
|
# SPECIFIC_PKGS
|
|
|
|
# (See mk/defaults/mk.conf)
|
|
|
|
#
|
|
|
|
# SITE_SPECIFIC_PKGS
|
|
|
|
# HOST_SPECIFIC_PKGS
|
|
|
|
# GROUP_SPECIFIC_PKGS
|
|
|
|
# USER_SPECIFIC_PKGS
|
|
|
|
# The specific packages that are to be built.
|
|
|
|
#
|
|
|
|
# XXX: Why are there four distinct variables? The same could be
|
|
|
|
# achieved using just SPECIFIC_PKGS as the list of packages and
|
|
|
|
# leaving the remaining details to the user.
|
|
|
|
#
|
|
|
|
# See also:
|
|
|
|
# mk/misc/toplevel.mk
|
1997-10-03 10:03:18 +02:00
|
|
|
#
|
2005-05-14 22:50:02 +02:00
|
|
|
|
2007-01-07 01:57:36 +01:00
|
|
|
# Note: The tools definitions must come before bsd.prefs.mk is included.
|
|
|
|
|
|
|
|
# tools used by this Makefile
|
|
|
|
USE_TOOLS+= [ awk cat cmp echo env expr false fgrep grep mv rm sed \
|
|
|
|
sort wc
|
|
|
|
|
|
|
|
# additional tools used by bsd.pkg.subdir.mk
|
|
|
|
USE_TOOLS+= basename touch
|
|
|
|
|
|
|
|
PKGSRCTOP= yes
|
|
|
|
|
1999-03-03 21:19:05 +01:00
|
|
|
.include "mk/bsd.prefs.mk"
|
Allow for customised groups of packages at the top-level of pkgsrc.
If SPECIFIC_PKGS is defined (at the top-level of pkgsrc), then instead of
looping through all the categories and then all the packages within that,
simply loop through ${SITE_SPECIFIC_PKGS}, ${HOST_SPECIFIC_PKGS},
${GROUP_SPECIFIC_PKGS} and ${USER_SPECIFIC_PKGS}, which are whitespace
separated lists of categories/packages e.g.
SITE_SPECIFIC_PKGS+= devel/cvs security/ssh
The default behaviour is unchanged - if SPECIFIC_PKGS is not defined,
the whole hierarchy will be traversed.
Modify mk.conf.example to reflect the settings of SPECIFIC_PKGS,
SITE_SPECIFIC_PKGS, HOST_SPECIFIC_PKGS, GROUP_SPECIFIC_PKGS and
USER_SPECIFIC_PKGS.
Modify the ispell package to use the make definition ISPELL_LANG,
rather than just LANG (which can clash with the environment variable
of the same name), and modify mk.conf.example accordingly.
1999-02-21 22:25:02 +01:00
|
|
|
|
2007-01-06 18:10:42 +01:00
|
|
|
.if defined(SPECIFIC_PKGS)
|
Allow for customised groups of packages at the top-level of pkgsrc.
If SPECIFIC_PKGS is defined (at the top-level of pkgsrc), then instead of
looping through all the categories and then all the packages within that,
simply loop through ${SITE_SPECIFIC_PKGS}, ${HOST_SPECIFIC_PKGS},
${GROUP_SPECIFIC_PKGS} and ${USER_SPECIFIC_PKGS}, which are whitespace
separated lists of categories/packages e.g.
SITE_SPECIFIC_PKGS+= devel/cvs security/ssh
The default behaviour is unchanged - if SPECIFIC_PKGS is not defined,
the whole hierarchy will be traversed.
Modify mk.conf.example to reflect the settings of SPECIFIC_PKGS,
SITE_SPECIFIC_PKGS, HOST_SPECIFIC_PKGS, GROUP_SPECIFIC_PKGS and
USER_SPECIFIC_PKGS.
Modify the ispell package to use the make definition ISPELL_LANG,
rather than just LANG (which can clash with the environment variable
of the same name), and modify mk.conf.example accordingly.
1999-02-21 22:25:02 +01:00
|
|
|
SUBDIR+= ${SITE_SPECIFIC_PKGS}
|
|
|
|
SUBDIR+= ${HOST_SPECIFIC_PKGS}
|
|
|
|
SUBDIR+= ${GROUP_SPECIFIC_PKGS}
|
|
|
|
SUBDIR+= ${USER_SPECIFIC_PKGS}
|
|
|
|
.else
|
2007-06-20 00:30:33 +02:00
|
|
|
# Packages in the x11 category tend to require a lot more parse time
|
2007-06-19 15:39:56 +02:00
|
|
|
# than the rest of the packages. Reorder it to the beginning to avoid
|
|
|
|
# stalling parallel scans near the end of a run.
|
|
|
|
SUBDIR+= x11
|
2005-09-02 00:02:34 +02:00
|
|
|
SUBDIR+= archivers
|
|
|
|
SUBDIR+= audio
|
|
|
|
SUBDIR+= benchmarks
|
|
|
|
SUBDIR+= biology
|
|
|
|
SUBDIR+= cad
|
|
|
|
SUBDIR+= chat
|
|
|
|
SUBDIR+= comms
|
|
|
|
SUBDIR+= converters
|
|
|
|
SUBDIR+= cross
|
|
|
|
SUBDIR+= databases
|
|
|
|
SUBDIR+= devel
|
|
|
|
SUBDIR+= editors
|
|
|
|
SUBDIR+= emulators
|
2007-02-20 23:46:32 +01:00
|
|
|
SUBDIR+= filesystems
|
2005-09-02 00:02:34 +02:00
|
|
|
SUBDIR+= finance
|
|
|
|
SUBDIR+= fonts
|
|
|
|
SUBDIR+= games
|
|
|
|
SUBDIR+= geography
|
|
|
|
SUBDIR+= graphics
|
|
|
|
SUBDIR+= ham
|
|
|
|
SUBDIR+= inputmethod
|
|
|
|
SUBDIR+= lang
|
|
|
|
SUBDIR+= mail
|
|
|
|
SUBDIR+= math
|
|
|
|
SUBDIR+= mbone
|
|
|
|
SUBDIR+= meta-pkgs
|
|
|
|
SUBDIR+= misc
|
|
|
|
SUBDIR+= multimedia
|
|
|
|
SUBDIR+= net
|
|
|
|
SUBDIR+= news
|
|
|
|
SUBDIR+= parallel
|
|
|
|
SUBDIR+= pkgtools
|
|
|
|
SUBDIR+= print
|
2005-09-28 09:49:22 +02:00
|
|
|
#SUBDIR+= regress # regression tests must be started manually
|
2005-09-02 00:02:34 +02:00
|
|
|
SUBDIR+= security
|
|
|
|
SUBDIR+= shells
|
|
|
|
SUBDIR+= sysutils
|
|
|
|
SUBDIR+= textproc
|
|
|
|
SUBDIR+= time
|
|
|
|
SUBDIR+= wm
|
|
|
|
SUBDIR+= www
|
Allow for customised groups of packages at the top-level of pkgsrc.
If SPECIFIC_PKGS is defined (at the top-level of pkgsrc), then instead of
looping through all the categories and then all the packages within that,
simply loop through ${SITE_SPECIFIC_PKGS}, ${HOST_SPECIFIC_PKGS},
${GROUP_SPECIFIC_PKGS} and ${USER_SPECIFIC_PKGS}, which are whitespace
separated lists of categories/packages e.g.
SITE_SPECIFIC_PKGS+= devel/cvs security/ssh
The default behaviour is unchanged - if SPECIFIC_PKGS is not defined,
the whole hierarchy will be traversed.
Modify mk.conf.example to reflect the settings of SPECIFIC_PKGS,
SITE_SPECIFIC_PKGS, HOST_SPECIFIC_PKGS, GROUP_SPECIFIC_PKGS and
USER_SPECIFIC_PKGS.
Modify the ispell package to use the make definition ISPELL_LANG,
rather than just LANG (which can clash with the environment variable
of the same name), and modify mk.conf.example accordingly.
1999-02-21 22:25:02 +01:00
|
|
|
.endif
|
1997-10-03 10:03:18 +02:00
|
|
|
|
2003-05-03 18:26:01 +02:00
|
|
|
SUBDIR+= ${USER_ADDITIONAL_PKGS}
|
2004-03-26 03:38:42 +01:00
|
|
|
|
2009-05-16 09:21:05 +02:00
|
|
|
.include "mk/misc/toplevel.mk"
|