openbsd-ports/textproc/ispell/Makefile

88 lines
2.5 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.15 2000/02/15 05:05:21 turan Exp $
# Original from: Ejovi Nuwere <ejovi@ejovi.net>
1997-11-17 21:46:09 -05:00
NEED_VERSION= 1.163
FRENCH_DICT= francais-IREQ-1.4
1999-06-28 13:45:51 -04:00
GERMAN_DICT= hk2-deutsch
DISTNAME= ispell-3.1.20
1997-11-17 21:46:09 -05:00
CATEGORIES= textproc
NEED_VERSION= 1.195
MASTER_SITES= ftp://ftp.cs.ucla.edu/pub/ispell-3.1/
MASTER_SITES0= ftp://ftp.robot.ireq.ca/pub/ispell/
MASTER_SITES1= ftp://ftp.informatik.uni-kiel.de/pub/kiel/dicts/
2000-02-02 12:02:38 -05:00
MASTER_SITES2= ftp://ftp.kiarchive.ru/pub/unix/text/ispell/
SUPDISTFILES= ${FRENCH_DICT}.tar.gz:0 ${GERMAN_DICT}.tar.gz:1
1997-11-17 21:46:09 -05:00
2000-02-02 12:02:38 -05:00
PATCHFILES= ispell-html-mode.patch:2
1997-11-17 21:46:09 -05:00
MAINTAINER= ports@openbsd.org
2000-02-12 01:29:49 -05:00
LICENSE_TYPE= BSD
PERMIT_PACKAGE_CDROM= YES
PERMIT_PACKAGE_FTP= YES
PERMIT_DISTFILES_CDROM= YES
PERMIT_DISTFILES_FTP= YES
2000-02-12 01:29:49 -05:00
MAKE_FLAGS= TMPDIR=${WRKDIR}
1997-11-17 21:46:09 -05:00
2000-02-10 15:40:19 -05:00
WRKDIST= ${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 '******************************************************'
@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 to yes, ie. *'
@echo '* "make ISPELL_FR=yes" or "make ISPELL_DE=yes" *'
@echo '******************************************************'
@echo ''
.elif defined(ISPELL_FR) && ${ISPELL_FR:U} == YES
EXTRA_DICT= ${FRENCH_DICT}.tar.gz
DISTFILES= ${DISTNAME}.tar.gz ${EXTRA_DICT}:0
PLIST= ${PKGDIR}/PLIST.french
.elif defined(ISPELL_DE) && ${ISPELL_DE:U} == YES
EXTRA_DICT= ${GERMAN_DICT}.tar.gz
DISTFILES= ${DISTNAME}.tar.gz ${EXTRA_DICT}:1
PLIST= ${PKGDIR}/PLIST.german
.endif
.endif
1997-11-17 21:46:09 -05:00
pre-extract:
.if !defined(LANG)
@echo ''
@echo '******************************************************'
@echo '* Note that you can build a british version by *'
@echo '* typing "make british" following a "make clean" *'
@echo '******************************************************'
@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
.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...."
@make ${.MAKEFLAGS} LANG=british
1997-11-17 21:46:09 -05:00
french:
@echo "Okay, making a french/english version of ispell...."
@make ${.MAKEFLAGS} ISPELL_FR=Yes
1997-11-17 21:46:09 -05:00
german:
@echo "Okay, making a german/english version of ispell...."
@make ${.MAKEFLAGS} ISPELL_DE=Yes
1997-11-17 21:46:09 -05:00
post-install:
@install-info ${PREFIX}/info/ispell.info ${PREFIX}/info/dir
1997-11-17 21:46:09 -05:00
.include <bsd.port.mk>