openbsd-ports/textproc/ispell/Makefile

191 lines
6.2 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.48 2008/10/04 16:08:16 ajacoutot Exp $
COMMENT-main= interactive spelling checker
COMMENT-dutch= ispell dictionary for Dutch
COMMENT-french= ispell dictionary for French
COMMENT-german= ispell dictionary for German
COMMENT-russian= ispell dictionary for Russian
COMMENT-portuguese= ispell dictionary for Portuguese
COMMENT-slovak= ispell dictionary for Slovak
COMMENT-spanish= ispell dictionary for Spanish
COMMENT-swedish= ispell dictionary for Swedish
2001-03-16 11:50:48 -05:00
PATCHLEVEL= p4
2006-12-27 08:43:55 -05:00
2002-01-24 06:20:17 -05:00
VERSION= 3.2.06
2001-07-09 13:34:11 -04:00
DISTNAME= ispell-${VERSION}
2006-12-27 08:43:55 -05:00
PKGNAME-main= ${DISTNAME}${PATCHLEVEL}
1997-11-17 21:46:09 -05:00
CATEGORIES= textproc
2001-07-09 13:34:11 -04:00
HOMEPAGE= http://fmg-www.cs.ucla.edu/geoff/ispell.html
2002-01-24 06:20:17 -05:00
MASTER_SITES= http://fmg-www.cs.ucla.edu/geoff/tars/ \
ftp://ftp.netsw.org/dict/tools/
2003-01-17 14:24:26 -05:00
MASTER_SITES0= ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/
MASTER_SITES1= ftp://ftp.robot.ireq.ca/pub/ispell/
MASTER_SITES2= ftp://ftp.informatik.uni-kiel.de/pub/kiel/dicts/
MASTER_SITES3= http://www.sslug.dk/locale/ispell/iswedish/
MASTER_SITES4= ftp://mch5.chem.msu.su/pub/russian/ispell/ \
ftp://ftp.afti.nsu.ru/pub/mirrors/russian-ispell/
2003-01-17 14:24:26 -05:00
MASTER_SITES5= http://natura.di.uminho.pt/~jj/pln/
MASTER_SITES6= http://sk-spell.sk.cx/files/
2003-01-17 14:24:26 -05:00
MASTER_SITES7= http://www.datsi.fi.upm.es/~coes/
2001-07-09 13:34:11 -04:00
DIST_SUBDIR= ispell
2003-01-17 14:24:26 -05:00
DUTCH_DICT= ispell-nl-1.0.0
2002-05-31 14:09:47 -04:00
FRENCH_DICT= francais-IREQ-1.4
GERMAN_DICT= hk2-deutsch
SWEDISH_DICT= iswedish-1.2.1
RUSSIAN_DICT= rus-ispell-0.99e7
PORTUGUESE_DICT= UMportugues
SLOVAK_DICT= ispell-sk-0.3.2
2002-12-26 13:51:40 -05:00
SPANISH_DICT= espa~nol-1.7
2002-01-24 06:20:17 -05:00
DISTFILES= ${DISTNAME}.tar.gz \
2003-01-17 14:24:26 -05:00
${DUTCH_DICT}.tar.gz:0 \
${FRENCH_DICT}.tar.gz:1 \
${GERMAN_DICT}.tar.gz:2 \
${SWEDISH_DICT}.tar.gz:3 \
${RUSSIAN_DICT}.tar.gz:4 \
${PORTUGUESE_DICT}.tgz:5 \
${SLOVAK_DICT}.tar.gz:6 \
${SPANISH_DICT}.tar.gz:7
1997-11-17 21:46:09 -05:00
2002-05-31 14:09:47 -04:00
EXTRACT_ONLY= ${DISTNAME}.tar.gz \
2003-01-17 14:24:26 -05:00
${DUTCH_DICT}.tar.gz \
2002-05-31 14:09:47 -04:00
${SWEDISH_DICT}.tar.gz \
${PORTUGUESE_DICT}.tgz \
${SLOVAK_DICT}.tar.gz \
${SPANISH_DICT}.tar.gz
2002-01-24 06:20:17 -05:00
SUBST_VARS+= VERSION
1997-11-17 21:46:09 -05:00
2006-11-23 14:41:40 -05:00
MULTI_PACKAGES= -main -dutch -french -german -swedish -russian -portuguese \
2003-01-17 14:24:26 -05:00
-slovak -spanish
2001-03-16 11:50:48 -05:00
.for i in ${MULTI_PACKAGES}
2006-12-27 08:43:55 -05:00
PKGNAME$i?= ispell$i-${VERSION}${PATCHLEVEL}
2001-03-16 11:50:48 -05:00
.endfor
2000-02-12 01:29:49 -05:00
2003-11-15 10:12:53 -05:00
# ispell: BSD-like
2004-01-14 12:09:08 -05:00
# dictionaries: GPL or BSD-like
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB-main= c termcap
2006-11-23 14:41:40 -05:00
PERMIT_PACKAGE_CDROM-german= no license
PERMIT_PACKAGE_FTP-german= no license
RUN_DEPENDS= ::textproc/ispell
2006-11-23 14:41:40 -05:00
RUN_DEPENDS-main=
MAKE_FLAGS= TMPDIR=${WRKDIR}
2002-10-28 17:43:46 -05:00
NO_REGRESS= Yes
post-extract:
2001-07-09 13:34:11 -04:00
@mkdir -p ${WRKDIR}/french
@(cd ${WRKDIR}/french; \
tar xzf ${FULLDISTDIR}/${FRENCH_DICT}${EXTRACT_SUFX})
2001-07-09 13:34:11 -04:00
@mkdir -p ${WRKDIR}/german
@(cd ${WRKDIR}/german; \
tar xzf ${FULLDISTDIR}/${GERMAN_DICT}${EXTRACT_SUFX})
1997-11-17 21:46:09 -05:00
@mkdir -p ${WRKDIR}/russian
@(cd ${WRKDIR}/russian; \
tar xzf ${FULLDISTDIR}/${RUSSIAN_DICT}${EXTRACT_SUFX})
2002-12-26 13:51:40 -05:00
@(cd ${WRKDIR}/${SPANISH_DICT}/; \
mv espa~nol.aff spanish.aff; \
mv espa~nol.words+ spanish.words+)
pre-configure:
2002-01-24 06:20:17 -05:00
@sed "s%/usr/local%${PREFIX}%g" ${WRKSRC}/local.h.samp > \
${WRKSRC}/local.h
@echo "#define CFLAGS \"${CFLAGS}\"" >> ${WRKSRC}/local.h
2001-07-29 14:43:27 -04:00
@echo "#define CC \"${CC}\"" >> ${WRKSRC}/local.h
1997-11-17 21:46:09 -05:00
post-build:
2002-01-24 06:20:17 -05:00
@sed "s%/usr/local%${PREFIX}%g" ${FILESDIR}/ispell-config > \
${WRKDIST}/ispell-config
2003-01-17 14:24:26 -05:00
@(cd ${WRKDIR}/${DUTCH_DICT}; \
${WRKDIST}/buildhash words-nl.ispell nederlands.aff nederlands.hash)
2001-07-09 13:34:11 -04:00
@(cd ${WRKDIR}/french; \
$(MAKE) RM='rm -f' HASH=${WRKDIST}/buildhash)
@(cd ${WRKDIR}/german; \
sort -u *.txt | ./tex2iso >all.words; \
${WRKDIST}/buildhash all.words deutsch.aff deutsch.hash)
@(cd ${WRKDIR}/${SWEDISH_DICT}; \
${WRKDIST}/buildhash svenska.datalista svenska.aff svenska.hash)
@(cd ${WRKDIR}/russian; \
2002-01-24 06:20:17 -05:00
sort -u base.koi computer.koi geography.koi science.koi >all.words; \
sed -e "s/^\#y//;s/^\#koi/wordchars/" < russian.aff.koi > russian.aff; \
${WRKDIST}/buildhash all.words russian.aff russian.hash)
2002-05-31 14:09:47 -04:00
@(cd ${WRKDIR}/portugues; \
${WRKDIST}/buildhash portugues.dic portugues.aff portuguese.hash; \
cp portugues.aff portuguese.aff)
@(cd ${WRKDIR}/${SLOVAK_DICT}; \
${WRKDIST}/buildhash slovak.words slovak.aff slovak.hash)
2002-12-26 13:51:40 -05:00
@(cd ${WRKDIR}/${SPANISH_DICT}; \
${WRKDIST}/buildhash spanish.words+ spanish.aff spanish.hash)
do-install:
${INSTALL_PROGRAM} ${WRKDIST}/ispell ${PREFIX}/bin/ispell
${INSTALL_PROGRAM} ${WRKDIST}/buildhash ${PREFIX}/bin/buildhash
${INSTALL_PROGRAM} ${WRKDIST}/tryaffix ${PREFIX}/bin/tryaffix
${INSTALL_PROGRAM} ${WRKDIST}/ijoin ${PREFIX}/bin/ijoin
${INSTALL_PROGRAM} ${WRKDIST}/findaffix ${PREFIX}/bin/findaffix
${INSTALL_PROGRAM} ${WRKDIST}/munchlist ${PREFIX}/bin/munchlist
${INSTALL_PROGRAM} ${WRKDIST}/icombine ${PREFIX}/bin/icombine
${INSTALL_SCRIPT} ${WRKDIST}/ispell-config ${PREFIX}/bin/ispell-config
${INSTALL_MAN} ${WRKDIST}/ispell.1 ${PREFIX}/man/man1/ispell.1
ln -s ispell.1 ${PREFIX}/man/man1/buildhash.1
ln -s ispell.1 ${PREFIX}/man/man1/munchlist.1
ln -s ispell.1 ${PREFIX}/man/man1/findaffix.1
ln -s ispell.1 ${PREFIX}/man/man1/tryaffix.1
${INSTALL_MAN} ${WRKDIST}/ispell.4 ${PREFIX}/man/man4/ispell.4
ln -s ispell.4 ${PREFIX}/man/man4/english.4
${INSTALL_DATA_DIR} ${PREFIX}/lib/ispell
${INSTALL_DATA} ${WRKDIST}/languages/english/english.aff \
${PREFIX}/lib/ispell/american.aff
ln -s american.aff ${PREFIX}/lib/ispell/british.aff
${INSTALL_DATA} ${WRKDIST}/languages/american/americanmed+.hash \
${PREFIX}/lib/ispell/americanmed+.hash
ln -s americanmed+.hash ${PREFIX}/lib/ispell/american.hash
${INSTALL_DATA} ${WRKDIST}/languages/british/britishxlg.hash \
${PREFIX}/lib/ispell/britishxlg.hash
ln -s britishxlg.hash ${PREFIX}/lib/ispell/british.hash
2001-07-09 13:34:11 -04:00
2003-01-17 14:24:26 -05:00
${INSTALL_DATA} ${WRKDIR}/${DUTCH_DICT}/nederlands.{aff,hash} \
${PREFIX}/lib/ispell
2001-07-09 13:34:11 -04:00
${INSTALL_DATA} ${WRKDIR}/german/deutsch.{aff,hash} \
${PREFIX}/lib/ispell
${INSTALL_DATA} ${WRKDIR}/french/francais.{aff,hash} \
${PREFIX}/lib/ispell
${INSTALL_DATA} ${WRKDIR}/${SWEDISH_DICT}/svenska.{aff,hash} \
${PREFIX}/lib/ispell
${INSTALL_DATA} ${WRKDIR}/russian/russian.{aff,hash} \
${PREFIX}/lib/ispell
2002-05-31 14:09:47 -04:00
${INSTALL_DATA} ${WRKDIR}/portugues/portuguese.{aff,hash} \
${PREFIX}/lib/ispell
${INSTALL_DATA} ${WRKDIR}/${SLOVAK_DICT}/slovak.{aff,hash} \
${PREFIX}/lib/ispell
2002-12-26 13:51:40 -05:00
${INSTALL_DATA} ${WRKDIR}/${SPANISH_DICT}/spanish.{aff,hash} \
${PREFIX}/lib/ispell
2001-07-09 13:34:11 -04:00
1997-11-17 21:46:09 -05:00
.include <bsd.port.mk>