1995-04-15 03:46:07 +00:00
|
|
|
# New ports collection makefile for: ispell
|
1997-12-16 19:05:59 +00:00
|
|
|
# http://fmg-www.cs.ucla.edu/fmg-members/geoff/ispell.html
|
1995-11-22 21:11:05 +00:00
|
|
|
# Version required: 3.1.20
|
1995-04-15 03:46:07 +00:00
|
|
|
# Date created: 6 November 1994
|
|
|
|
# Whom: jmz
|
|
|
|
#
|
1999-08-31 02:11:56 +00:00
|
|
|
# $FreeBSD$
|
1995-04-15 03:46:07 +00:00
|
|
|
#
|
|
|
|
|
1994-11-06 02:13:04 +00:00
|
|
|
DISTNAME= ispell-3.1
|
1999-10-15 20:46:35 +00:00
|
|
|
PKGNAME= ispell-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-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
|
1995-04-15 03:46:07 +00:00
|
|
|
|
2000-01-22 22:16:40 +00:00
|
|
|
DISTFILES= ${ISPELL_FILES}
|
|
|
|
PATCHFILES= ${HTML_PATCH}
|
1997-12-16 20:17:47 +00:00
|
|
|
|
1995-04-11 02:02:17 +00:00
|
|
|
MAINTAINER= jmz@FreeBSD.org
|
1994-11-06 02:13:04 +00:00
|
|
|
|
1999-08-13 00:13:14 +00:00
|
|
|
MAKE_FLAGS= TMPDIR=${WRKDIR} -f
|
|
|
|
MAN1= ispell.1 sq.1
|
1996-11-18 14:17:24 +00:00
|
|
|
MAN4= ispell.4 english.4
|
1999-08-13 00:13:14 +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}
|
|
|
|
EXTRA_DICT=
|
1995-04-15 03:46:07 +00:00
|
|
|
|
2000-01-22 22:16:40 +00:00
|
|
|
.if (!defined(ISPELL_FR) && !defined (ISPELL_SE) && !defined(ISPELL_BR) && !defined(ISPELL_DENEU) && !defined(ISPELL_DEALT) && !defined(ISPELL_LANG))
|
1999-07-04 18:21:51 +00:00
|
|
|
.if (make(patch) || make(configure) || make(build) || make (install))
|
|
|
|
.BEGIN:
|
1999-08-27 22:30:39 +00:00
|
|
|
@${ECHO_MSG} '*********************************************************'
|
2000-01-22 22:16:40 +00:00
|
|
|
@${ECHO_MSG} '* Note that you can add build a british version by *'
|
|
|
|
@${ECHO_MSG} '* typing "make british" (port must be clean, type *'
|
|
|
|
@${ECHO_MSG} '* "make clean" to clean it). *'
|
|
|
|
@${ECHO_MSG} '* Additionally, you can add further dictionaries: *'
|
|
|
|
@${ECHO_MSG} '* Use make-flag: *'
|
|
|
|
@${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 *'
|
|
|
|
@${ECHO_MSG} '* Example: "make ISPELL_FR=yes ISPELL_SE=yes british" *'
|
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
|
|
|
|
EXTRA_DICT+= ${FRDISTFILE}
|
1997-02-07 23:03:11 +00:00
|
|
|
MASTER_SITES+= ftp://ftp.robot.ireq.ca/pub/ispell/
|
2000-01-22 22:16:40 +00:00
|
|
|
.endif
|
|
|
|
.if defined(ISPELL_SE)
|
|
|
|
SEDISTFILE= iswedish-1.2.1.tar.gz
|
|
|
|
MASTER_SITES+= http://www.sslug.dk/locale/ispell/iswedish/
|
|
|
|
EXTRA_DICT+= ${SEDISTFILE}
|
|
|
|
EXTRACT_ONLY+= ${SEDISTFILE}
|
|
|
|
.endif
|
|
|
|
.if defined(ISPELL_BR)
|
|
|
|
BRDISTFILE= br.ispell-2.3.tar.gz
|
|
|
|
EXTRA_DICT+= ${BRDISTFILE}
|
|
|
|
EXTRACT_ONLY+= ${BRDISTFILE}
|
|
|
|
MASTER_SITES+= ftp://ftp.ime.usp.br/pub/ueda/br.ispell/
|
|
|
|
.endif
|
|
|
|
.if defined(ISPELL_DENEU)
|
|
|
|
DENEUDISTFILE= igerman98-19991219.tar.gz
|
|
|
|
EXTRA_DICT+= ${DENEUDISTFILE}
|
|
|
|
EXTRACT_ONLY+= ${DENEUDISTFILE}
|
|
|
|
MASTER_SITES+= http://members.xoom.com/maccy/ispell/dict/ \
|
|
|
|
ftp://student.physik.uni-dortmund.de/pub/users/jacke/ispell/
|
|
|
|
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
|
1997-02-07 23:03:11 +00:00
|
|
|
DISTFILES+= ${EXTRA_DICT}
|
1999-08-13 00:13:14 +00:00
|
|
|
.endif
|
2000-01-22 22:16:40 +00:00
|
|
|
ALL_TARGET= WRKDIR=${WRKDIR} SEDISTFILE=${SEDISTFILE} BRDISTFILE=${BRDISTFILE} all
|
1997-02-07 23:03:11 +00:00
|
|
|
|
2000-01-22 22:16:40 +00:00
|
|
|
british:
|
|
|
|
@${ECHO_MSG} "Okay, making a british version of ispell...."
|
|
|
|
@${MAKE} ${.MAKEFLAGS} ISPELL_LANG=british all
|
|
|
|
@${TOUCH} ${WRKDIR}/.british-build
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
.if defined(ISPELL_FR)
|
|
|
|
@${MKDIR} -p ${WRKDIR}/francais-IREQ
|
|
|
|
@${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)
|
|
|
|
-@${MKDIR} ${WRKDIR}/hk-deutsch
|
|
|
|
@${TAR} -C ${WRKDIR}/hk-deutsch/ -zxf ${PORTSDIR}/distfiles/${DEALTDISTFILE}
|
|
|
|
.endif
|
|
|
|
@${TOUCH} ${WRKSRC}/dummy
|
|
|
|
@${CP} ${FILESDIR}/Makefile ${WRKDIR}/Makefile
|
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)
|
|
|
|
@cd ${WRKDIR} && ${PATCH} < ${FILESDIR}/BR.patch 2>/dev/null
|
|
|
|
@cd ${WRKDIR} && ${PATCH} < ${FILESDIR}/BR2.patch 2>/dev/null
|
|
|
|
.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
|
|
|
|
|
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
|
1995-09-23 20:48:02 +00:00
|
|
|
|
2000-01-22 22:16:40 +00:00
|
|
|
do-build:
|
|
|
|
@(cd ${WRKDIR}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} WRKSRC=${WRKSRC} ${ALL_TARGET})
|
1995-07-21 13:22:21 +00:00
|
|
|
|
2000-01-22 22:16:40 +00:00
|
|
|
do-install:
|
|
|
|
@(cd ${WRKDIR}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} WRKSRC=${WRKSRC} ${INSTALL_TARGET})
|
1997-02-07 23:03:11 +00:00
|
|
|
|
2000-01-22 22:16:40 +00:00
|
|
|
post-install:
|
|
|
|
@[ -e ${WRKDIR}/.british-build ] && \
|
|
|
|
cat ${.CURDIR}/pkg/PLIST.BRITISH >> ${TMPPLIST} || \
|
|
|
|
cat ${.CURDIR}/pkg/PLIST.AM >> ${TMPPLIST}
|
|
|
|
.if defined(ISPELL_FR)
|
|
|
|
@cat ${.CURDIR}/pkg/PLIST.FR >> ${TMPPLIST}
|
|
|
|
.endif
|
|
|
|
.if defined(ISPELL_DEALT)
|
|
|
|
@cat ${.CURDIR}/pkg/PLIST.DEALT >> ${TMPPLIST}
|
|
|
|
.endif
|
|
|
|
.if defined(ISPELL_DENEU)
|
|
|
|
@cat ${.CURDIR}/pkg/PLIST.DENEU >> ${TMPPLIST}
|
|
|
|
.endif
|
|
|
|
.if defined(ISPELL_BR)
|
|
|
|
@cat ${.CURDIR}/pkg/PLIST.BR >> ${TMPPLIST}
|
|
|
|
.endif
|
|
|
|
.if defined(ISPELL_SE)
|
|
|
|
@cat ${.CURDIR}/pkg/PLIST.SE >> ${TMPPLIST}
|
|
|
|
.endif
|
|
|
|
@echo "@dirrm share/ispell" >> ${TMPPLIST}
|
|
|
|
|
1994-11-06 02:13:04 +00:00
|
|
|
.include <bsd.port.mk>
|