summaryrefslogtreecommitdiff
path: root/textproc/ispell
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>1999-02-21 21:25:02 +0000
committeragc <agc@pkgsrc.org>1999-02-21 21:25:02 +0000
commit8e2ac8a9431e62273d99b26186ffdd668d981aed (patch)
tree15ac63bbd94e9920311ef17567f50c60a8e9fa9f /textproc/ispell
parentaa7216fe4f8c7f7171629d2f7ebd4ea4b1cdddc6 (diff)
downloadpkgsrc-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 'textproc/ispell')
-rw-r--r--textproc/ispell/Makefile39
1 files changed, 20 insertions, 19 deletions
diff --git a/textproc/ispell/Makefile b/textproc/ispell/Makefile
index 72c83e90a77..33f893e47c0 100644
--- a/textproc/ispell/Makefile
+++ b/textproc/ispell/Makefile
@@ -1,24 +1,25 @@
-# $NetBSD: Makefile,v 1.15 1998/12/21 00:35:59 frueauf Exp $
+# $NetBSD: Makefile,v 1.16 1999/02/21 21:25:03 agc Exp $
# FreeBSD Id: Makefile,v 1.21 1997/08/13 23:29:52 jmz Exp
#
DISTNAME= ispell-3.1.20
-WRKSRC= ${WRKDIR}/ispell-3.1
CATEGORIES= textproc
MASTER_SITES= ftp://ftp.cs.ucla.edu/pub/ispell-3.1/
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.gnu.org/software/ispell/ispell.html
+WRKSRC= ${WRKDIR}/ispell-3.1
+
MAKE_FLAGS= TMPDIR=${WRKDIR}
-SCRIPTS_ENV= "LANG=${LANG}"
+SCRIPTS_ENV= "LANG=${ISPELL_LANG}"
USE_GTEXINFO= yes
INFO_FILES= ispell.info
.include "../../mk/bsd.prefs.mk"
-_INTTYPES!= if [ -e /usr/include/inttypes.h ]; then echo "Exists"; else echo "No go"; fi
+_INTTYPES!= if [ -e /usr/include/inttypes.h ]; then ${ECHO} "Exists"; else ${ECHO} "No go"; fi
.if (${_INTTYPES} == "Exists")
CFLAGS+= -DHAVE_INTTYPES_H
@@ -26,10 +27,10 @@ CFLAGS+= -DHAVE_INTTYPES_H
pre-extract pre-build pre-install:
.if !defined(ISPELL_FR)
- @echo '******************************************************'
- @echo '* Note that you can build a french/english version *'
- @echo '* by typing "make french" *'
- @echo '******************************************************'
+ @${ECHO} '******************************************************'
+ @${ECHO} '* Note that you can build a french/english version *'
+ @${ECHO} '* by typing "make french" *'
+ @${ECHO} '******************************************************'
.else
EXTRA_DICT= francais-IREQ-1.4.tar.gz
MASTER_SITES+= ftp://ftp.robot.ireq.ca/pub/ispell/
@@ -37,29 +38,29 @@ DISTFILES+= ${EXTRA_DICT}
.endif
pre-extract:
-.if !defined(LANG)
- @echo '******************************************************'
- @echo '* Note that you can build a british version by *'
- @echo '* typing "make british" following a "make clean" *'
- @echo '******************************************************'
+.if !defined(ISPELL_LANG)
+ @${ECHO} '******************************************************'
+ @${ECHO} '* Note that you can build a british version by *'
+ @${ECHO} '* typing "make british" following a "make clean" *'
+ @${ECHO} '******************************************************'
.endif
pre-configure:
.if defined(EXTRA_DICT)
- @echo ${EXTRA_DICT} > ${WRKDIR}/extra_dict
+ @${ECHO} ${EXTRA_DICT} > ${WRKDIR}/extra_dict
.else
- @echo -n
+ @${ECHO} -n
.endif
post-configure:
- @echo "#define CFLAGS \"${CFLAGS}\"" >> ${WRKSRC}/local.h
+ @${ECHO} "#define CFLAGS \"${CFLAGS}\"" >> ${WRKSRC}/local.h
british:
- @echo "Okay, making a british version of ispell...."
- @${MAKE} ${.MAKEFLAGS} LANG=british all
+ @${ECHO} "Okay, making a british version of ispell...."
+ @${MAKE} ${.MAKEFLAGS} ISPELL_LANG=british all
french:
- @echo "Okay, making a french/english version of ispell...."
+ @${ECHO} "Okay, making a french/english version of ispell...."
@${MAKE} ${.MAKEFLAGS} ISPELL_FR=yes
pre-install: