openbsd-ports/textproc/ispell/Makefile

84 lines
2.4 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.7 1999/06/21 23:17:01 brad Exp $
# Original from: Ejovi Nuwere <ejovi@ejovi.net>
1997-11-17 21:46:09 -05:00
NEED_VERSION= 1.89
FRENCH_DICT= francais-IREQ-1.4
GERMAN_DICT= hk2-deutch
DISTNAME= ispell-3.1.20
1997-11-17 21:46:09 -05:00
CATEGORIES= textproc
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
PATCH_SITES= ftp://ftp.kiarchive.ru/pub/unix/text/ispell/
PATCHFILES= ispell-html-mode.patch
1997-11-17 21:46:09 -05:00
MAINTAINER= ports@openbsd.org
MAKE_FLAGS= TMPDIR=${WRKDIR} -f
1997-11-17 21:46:09 -05:00
WRKSRC= ${WRKDIR}/ispell-3.1
1997-11-17 21:46:09 -05:00
pre-fetch pre-build pre-install:
.if !defined(NO_WARNINGS)
.if !defined(ISPELL_FR) && !defined(ISPELL_DE)
@${ECHO} '******************************************************'
@${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" *'
@${ECHO} '******************************************************'
.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
.endif
1997-11-17 21:46:09 -05:00
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} '******************************************************'
1997-11-17 21:46:09 -05:00
.endif
pre-configure:
.if defined(EXTRA_DICT)
@${ECHO} ${EXTRA_DICT} > ${WRKDIR}/extra_dict
1997-11-17 21:46:09 -05:00
.else
@${ECHO} -n
1997-11-17 21:46:09 -05:00
.endif
post-configure:
@${ECHO} "#define CFLAGS \"${CFLAGS}\"" >> ${WRKSRC}/local.h
1997-11-17 21:46:09 -05:00
british:
@${ECHO} "Okay, making a british version of ispell...."
1997-11-17 21:46:09 -05:00
@${MAKE} ${.MAKEFLAGS} LANG=british all
french:
@${ECHO} "Okay, making a french/english version of ispell...."
1997-11-17 21:46:09 -05:00
@${MAKE} ${.MAKEFLAGS} ISPELL_FR=yes
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
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>