2008-07-21 01:54:06 +02:00
|
|
|
# $NetBSD: Makefile,v 1.9 2008/07/20 23:54:06 abs Exp $
|
2007-09-11 19:40:29 +02:00
|
|
|
#
|
|
|
|
|
2008-04-14 11:39:00 +02:00
|
|
|
DISTNAME= hunspell-1.2.2
|
2007-09-11 19:40:29 +02:00
|
|
|
CATEGORIES= textproc
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=hunspell/}
|
|
|
|
|
2008-07-19 17:06:36 +02:00
|
|
|
MAINTAINER= ahoka@NetBSD.org
|
2007-09-11 19:40:29 +02:00
|
|
|
HOMEPAGE= http://hunspell.sourceforge.net/
|
|
|
|
COMMENT= Improved spellchecker
|
|
|
|
|
2008-04-18 14:01:05 +02:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2007-09-11 19:40:29 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:C/-[0-9]+$//}
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_LIBTOOL= yes
|
|
|
|
USE_TOOLS+= pkg-config
|
|
|
|
USE_PKGLOCALEDIR= yes
|
|
|
|
USE_LANGUAGES= c c++
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --with-ui
|
|
|
|
|
|
|
|
PKGCONFIG_OVERRIDE+= hunspell.pc.in
|
|
|
|
|
2007-09-11 20:05:57 +02:00
|
|
|
SUBST_CLASSES+= paths
|
|
|
|
SUBST_MESSAGE.paths= Fixing default path to dictionaries.
|
|
|
|
SUBST_STAGE.paths= pre-configure
|
2007-10-09 21:19:08 +02:00
|
|
|
SUBST_FILES.paths= man/hunspell.1 man/hu/hunspell.1 src/tools/hunspell.cxx
|
2007-09-11 20:05:57 +02:00
|
|
|
SUBST_SED.paths+= -e 's,/usr/share/hunspell,${PREFIX}/share/hunspell,g'
|
|
|
|
# Trailing slash important to not change hunspell.cxx
|
|
|
|
SUBST_SED.paths+= -e 's,/usr/share/myspell/,${PREFIX}/share/hunspell/,g'
|
|
|
|
|
2008-07-21 01:54:06 +02:00
|
|
|
PLIST_SRC= PLIST
|
|
|
|
PLIST_SUBST+= DISTNAME=${DISTNAME}
|
|
|
|
|
2007-09-11 19:40:29 +02:00
|
|
|
.include "options.mk"
|
|
|
|
|
2007-09-21 20:40:42 +02:00
|
|
|
.include "../../converters/libiconv/buildlink3.mk"
|
2007-09-11 19:40:29 +02:00
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|