openbsd-ports/textproc/enchant/Makefile
ajacoutot 6fd62a5fe1 - update to enchant-1.4.2
- explicitely link with -pthread to work around some dbus unresolved
symbols (to be fixed)
2008-11-24 18:43:35 +00:00

55 lines
1.4 KiB
Makefile
Executable File

# $OpenBSD: Makefile,v 1.7 2008/11/24 18:43:35 ajacoutot Exp $
COMMENT= generic spell checking library/wrapper
V= 1.4.2
DISTNAME= enchant-${V}
SHARED_LIBS= enchant 5.1 # .5.2
CATEGORIES= textproc
HOMEPAGE= http://www.abisource.com/projects/enchant/
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# LGPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://www.abisource.com/downloads/enchant/${V}/
WANTLIB= c m dbus-1 glib-2.0 gmodule-2.0 gobject-2.0 pcre stdc++ pthread
LIB_DEPENDS= aspell.>=16::textproc/aspell/core \
dbus-glib-1.>=3::x11/dbus-glib
MODULES= devel/gettext
USE_LIBTOOL= Yes
CONFIGURE_STYLE=gnu
# XXX we need -pthread because of some dbus linking issue:
# undefined symbol: 'pthread_cond_signal' ...
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -lstdc++ -lm -pthread"
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
--enable-aspell \
--with-aspell-prefix=${LOCALBASE} \
--enable-ispell \
--with-ispell-dir=${LOCALBASE}/lib/ispell/ \
--enable-zemberek \
--disable-myspell \
--disable-voikko \
--disable-uspell \
--disable-hspell
MAKE_FLAGS= CXX_WARN_CFLAGS=""
pre-configure:
@perl -pi -e 's,MKDIRPROG-mkdir,MKDIRPROG-mkdir -p,g' \
${WRKSRC}/install-sh
@perl -pi -e 's,\$$\(datadir\),${LOCALBASE}/share,g' \
${WRKSRC}/doc/enchant.1
.include <bsd.port.mk>