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
|
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
|
|
|
|
|
|
|
|
USE_GMAKE= yes
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= libtool
|
2006-11-05 04:59:12 +01:00
|
|
|
USE_LDCONFIG= yes
|
2011-08-11 21:20:17 +02:00
|
|
|
USE_GNOME= gnomehack glib20 ltverhack
|
2013-03-08 11:51:34 +01:00
|
|
|
USE_PKGCONFIG= build
|
2010-07-25 14:45:16 +02:00
|
|
|
CONFIGURE_ARGS= --disable-uspell \
|
|
|
|
--disable-voikko
|
|
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2004-01-03 22:30:57 +01:00
|
|
|
|
|
|
|
MAN1= enchant.1
|
|
|
|
|
2010-07-25 14:45:16 +02:00
|
|
|
OPTIONS= ASPELL "Enable Aspell backend" on \
|
|
|
|
HSPELL "Enable Hspell backend" off \
|
|
|
|
HUNSPELL "Enable Hunspell backend" off \
|
|
|
|
ISPELL "Enable Ispell backend" off \
|
2009-02-12 18:11:09 +01:00
|
|
|
ZEMBEREK "Enable zemberek backend (requires DBUS)" off
|
2004-01-03 22:30:57 +01:00
|
|
|
|
2004-06-09 21:09:27 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2010-07-25 14:45:16 +02:00
|
|
|
.if defined(WITH_ASPELL)
|
2009-02-12 18:11:09 +01:00
|
|
|
LIB_DEPENDS+= pspell.16:${PORTSDIR}/textproc/aspell
|
|
|
|
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
|
|
|
|
2010-07-25 14:45:16 +02:00
|
|
|
.if defined(WITH_HSPELL)
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/libhspell.a:${PORTSDIR}/hebrew/hspell
|
|
|
|
CONFIGURE_ARGS+=--enable-hspell
|
|
|
|
PLIST_SUB+= HSPELL=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-hspell
|
|
|
|
PLIST_SUB+= HSPELL="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_HUNSPELL)
|
2011-07-19 07:23:03 +02:00
|
|
|
LIB_DEPENDS+= hunspell-1.3.0:${PORTSDIR}/textproc/hunspell
|
2010-07-25 14:45:16 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-myspell
|
|
|
|
PLIST_SUB+= HUNSPELL=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-myspell
|
|
|
|
PLIST_SUB+= HUNSPELL="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_ISPELL)
|
|
|
|
RUN_DEPENDS+= ispell:${PORTSDIR}/textproc/ispell
|
|
|
|
CONFIGURE_ARGS+=--enable-ispell
|
|
|
|
PLIST_SUB+= ISPELL=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-ispell
|
|
|
|
PLIST_SUB+= ISPELL="@comment "
|
|
|
|
.endif
|
|
|
|
|
2009-02-12 18:11:09 +01:00
|
|
|
.if defined(WITH_ZEMBEREK) && !defined(WITHOUT_DBUS)
|
|
|
|
LIB_DEPENDS+= dbus-glib-1.2:${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
|
2008-04-16 23:39:20 +02:00
|
|
|
.if ${OSVERSION} < 700042
|
|
|
|
@${REINPLACE_CMD} -E -e "s|-Wunsafe-loop-optimizations ||g" \
|
2008-04-17 03:44:17 +02:00
|
|
|
-e "s|-Wno-missing-field-initializers ||g" \
|
|
|
|
-e "s|-Wno-attributes ||g" \
|
|
|
|
${WRKSRC}/configure
|
2008-04-16 23:39:20 +02:00
|
|
|
.endif
|
2004-12-15 07:14:48 +01:00
|
|
|
|
2004-01-03 22:30:57 +01:00
|
|
|
.include <bsd.port.post.mk>
|