69 lines
1.6 KiB
Makefile
Executable File

# $OpenBSD: Makefile,v 1.37 2017/08/21 14:33:54 ajacoutot Exp $
COMMENT= generic spell checking library
V= 1.6.1
GH_ACCOUNT= AbiWord
GH_PROJECT= enchant
GH_TAGNAME= enchant-${V:S/./-/g}
REVISION= 1
# XXX needed for portroach (DISTNAME must match the GH_PROJECT-GH_TAGNAME)
MASTER_SITES= https://github.com/AbiWord/enchant/releases/download/${GH_PROJECT}-${V:S/./-/g}/
DISTNAME= ${GH_PROJECT}-${V}
WRKDIST= ${WRKDIR}/${DISTNAME}
SHARED_LIBS += enchant 6.1 # 7.1
CATEGORIES= textproc
HOMEPAGE= https://abiword.github.io/enchant/
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# LGPLv2.1
PERMIT_PACKAGE_CDROM= Yes
WANTLIB += aspell c glib-2.0 gmodule-2.0 hunspell-1.6 iconv intl
WANTLIB += m pcre pthread ${LIBCXX}
# c++11
COMPILER = gcc
LIB_DEPENDS= devel/glib2 \
textproc/aspell/core \
textproc/hunspell
CONFIGURE_STYLE= gnu
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include"
# XXX linking gnome/todo and gnome/calendar breaks without this
CONFIGURE_ENV += LDFLAGS="-L${LOCALBASE}/lib ${LIBCXX:C/^/-l/}"
CONFIGURE_ARGS= --with-aspell-prefix=${LOCALBASE} \
--with-ispell-dir=${LOCALBASE}/lib/ispell/ \
--disable-voikko \
--disable-zemberek \
--disable-uspell \
--disable-hspell
###
AUTOCONF_VERSION= 2.69
AUTOMAKE_VERSION= 1.15
BUILD_DEPENDS += ${MODGNU_AUTOCONF_DEPENDS} \
${MODGNU_AUTOMAKE_DEPENDS} \
devel/libtool # libtoolize
pre-configure:
cd ${WRKSRC} && ${SETENV} \
AUTOCONF_VERSION=${AUTOCONF_VERSION} \
AUTOMAKE_VERSION=${AUTOMAKE_VERSION} \
autoreconf -fi
###
post-install:
rm ${PREFIX}/lib/enchant/*.{a,la}
.include <bsd.port.mk>