2013-03-08 11:51:34 +01:00
|
|
|
# Created by: Adam Weinberger <adamw@FreeBSD.org>
|
2004-01-03 22:30:57 +01:00
|
|
|
# $FreeBSD$
|
2010-07-25 14:45:16 +02:00
|
|
|
# $MCom: ports-stable/textproc/enchant/Makefile,v 1.3 2010/07/20 07:48:41 kwm Exp $
|
2004-01-03 22:30:57 +01:00
|
|
|
|
|
|
|
PORTNAME= enchant
|
2010-07-25 14:45:16 +02:00
|
|
|
PORTVERSION= 1.6.0
|
2013-11-17 17:52:37 +01:00
|
|
|
PORTREVISION= 2
|
2004-01-03 22:30:57 +01:00
|
|
|
CATEGORIES= textproc gnome
|
2006-11-30 21:37:18 +01:00
|
|
|
MASTER_SITES= http://www.abisource.com/downloads/${PORTNAME}/${PORTVERSION}/
|
2004-01-03 22:30:57 +01:00
|
|
|
DIST_SUBDIR= gnome2
|
|
|
|
|
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
|
|
|
COMMENT= Dictionary/spellchecking framework
|
|
|
|
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= libtool
|
2006-11-05 04:59:12 +01:00
|
|
|
USE_LDCONFIG= yes
|
2013-09-20 14:15:57 +02:00
|
|
|
USES= gmake pathfix pkgconfig
|
2013-03-19 11:40:22 +01:00
|
|
|
USE_GNOME= glib20 ltverhack
|
2010-07-25 14:45:16 +02:00
|
|
|
CONFIGURE_ARGS= --disable-uspell \
|
|
|
|
--disable-voikko
|
|
|
|
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2004-01-03 22:30:57 +01:00
|
|
|
|
2013-11-17 17:52:37 +01:00
|
|
|
OPTIONS_MULTI= SPELL
|
|
|
|
OPTIONS_MULTI_SPELL=ASPELL HSPELL HUNSPELL ISPELL ZEMBEREK
|
|
|
|
OPTIONS_DEFAULT=HUNSPELL
|
2013-03-19 11:40:22 +01:00
|
|
|
HSPELL_DESC= Spell checking via Hspell
|
|
|
|
HUNSPELL_DESC= Spell checking via Hunspell
|
|
|
|
ZEMBEREK_DESC= Spell checking via Zemberek
|
2004-01-03 22:30:57 +01:00
|
|
|
|
2013-03-19 11:40:22 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2004-06-09 21:09:27 +02:00
|
|
|
|
2013-03-19 11:40:22 +01:00
|
|
|
.if ${PORT_OPTIONS:MASPELL}
|
2013-09-20 14:15:57 +02:00
|
|
|
LIB_DEPENDS+= libaspell.so:${PORTSDIR}/textproc/aspell
|
2009-02-12 18:11:09 +01:00
|
|
|
CONFIGURE_ARGS+=--enable-aspell \
|
|
|
|
--with-aspell-prefix=${LOCALBASE}
|
|
|
|
PLIST_SUB+= ASPELL=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-aspell
|
|
|
|
PLIST_SUB+= ASPELL="@comment "
|
2004-01-03 22:30:57 +01:00
|
|
|
.endif
|
2009-02-12 18:11:09 +01:00
|
|
|
|
2013-03-19 11:40:22 +01:00
|
|
|
.if ${PORT_OPTIONS:MHSPELL}
|
2010-07-25 14:45:16 +02:00
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/libhspell.a:${PORTSDIR}/hebrew/hspell
|
2013-09-20 14:15:57 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-hspell \
|
|
|
|
--with-hspell-prefix=${LOCALBASE}
|
2010-07-25 14:45:16 +02:00
|
|
|
PLIST_SUB+= HSPELL=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-hspell
|
|
|
|
PLIST_SUB+= HSPELL="@comment "
|
|
|
|
.endif
|
|
|
|
|
2013-03-19 11:40:22 +01:00
|
|
|
.if ${PORT_OPTIONS:MHUNSPELL}
|
2013-09-20 14:15:57 +02:00
|
|
|
LIB_DEPENDS+= libhunspell-1.3.so:${PORTSDIR}/textproc/hunspell
|
|
|
|
CONFIGURE_ARGS+=--enable-myspell --with-system-myspell=yes \
|
2013-11-17 17:52:37 +01:00
|
|
|
--with-myspell-dir=${LOCALBASE}/share/hunspell
|
2010-07-25 14:45:16 +02:00
|
|
|
PLIST_SUB+= HUNSPELL=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-myspell
|
|
|
|
PLIST_SUB+= HUNSPELL="@comment "
|
|
|
|
.endif
|
|
|
|
|
2013-03-19 11:40:22 +01:00
|
|
|
.if ${PORT_OPTIONS:MISPELL}
|
2010-07-25 14:45:16 +02:00
|
|
|
RUN_DEPENDS+= ispell:${PORTSDIR}/textproc/ispell
|
2013-09-20 14:15:57 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-ispell \
|
2013-11-17 17:52:37 +01:00
|
|
|
--with-ispell-dir=${LOCALBASE}/share/ispell
|
2010-07-25 14:45:16 +02:00
|
|
|
PLIST_SUB+= ISPELL=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-ispell
|
|
|
|
PLIST_SUB+= ISPELL="@comment "
|
|
|
|
.endif
|
|
|
|
|
2013-03-19 11:40:22 +01:00
|
|
|
.if ${PORT_OPTIONS:MZEMBEREK}
|
2013-09-20 14:15:57 +02:00
|
|
|
LIB_DEPENDS+= libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib
|
2010-07-25 14:45:16 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-zemberek
|
2009-02-12 18:11:09 +01:00
|
|
|
PLIST_SUB+= ZEMBEREK=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= ZEMBEREK="@comment "
|
2010-07-25 14:45:16 +02:00
|
|
|
CONFIGURE_ARGS+=--disable-zemberek
|
2004-01-03 22:30:57 +01:00
|
|
|
.endif
|
|
|
|
|
2004-12-15 07:14:48 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|MKDIRPROG-mkdir|MKDIRPROG-mkdir -p|g' \
|
|
|
|
${WRKSRC}/install-sh
|
|
|
|
|
2013-11-17 17:52:37 +01:00
|
|
|
post-install:
|
|
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libenchant.so.1 \
|
|
|
|
${STAGEDIR}${PREFIX}/lib/enchant/libenchant_*.so
|
|
|
|
|
2013-03-19 11:40:22 +01:00
|
|
|
.include <bsd.port.mk>
|