diff options
author | agc <agc@pkgsrc.org> | 1999-02-21 21:25:02 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 1999-02-21 21:25:02 +0000 |
commit | 8e2ac8a9431e62273d99b26186ffdd668d981aed (patch) | |
tree | 15ac63bbd94e9920311ef17567f50c60a8e9fa9f /Makefile | |
parent | aa7216fe4f8c7f7171629d2f7ebd4ea4b1cdddc6 (diff) | |
download | pkgsrc-8e2ac8a9431e62273d99b26186ffdd668d981aed.tar.gz |
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.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 14 insertions, 4 deletions
@@ -1,7 +1,15 @@ -# $NetBSD: Makefile,v 1.18 1998/10/28 18:16:50 garbled Exp $ +# $NetBSD: Makefile,v 1.19 1999/02/21 21:25:02 agc Exp $ # FreeBSD Id: Makefile,v 1.35 1997/08/19 07:10:01 fenner Exp # +.include "mk/bsd.prefs.mk" + +.ifdef SPECIFIC_PKGS +SUBDIR+= ${SITE_SPECIFIC_PKGS} +SUBDIR+= ${HOST_SPECIFIC_PKGS} +SUBDIR+= ${GROUP_SPECIFIC_PKGS} +SUBDIR+= ${USER_SPECIFIC_PKGS} +.else #SUBDIR += ai SUBDIR += archivers #SUBDIR += astro @@ -42,6 +50,7 @@ SUBDIR += textproc #SUBDIR += vietnamese SUBDIR += www SUBDIR += x11 +.endif PKGSRCTOP= yes @@ -49,11 +58,11 @@ PKGSRCTOP= yes index: @rm -f ${.CURDIR}/INDEX - @make ${.CURDIR}/INDEX + @${MAKE} ${.CURDIR}/INDEX ${.CURDIR}/INDEX: @echo -n "Generating INDEX - please wait.." - @make describe ECHO_MSG="echo > /dev/null" > ${.CURDIR}/INDEX + @${MAKE} describe ECHO_MSG="echo > /dev/null" > ${.CURDIR}/INDEX @echo " Done." print-index: ${.CURDIR}/INDEX @@ -62,7 +71,8 @@ print-index: ${.CURDIR}/INDEX search: ${.CURDIR}/INDEX .if !defined(key) @echo "The search target requires a keyword parameter," - @echo "e.g.: \"make search key=somekeyword\"" + @echo "e.g.: \"${MAKE} search key=somekeyword\"" .else @grep ${key} ${.CURDIR}/INDEX | awk -F\| '{ printf("Port:\t%s\nPath:\t%s\nInfo:\t%s\nMaint:\t%s\nIndex:\t%s\nB-deps:\t%s\nR-deps:\t%s\nArch:\t%s\n\n", $$1, $$2, $$4, $$6, $$7, $$8, $$9, $$10); }' .endif + |