Merge branch 'staged'
[dports.git] / textproc / hunspell / Makefile
1 PORTNAME=       hunspell
2 PORTVERSION=    1.7.2
3 MASTER_SITES=   https://github.com/hunspell/hunspell/releases/download/v${PORTVERSION}/
4 CATEGORIES=     textproc
5 DIST_SUBDIR=    ${PORTNAME}
6
7 MAINTAINER=     office@FreeBSD.org
8 COMMENT=        Improved spell-checker for Hungarian and other languages
9 WWW=            https://hunspell.github.io/
10
11 LICENSE=        GPLv2+ LGPL21+ MPL11
12 LICENSE_COMB=   dual
13 LICENSE_FILE_GPLv2+ =   ${_LICENSE_STORE}/GPLv2
14 LICENSE_FILE_LGPL21+ =  ${_LICENSE_STORE}/LGPL21
15 LICENSE_FILE_MPL11=     ${WRKSRC}/COPYING.MPL
16
17 USES=           compiler:c++11-lang cpe gettext-tools iconv libtool:keepla ncurses pathfix perl5 readline shebangfix
18 USE_PERL5=      run
19
20 CONFIGURE_ARGS= --disable-nls ${ICONV_CONFIGURE_ARG} --with-readline --with-ui
21 GNU_CONFIGURE=  yes
22 USE_LDCONFIG=   yes
23 INSTALL_TARGET= install-strip
24
25 PLIST_SUB=      SHLIB_VER=${PORTVERSION:R}
26
27 # bin/analyze
28 CONFLICTS_INSTALL=      tinker
29
30 CPE_VENDOR=     hunspell_project
31
32 SHEBANG_FILES=  src/tools/ispellaff2myspell
33
34 post-patch:
35         @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/src/tools/hunspell.cxx
36
37 makepatch-clean:
38         @${RM} ${WRKSRC}/tests/suggestiontest/Makefile.orig
39
40 .include <bsd.port.mk>
41
42 # XXX Don't override definition in Mk/bsd.port.mk
43 makepatch:      makepatch-clean