1999-06-21 19:17:01 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.7 1999/06/21 23:17:01 brad Exp $
|
1999-04-06 15:34:18 -04:00
|
|
|
# Original from: Ejovi Nuwere <ejovi@ejovi.net>
|
1997-11-17 21:46:09 -05:00
|
|
|
|
1999-06-21 19:17:01 -04:00
|
|
|
NEED_VERSION= 1.89
|
|
|
|
|
|
|
|
FRENCH_DICT= francais-IREQ-1.4
|
|
|
|
GERMAN_DICT= hk2-deutch
|
|
|
|
|
1999-06-21 00:07:05 -04:00
|
|
|
DISTNAME= ispell-3.1.20
|
1997-11-17 21:46:09 -05:00
|
|
|
CATEGORIES= textproc
|
1999-06-21 19:17:01 -04:00
|
|
|
MASTER_SITES= ftp://ftp.cs.ucla.edu/pub/ispell-3.1/ \
|
|
|
|
ftp://ftp.robot.ireq.ca/pub/ispell/ \
|
|
|
|
ftp://ftp.informatik.uni-kiel.de/pub/kiel/dicts/
|
|
|
|
SUPDISTFILES= ${DISTNAME}.tar.gz ${FRENCH_DICT}.tar.gz ${GERMAN_DICT}.tar.gz
|
1997-11-17 21:46:09 -05:00
|
|
|
|
1999-06-21 00:07:05 -04:00
|
|
|
PATCH_SITES= ftp://ftp.kiarchive.ru/pub/unix/text/ispell/
|
|
|
|
PATCHFILES= ispell-html-mode.patch
|
1997-11-17 21:46:09 -05:00
|
|
|
|
1999-06-21 00:07:05 -04:00
|
|
|
MAINTAINER= ports@openbsd.org
|
|
|
|
|
|
|
|
MAKE_FLAGS= TMPDIR=${WRKDIR} -f
|
1997-11-17 21:46:09 -05:00
|
|
|
|
1999-06-21 19:17:01 -04:00
|
|
|
WRKSRC= ${WRKDIR}/ispell-3.1
|
|
|
|
|
1997-11-17 21:46:09 -05:00
|
|
|
pre-fetch pre-build pre-install:
|
1999-06-21 00:07:05 -04:00
|
|
|
.if !defined(NO_WARNINGS)
|
1999-06-21 19:17:01 -04:00
|
|
|
.if !defined(ISPELL_FR) && !defined(ISPELL_DE)
|
1999-06-21 00:07:05 -04:00
|
|
|
@${ECHO} '******************************************************'
|
1999-06-21 19:17:01 -04:00
|
|
|
@${ECHO} '* Note that you can build a french/english or a *'
|
|
|
|
@${ECHO} '* german/english version by setting the shell *'
|
|
|
|
@${ECHO} '* variable ISPELL_FR or ISPELL_DE" *'
|
1999-06-21 00:07:05 -04:00
|
|
|
@${ECHO} '******************************************************'
|
1999-06-21 19:17:01 -04:00
|
|
|
.elif defined(ISPELL_FR)
|
|
|
|
EXTRA_DICT= ${FRENCH_DICT}.tar.gz
|
|
|
|
DISTFILES= ${DISTNAME}.tar.gz ${EXTRA_DICT}
|
|
|
|
PLIST= ${PKGDIR}/PLIST.french
|
|
|
|
.elif defined(ISPELL_DE)
|
|
|
|
EXTRA_DICT= ${GERMAN_DICT}.tar.gz
|
|
|
|
DISTFILES= ${DISTNAME}.tar.gz ${EXTRA_DICT}
|
|
|
|
PLIST= ${PKGDIR}/PLIST.german
|
|
|
|
.endif
|
1998-12-16 15:08:42 -05:00
|
|
|
.endif
|
1997-11-17 21:46:09 -05:00
|
|
|
|
|
|
|
pre-extract:
|
|
|
|
.if !defined(LANG)
|
1999-06-21 00:07:05 -04:00
|
|
|
@${ECHO} '******************************************************'
|
|
|
|
@${ECHO} '* Note that you can build a british version by *'
|
|
|
|
@${ECHO} '* typing "make british" following a "make clean" *'
|
|
|
|
@${ECHO} '******************************************************'
|
1997-11-17 21:46:09 -05:00
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
.if defined(EXTRA_DICT)
|
1999-06-21 00:07:05 -04:00
|
|
|
@${ECHO} ${EXTRA_DICT} > ${WRKDIR}/extra_dict
|
1997-11-17 21:46:09 -05:00
|
|
|
.else
|
1999-06-21 00:07:05 -04:00
|
|
|
@${ECHO} -n
|
1997-11-17 21:46:09 -05:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-configure:
|
1999-06-21 00:07:05 -04:00
|
|
|
@${ECHO} "#define CFLAGS \"${CFLAGS}\"" >> ${WRKSRC}/local.h
|
1997-11-17 21:46:09 -05:00
|
|
|
|
|
|
|
british:
|
1999-06-21 00:07:05 -04:00
|
|
|
@${ECHO} "Okay, making a british version of ispell...."
|
1997-11-17 21:46:09 -05:00
|
|
|
@${MAKE} ${.MAKEFLAGS} LANG=british all
|
|
|
|
|
|
|
|
french:
|
1999-06-21 00:07:05 -04:00
|
|
|
@${ECHO} "Okay, making a french/english version of ispell...."
|
1997-11-17 21:46:09 -05:00
|
|
|
@${MAKE} ${.MAKEFLAGS} ISPELL_FR=yes
|
|
|
|
|
1999-06-21 19:17:01 -04:00
|
|
|
german:
|
|
|
|
@${ECHO} "Okay, making a german/english version of ispell...."
|
|
|
|
@${MAKE} ${.MAKEFLAGS} ISPELL_DE=yes
|
|
|
|
|
1997-11-17 21:46:09 -05:00
|
|
|
pre-install:
|
|
|
|
@${MKDIR} ${PREFIX}/share/emacs/site-lisp
|
|
|
|
|
1998-07-12 22:24:49 -04:00
|
|
|
post-install:
|
|
|
|
@if [ ! -f ${PREFIX}/info/dir ]; then \
|
|
|
|
${SED} -ne '1,/Menu:/p' /usr/share/info/dir > ${PREFIX}/info/dir; \
|
|
|
|
fi
|
|
|
|
@install-info ${PREFIX}/info/ispell ${PREFIX}/info/dir
|
|
|
|
|
1997-11-17 21:46:09 -05:00
|
|
|
.include <bsd.port.mk>
|