2021-08-11 11:45:49 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.20 2021/08/11 11:45:49 ajacoutot Exp $
|
2017-12-29 09:05:40 +00:00
|
|
|
|
|
|
|
COMMENT= generic spell checking library
|
|
|
|
|
2021-08-11 11:45:49 +00:00
|
|
|
V= 2.3.1
|
2017-12-29 09:05:40 +00:00
|
|
|
DISTNAME= enchant-${V}
|
|
|
|
PKGNAME= enchant2-${V}
|
|
|
|
|
2021-08-11 11:45:49 +00:00
|
|
|
SHARED_LIBS += enchant-2 0.1 # 5.1
|
2017-12-29 09:05:40 +00:00
|
|
|
|
|
|
|
CATEGORIES= textproc
|
|
|
|
|
|
|
|
HOMEPAGE= https://abiword.github.io/enchant/
|
|
|
|
|
|
|
|
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
|
|
|
|
|
|
|
|
# LGPLv2.1
|
2019-07-12 20:49:33 +00:00
|
|
|
PERMIT_PACKAGE= Yes
|
2017-12-29 09:05:40 +00:00
|
|
|
|
2020-10-17 08:08:43 +00:00
|
|
|
WANTLIB += ${COMPILER_LIBCXX} aspell c curses glib-2.0 gmodule-2.0
|
|
|
|
WANTLIB += hunspell-1.7 iconv intl m pcre
|
2017-12-29 09:05:40 +00:00
|
|
|
|
|
|
|
MASTER_SITES = https://github.com/AbiWord/enchant/releases/download/v${V}/
|
|
|
|
|
|
|
|
# c++11
|
|
|
|
COMPILER = base-clang ports-gcc
|
|
|
|
|
|
|
|
LIB_DEPENDS= devel/glib2 \
|
|
|
|
textproc/aspell/core \
|
|
|
|
textproc/hunspell
|
|
|
|
|
2021-06-18 10:41:39 +00:00
|
|
|
CONFIGURE_STYLE= gnu
|
2017-12-29 09:05:40 +00:00
|
|
|
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
|
|
|
ac_cv_prog_VALGRIND=
|
|
|
|
|
|
|
|
CONFIGURE_ARGS= --without-applespell \
|
|
|
|
--without-voikko \
|
2020-02-29 09:37:53 +00:00
|
|
|
--without-zemberek \
|
|
|
|
--without-nuspell
|
|
|
|
|
|
|
|
DEBUG_PACKAGES= ${BUILD_PACKAGES}
|
2017-12-29 09:05:40 +00:00
|
|
|
|
|
|
|
# prevent conflict with textproc/enchant
|
|
|
|
MAKE_FLAGS= pkgdatadir=${TRUEPREFIX}/share/enchant-2
|
|
|
|
FAKE_FLAGS= pkgdatadir=${PREFIX}/share/enchant-2
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
rm ${PREFIX}/lib/enchant-2/*.{a,la}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|