2004-05-20 16:52:50 +02:00
|
|
|
# New ports collection makefile for: hunspell
|
|
|
|
# Date created: 24.07.2004
|
|
|
|
# Whom: janos.mohacsi@bsd.hu
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= hunspell
|
2006-11-10 15:11:20 +01:00
|
|
|
PORTVERSION= 1.1.4
|
2004-05-20 16:52:50 +02:00
|
|
|
CATEGORIES= hungarian textproc
|
2006-11-10 15:11:20 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}${PORTNAME}/:code \
|
|
|
|
http://magyarispell.sourceforge.net/:data
|
|
|
|
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}:code hu_HU-pack.zip:data
|
2004-05-20 16:52:50 +02:00
|
|
|
|
2005-05-20 17:30:27 +02:00
|
|
|
MAINTAINER= janos.mohacsi@bsd.hu
|
2004-05-20 16:52:50 +02:00
|
|
|
COMMENT= Improved Hungarian spelling checker
|
|
|
|
|
2006-11-10 15:11:20 +01:00
|
|
|
BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip
|
|
|
|
|
2004-05-20 16:52:50 +02:00
|
|
|
USE_GMAKE= yes
|
2006-11-10 15:11:20 +01:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= "--with-ui"
|
2004-05-20 16:52:50 +02:00
|
|
|
|
|
|
|
MAN1= hunspell.1
|
|
|
|
MAN4= hunspell.4
|
|
|
|
|
2006-11-10 15:11:20 +01:00
|
|
|
PORTDOCS= README README.myspell
|
2004-05-20 16:52:50 +02:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} < 500000
|
2006-11-10 15:11:20 +01:00
|
|
|
BROKEN= Does not compile on FreeBSD-4.x at this time
|
2004-05-20 16:52:50 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
|
2006-11-10 15:11:20 +01:00
|
|
|
${WRKSRC}/src/tools/hunspell.cxx
|
2004-05-20 16:52:50 +02:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/hunspell.1 ${PREFIX}/man/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/hunspell.4 ${PREFIX}/man/man4
|
2006-11-10 15:11:20 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/tools/hunspell ${PREFIX}/bin
|
2004-05-20 16:52:50 +02:00
|
|
|
${MKDIR} ${PREFIX}/share/myspell/ && \
|
2005-05-20 17:30:27 +02:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/hu_HU.dic \
|
2004-05-20 16:52:50 +02:00
|
|
|
${PREFIX}/share/myspell/ && \
|
2005-05-20 17:30:27 +02:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/hu_HU.aff \
|
2004-05-20 16:52:50 +02:00
|
|
|
${PREFIX}/share/myspell/
|
|
|
|
${LN} -s ${LOCALBASE}/share/myspell/hu_HU.dic ${PREFIX}/share/myspell/magyar.dic
|
|
|
|
${LN} -s ${LOCALBASE}/share/myspell/hu_HU.dic ${PREFIX}/share/myspell/hungarian.dic
|
|
|
|
${LN} -s ${LOCALBASE}/share/myspell/hu_HU.dic ${PREFIX}/share/myspell/default.dic
|
|
|
|
${LN} -s ${LOCALBASE}/share/myspell/hu_HU.aff ${PREFIX}/share/myspell/magyar.aff
|
|
|
|
${LN} -s ${LOCALBASE}/share/myspell/hu_HU.aff ${PREFIX}/share/myspell/hungarian.aff
|
|
|
|
${LN} -s ${LOCALBASE}/share/myspell/hu_HU.aff ${PREFIX}/share/myspell/default.aff
|
2006-11-10 15:11:20 +01:00
|
|
|
#${LOCALBASE}/bin/msgfmt -o ${WRKSRC}/hunspell.mo ${WRKSRC}/hunspell.po
|
|
|
|
#${MKDIR} ${PREFIX}/share/locale/hu/LC_MESSAGES/ && \
|
|
|
|
#${INSTALL_DATA} ${WRKSRC}/hunspell.mo ${PREFIX}/share/locale/hu/LC_MESSAGES/
|
2004-05-20 16:52:50 +02:00
|
|
|
|
|
|
|
.ifndef(NOPORTDOCS)
|
|
|
|
post-install:
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
.for doc in ${PORTDOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|