2000-02-11 17:08:00 +00:00
|
|
|
# New ports collection makefile for: ispell
|
|
|
|
# Date created: 6 November 1994
|
|
|
|
# Whom: jmz
|
1995-04-15 03:46:07 +00:00
|
|
|
#
|
1999-08-31 02:11:56 +00:00
|
|
|
# $FreeBSD$
|
1995-04-15 03:46:07 +00:00
|
|
|
#
|
|
|
|
|
2000-04-09 21:54:47 +00:00
|
|
|
PORTNAME?= ispell
|
|
|
|
PORTVERSION?= 3.1.20c
|
1998-11-20 15:26:10 +00:00
|
|
|
CATEGORIES= textproc elisp
|
1999-10-15 20:46:35 +00:00
|
|
|
MASTER_SITES= ftp://ftp.cs.ucla.edu/pub/ispell-3.1/ \
|
1999-12-08 00:29:51 +00:00
|
|
|
ftp://ftp.kiarchive.ru/pub/unix/text/ispell/
|
2000-04-15 10:35:24 +00:00
|
|
|
DISTNAME= ispell-3.1
|
2000-02-07 03:27:40 +00:00
|
|
|
|
|
|
|
MAINTAINER= jmz@FreeBSD.org
|
2000-01-22 22:16:40 +00:00
|
|
|
PATCH_SITES= ftp://ftp.kiarchive.ru/pub/unix/text/ispell/
|
|
|
|
ISPELL_FILES= ispell-3.1.20.tar.gz
|
|
|
|
HTML_PATCH= ispell-html-mode.patch
|
|
|
|
DISTFILES= ${ISPELL_FILES}
|
|
|
|
PATCHFILES= ${HTML_PATCH}
|
1997-12-16 20:17:47 +00:00
|
|
|
|
1999-08-13 00:13:14 +00:00
|
|
|
MAN1= ispell.1 sq.1
|
1996-11-18 14:17:24 +00:00
|
|
|
MAN4= ispell.4 english.4
|
2000-02-11 17:08:00 +00:00
|
|
|
MLINKS= ispell.1 buildhash.1 ispell.1 findaffix.1 ispell.1 \
|
|
|
|
munchlist.1 ispell.1 tryaffix.1 sq.1 unsq.1
|
|
|
|
|
2000-01-22 22:16:40 +00:00
|
|
|
EXTRACT_ONLY= ${ISPELL_FILES}
|
2000-02-07 03:27:40 +00:00
|
|
|
EXTRA_DICT=
|
2000-02-11 17:08:00 +00:00
|
|
|
MAKE_FLAGS= TMPDIR=${WRKDIR} -f
|
2000-02-07 03:27:40 +00:00
|
|
|
ALL_TARGET=
|
2000-02-11 17:08:00 +00:00
|
|
|
BUILDHASH= ${WRKSRC}/buildhash
|
|
|
|
DATADIR= ${PREFIX}/share/ispell
|
1995-04-15 03:46:07 +00:00
|
|
|
|
2000-02-11 17:08:00 +00:00
|
|
|
.if (!defined(ISPELL_FR) && !defined (ISPELL_SE) && !defined(ISPELL_BR) && !defined(ISPELL_DENEU) && !defined(ISPELL_DEALT) && !defined(ISPELL_BRITISH) && !defined(ISPELL_NO))
|
|
|
|
.if (make(extract) || make(patch) || make(configure) || make(build) || make (install))
|
1999-07-04 18:21:51 +00:00
|
|
|
.BEGIN:
|
1999-08-27 22:30:39 +00:00
|
|
|
@${ECHO_MSG} '*********************************************************'
|
2000-02-11 17:08:00 +00:00
|
|
|
@${ECHO_MSG} '* You can add further dictionaries: *'
|
2000-01-22 22:16:40 +00:00
|
|
|
@${ECHO_MSG} '* Use make-flag: *'
|
2000-02-11 17:08:00 +00:00
|
|
|
@${ECHO_MSG} '* - British ISPELL_BRITISH=yes *'
|
|
|
|
@${ECHO_MSG} '* (replaces the American dictionary) *'
|
2000-01-22 22:16:40 +00:00
|
|
|
@${ECHO_MSG} '* - French ISPELL_FR=yes *'
|
|
|
|
@${ECHO_MSG} '* - Brasilian ISPELL_BR=yes *'
|
|
|
|
@${ECHO_MSG} '* - German (old spelling) ISPELL_DEALT=yes *'
|
|
|
|
@${ECHO_MSG} '* - German (new spelling) ISPELL_DENEU=yes *'
|
|
|
|
@${ECHO_MSG} '* - Swedish ISPELL_SE=yes *'
|
2000-02-11 17:08:00 +00:00
|
|
|
@${ECHO_MSG} '* - Norwegian ISPELL_NO=yes *'
|
|
|
|
@${ECHO_MSG} '* Example: "make ISPELL_FR=yes ISPELL_SE=yes install" *'
|
1999-08-27 22:30:39 +00:00
|
|
|
@${ECHO_MSG} '*********************************************************'
|
1999-07-04 18:21:51 +00:00
|
|
|
.endif
|
1997-02-07 23:03:11 +00:00
|
|
|
.else
|
2000-01-22 22:16:40 +00:00
|
|
|
.if defined(ISPELL_FR)
|
|
|
|
FRDISTFILE= francais-IREQ-1.4.tar.gz
|
1997-02-07 23:03:11 +00:00
|
|
|
MASTER_SITES+= ftp://ftp.robot.ireq.ca/pub/ispell/
|
2000-02-11 17:08:00 +00:00
|
|
|
EXTRA_DICT+= ${FRDISTFILE}
|
2000-01-22 22:16:40 +00:00
|
|
|
.endif
|
|
|
|
.if defined(ISPELL_SE)
|
|
|
|
SEDISTFILE= iswedish-1.2.1.tar.gz
|
2000-02-07 03:27:40 +00:00
|
|
|
MASTER_SITES+= http://www.sslug.dk/locale/ispell/iswedish/
|
2000-01-22 22:16:40 +00:00
|
|
|
EXTRA_DICT+= ${SEDISTFILE}
|
|
|
|
EXTRACT_ONLY+= ${SEDISTFILE}
|
|
|
|
.endif
|
|
|
|
.if defined(ISPELL_BR)
|
2000-02-07 03:27:40 +00:00
|
|
|
BRDISTFILE= br.ispell-2.4.tar.gz
|
2000-02-11 17:08:00 +00:00
|
|
|
MASTER_SITES+= ftp://ftp.ime.usp.br/pub/ueda/br.ispell/
|
2000-01-22 22:16:40 +00:00
|
|
|
EXTRA_DICT+= ${BRDISTFILE}
|
|
|
|
EXTRACT_ONLY+= ${BRDISTFILE}
|
|
|
|
.endif
|
|
|
|
.if defined(ISPELL_DENEU)
|
|
|
|
DENEUDISTFILE= igerman98-19991219.tar.gz
|
|
|
|
MASTER_SITES+= http://members.xoom.com/maccy/ispell/dict/ \
|
2000-02-07 03:27:40 +00:00
|
|
|
ftp://student.physik.uni-dortmund.de/pub/users/jacke/ispell/
|
2000-02-11 17:08:00 +00:00
|
|
|
EXTRA_DICT+= ${DENEUDISTFILE}
|
|
|
|
EXTRACT_ONLY+= ${DENEUDISTFILE}
|
2000-01-22 22:16:40 +00:00
|
|
|
FETCH_BEFORE_ARGS+= -b # HTTP Workaround at Xoom
|
|
|
|
.endif
|
|
|
|
.if defined(ISPELL_DEALT)
|
|
|
|
DEALTDISTFILE= hk-deutsch.tar.gz
|
|
|
|
EXTRA_DICT+= ${DEALTDISTFILE}
|
|
|
|
MASTER_SITES+= ftp://ftp.informatik.uni-kiel.de/pub/kiel/dicts/
|
|
|
|
.endif
|
2000-02-11 17:08:00 +00:00
|
|
|
.if defined(ISPELL_NO)
|
|
|
|
NODISTFILE= ispell-norsk-1.1a.tar.gz
|
|
|
|
MASTER_SITES+= http://www.uio.no/~runekl/
|
|
|
|
EXTRA_DICT+= ${NODISTFILE}
|
|
|
|
MASKBITS?= 64
|
1999-08-13 00:13:14 +00:00
|
|
|
.endif
|
1997-02-07 23:03:11 +00:00
|
|
|
|
2000-02-11 17:08:00 +00:00
|
|
|
DISTFILES+= ${EXTRA_DICT}
|
|
|
|
.endif
|
2000-01-22 22:16:40 +00:00
|
|
|
|
|
|
|
post-extract:
|
|
|
|
.if defined(ISPELL_FR)
|
2000-02-07 03:27:40 +00:00
|
|
|
@${MKDIR} ${WRKDIR}/francais-IREQ
|
2000-01-22 22:16:40 +00:00
|
|
|
@${TAR} -C ${WRKDIR}/francais-IREQ -zxf ${PORTSDIR}/distfiles/${FRDISTFILE}
|
1999-08-13 00:13:14 +00:00
|
|
|
.endif
|
2000-01-22 22:16:40 +00:00
|
|
|
.if defined(ISPELL_DEALT)
|
2000-02-11 17:08:00 +00:00
|
|
|
@${MKDIR} ${WRKDIR}/hk-deutsch
|
2000-01-22 22:16:40 +00:00
|
|
|
@${TAR} -C ${WRKDIR}/hk-deutsch/ -zxf ${PORTSDIR}/distfiles/${DEALTDISTFILE}
|
|
|
|
.endif
|
2000-02-11 17:08:00 +00:00
|
|
|
.if defined(ISPELL_NO)
|
|
|
|
@${MKDIR} ${WRKDIR}/inorsk
|
|
|
|
@${TAR} -C ${WRKDIR}/inorsk/ -zxf ${PORTSDIR}/distfiles/${NODISTFILE}
|
|
|
|
.endif
|
1997-02-07 23:03:11 +00:00
|
|
|
|
2000-01-22 22:16:40 +00:00
|
|
|
post-patch:
|
|
|
|
.if defined(ISPELL_FR)
|
|
|
|
@cd ${WRKDIR} && ${PATCH} < ${FILESDIR}/FR.patch 2>/dev/null
|
|
|
|
.endif
|
|
|
|
.if defined(ISPELL_BR)
|
2000-02-07 03:27:40 +00:00
|
|
|
@cd ${WRKDIR}/${BRDISTFILE:S/.tar.gz$//} && ${PATCH} < ${FILESDIR}/BR.patch 2>/dev/null
|
2000-01-22 22:16:40 +00:00
|
|
|
.endif
|
|
|
|
.if defined(ISPELL_DENEU)
|
|
|
|
@cd ${WRKDIR} && ${PATCH} < ${FILESDIR}/DENEU.patch 2>/dev/null
|
|
|
|
.endif
|
|
|
|
.if defined(ISPELL_SE)
|
|
|
|
@cd ${WRKDIR} && ${PATCH} < ${FILESDIR}/SE.patch 2>/dev/null
|
1995-03-07 14:41:48 +00:00
|
|
|
.endif
|
2000-02-11 17:08:00 +00:00
|
|
|
.if defined(ISPELL_NO)
|
|
|
|
@cd ${WRKSRC} && ${PATCH} < ${FILESDIR}/NO.patch 2>/dev/null
|
|
|
|
.endif
|
1995-03-07 14:41:48 +00:00
|
|
|
|
1995-09-23 20:48:02 +00:00
|
|
|
post-configure:
|
1999-08-27 22:30:39 +00:00
|
|
|
@${ECHO} "#define CFLAGS \"${CFLAGS}\"" >> ${WRKSRC}/local.h
|
2000-02-11 17:08:00 +00:00
|
|
|
.if defined(MASKBITS)
|
|
|
|
@${ECHO} "#define MASKBITS ${MASKBITS}" >> ${WRKSRC}/local.h
|
|
|
|
.endif
|
1995-09-23 20:48:02 +00:00
|
|
|
|
2000-02-11 17:08:00 +00:00
|
|
|
post-build:
|
|
|
|
.if defined(ISPELL_DENEU)
|
|
|
|
@cd ${WRKDIR}/${DENEUDISTFILE:S=.tar.gz==} && \
|
|
|
|
${MAKE} ${MAKEFLAGS} BUILDHASH=${BUILDHASH} german.hash && \
|
|
|
|
${MV} german.hash ndeutsch.hash && ${MV} german.aff ndeutsch.aff
|
|
|
|
.endif
|
|
|
|
.if defined(ISPELL_DEALT)
|
|
|
|
@cd ${WRKDIR}/${DEALTDISTFILE:S=.tar.gz==} && \
|
|
|
|
${CAT} worte.txt verben.txt \
|
|
|
|
adjektive.txt klein.txt geographie.txt vornamen.txt \
|
|
|
|
abkuerz.txt imperat.txt latein.txt informatik.txt \
|
|
|
|
infoabk.txt elektronik.txt orgabk.txt marken.txt \
|
|
|
|
alphabeta.txt roemisch.txt zusammen.txt | \
|
|
|
|
sort -u > all.words && \
|
|
|
|
${BUILDHASH} all.words deutsch.aff deutsch.hash
|
|
|
|
.endif
|
|
|
|
.if defined(ISPELL_BR)
|
|
|
|
@cd ${WRKDIR}/${BRDISTFILE:S=.tar.gz==} && \
|
|
|
|
${MAKE} ${MAKEFLAGS} BUILDHASH=${BUILDHASH} all
|
|
|
|
.endif
|
|
|
|
.if defined(ISPELL_SE)
|
|
|
|
@cd ${WRKDIR}/${SEDISTFILE:S=.tar.gz==} && \
|
|
|
|
${MAKE} ${MAKEFLAGS} BUILDHASH=${BUILDHASH}
|
|
|
|
.endif
|
|
|
|
.if defined(ISPELL_FR)
|
|
|
|
@cd ${WRKDIR}/francais-IREQ && \
|
|
|
|
${MAKE} ${MAKEFLAGS} BUILDHASH=${BUILDHASH}
|
|
|
|
.endif
|
|
|
|
.if defined(ISPELL_NO)
|
|
|
|
@cd ${WRKDIR}/inorsk && \
|
|
|
|
${CP} norsk.7bit norsk.aff && \
|
|
|
|
${CAT} norsk.base > norsk.sml && \
|
|
|
|
${BUILDHASH} norsk.sml norsk.aff norsk.hash
|
|
|
|
.endif
|
1995-07-21 13:22:21 +00:00
|
|
|
|
2000-02-11 17:08:00 +00:00
|
|
|
pre-install:
|
|
|
|
@if [ ! -d ${DATADIR} ]; then ${MKDIR} ${DATADIR}; fi
|
1997-02-07 23:03:11 +00:00
|
|
|
|
2000-01-22 22:16:40 +00:00
|
|
|
post-install:
|
2000-02-11 17:08:00 +00:00
|
|
|
@-${INSTALL_DATA} ${WRKDIR}/*/*.aff ${WRKDIR}/*/*.hash ${DATADIR}
|
2000-01-22 22:16:40 +00:00
|
|
|
.if defined(ISPELL_FR)
|
2000-02-11 17:08:00 +00:00
|
|
|
@${CAT} ${MASTERDIR}/pkg/PLIST.FR >> ${TMPPLIST}
|
2000-01-22 22:16:40 +00:00
|
|
|
.endif
|
|
|
|
.if defined(ISPELL_DEALT)
|
2000-02-11 17:08:00 +00:00
|
|
|
@${CAT} ${MASTERDIR}/pkg/PLIST.DEALT >> ${TMPPLIST}
|
2000-01-22 22:16:40 +00:00
|
|
|
.endif
|
|
|
|
.if defined(ISPELL_DENEU)
|
2000-02-11 17:08:00 +00:00
|
|
|
@${CAT} ${MASTERDIR}/pkg/PLIST.DENEU >> ${TMPPLIST}
|
2000-01-22 22:16:40 +00:00
|
|
|
.endif
|
|
|
|
.if defined(ISPELL_BR)
|
2000-02-11 17:08:00 +00:00
|
|
|
@${CAT} ${MASTERDIR}/pkg/PLIST.BR >> ${TMPPLIST}
|
2000-01-22 22:16:40 +00:00
|
|
|
.endif
|
|
|
|
.if defined(ISPELL_SE)
|
2000-02-11 17:08:00 +00:00
|
|
|
@${CAT} ${MASTERDIR}/pkg/PLIST.SE >> ${TMPPLIST}
|
|
|
|
.endif
|
|
|
|
.if defined(ISPELL_NO)
|
|
|
|
@${CAT} ${MASTERDIR}/pkg/PLIST.NO >> ${TMPPLIST}
|
|
|
|
.endif
|
|
|
|
.if defined(ISPELL_BRITISH)
|
|
|
|
@${CAT} ${MASTERDIR}/pkg/PLIST.BRITISH >> ${TMPPLIST}
|
|
|
|
.else
|
|
|
|
@${CAT} ${MASTERDIR}/pkg/PLIST.AM >> ${TMPPLIST}
|
2000-01-22 22:16:40 +00:00
|
|
|
.endif
|
2000-02-11 17:08:00 +00:00
|
|
|
@${ECHO} "@dirrm share/ispell" >> ${TMPPLIST}
|
2000-02-07 03:27:40 +00:00
|
|
|
|
1994-11-06 02:13:04 +00:00
|
|
|
.include <bsd.port.mk>
|