2004-01-03 22:30:57 +01:00
|
|
|
# New ports collection makefile for: enchant
|
2004-01-04 22:21:09 +01:00
|
|
|
# Date created: 03 January 2004
|
2004-01-03 22:30:57 +01:00
|
|
|
# Whom: Adam Weinberger <adamw@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
2006-03-15 18:36:22 +01:00
|
|
|
# $MCom: ports-stable/textproc/enchant/Makefile,v 1.1 2006/03/12 02:08:58 mezz Exp $
|
2004-01-03 22:30:57 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= enchant
|
2008-12-04 22:05:13 +01:00
|
|
|
PORTVERSION= 1.4.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
|
|
|
|
|
|
|
|
USE_GMAKE= yes
|
2009-08-02 21:36:34 +02:00
|
|
|
USE_AUTOTOOLS= libtool:22
|
2006-11-05 04:59:12 +01:00
|
|
|
USE_LDCONFIG= yes
|
2005-11-10 11:07:24 +01:00
|
|
|
USE_GNOME= gnomehack gnometarget glib20 ltverhack
|
2006-03-15 18:36:22 +01:00
|
|
|
CONFIGURE_ARGS= --disable-hspell \
|
|
|
|
--disable-uspell
|
2004-01-03 22:30:57 +01:00
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
|
|
|
|
MAN1= enchant.1
|
|
|
|
|
2009-02-12 18:11:09 +01:00
|
|
|
OPTIONS= ASPELL "Enable aspell support" on \
|
|
|
|
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>
|
|
|
|
|
2006-04-14 21:32:18 +02:00
|
|
|
# Disable, it needs hspell 0.9 or above.
|
2006-03-15 18:36:22 +01:00
|
|
|
#.if exists(${LOCALBASE}/bin/hspell)
|
|
|
|
#WITH_HSPELL= yes
|
|
|
|
#.endif
|
2006-04-14 21:32:18 +02:00
|
|
|
#
|
2006-03-15 18:36:22 +01:00
|
|
|
#.if defined(WITH_HSPELL)
|
|
|
|
#BUILD_DEPENDS+= hspell:${PORTSDIR}/hebrew/hspell
|
|
|
|
#CONFIGURE_ARGS+=--enable-hspell
|
|
|
|
#PLIST_SUB+= HSPELL=""
|
|
|
|
#.else
|
|
|
|
#CONFIGURE_ARGS+=--disable-hspell
|
|
|
|
#PLIST_SUB+= HSPELL="@comment "
|
|
|
|
#.endif
|
2004-01-03 22:30:57 +01:00
|
|
|
|
2009-02-12 18:11:09 +01:00
|
|
|
.ifndef(WITHOUT_ASPELL)
|
|
|
|
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
|
|
|
|
|
|
|
.if defined(WITH_ZEMBEREK) && !defined(WITHOUT_DBUS)
|
|
|
|
LIB_DEPENDS+= dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib
|
|
|
|
CONFIGURE_ARGS+= --enable-zemberek
|
|
|
|
PLIST_SUB+= ZEMBEREK=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= ZEMBEREK="@comment "
|
|
|
|
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>
|