diff options
author | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2012-01-17 02:28:06 +0800 |
---|---|---|
committer | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2012-01-17 02:28:06 +0800 |
commit | 00a7030df8eff343b323d316c8c15399a4a6626d (patch) | |
tree | 756f7107d155f18a3c6fd38658f5882d1c6f33a9 /textproc | |
parent | 2ffa1b1173ccf6dd2bed758392e965fedcee2e12 (diff) | |
download | marcuscom-ports-00a7030df8eff343b323d316c8c15399a4a6626d.tar.gz marcuscom-ports-00a7030df8eff343b323d316c8c15399a4a6626d.tar.zst marcuscom-ports-00a7030df8eff343b323d316c8c15399a4a6626d.zip |
Depend on pkgconfig
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@16646 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/enchant/Makefile | 95 | ||||
-rw-r--r-- | textproc/enchant/distinfo | 2 | ||||
-rw-r--r-- | textproc/enchant/pkg-descr | 16 | ||||
-rw-r--r-- | textproc/enchant/pkg-plist | 29 |
4 files changed, 142 insertions, 0 deletions
diff --git a/textproc/enchant/Makefile b/textproc/enchant/Makefile new file mode 100644 index 000000000..3897c7a66 --- /dev/null +++ b/textproc/enchant/Makefile @@ -0,0 +1,95 @@ +# New ports collection makefile for: enchant +# Date created: 03 January 2004 +# Whom: Adam Weinberger <adamw@FreeBSD.org> +# +# $FreeBSD$ +# $MCom$ +# + +PORTNAME= enchant +PORTVERSION= 1.6.0 +CATEGORIES= textproc gnome +MASTER_SITES= http://www.abisource.com/downloads/${PORTNAME}/${PORTVERSION}/ +DIST_SUBDIR= gnome2 + +MAINTAINER= gnome@FreeBSD.org +COMMENT= Dictionary/spellchecking framework + +USE_GMAKE= yes +USE_AUTOTOOLS= libtool +USE_LDCONFIG= yes +USE_GNOME= gnomehack pkgconfig ltverhack +CONFIGURE_ARGS= --disable-uspell \ + --disable-voikko +MAKE_JOBS_SAFE= yes + +CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib + +MAN1= enchant.1 + +OPTIONS= ASPELL "Enable Aspell backend" on \ + HSPELL "Enable Hspell backend" off \ + HUNSPELL "Enable Hunspell backend" off \ + ISPELL "Enable Ispell backend" off \ + ZEMBEREK "Enable zemberek backend (requires DBUS)" off + +.include <bsd.port.pre.mk> + +.if defined(WITH_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 " +.endif + +.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) +LIB_DEPENDS+= hunspell-1.3.0:${PORTSDIR}/textproc/hunspell +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 + +.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 +.endif + +post-patch: + @${REINPLACE_CMD} -e 's|MKDIRPROG-mkdir|MKDIRPROG-mkdir -p|g' \ + ${WRKSRC}/install-sh +.if ${OSVERSION} < 700042 + @${REINPLACE_CMD} -E -e "s|-Wunsafe-loop-optimizations ||g" \ + -e "s|-Wno-missing-field-initializers ||g" \ + -e "s|-Wno-attributes ||g" \ + ${WRKSRC}/configure +.endif + +.include <bsd.port.post.mk> diff --git a/textproc/enchant/distinfo b/textproc/enchant/distinfo new file mode 100644 index 000000000..a24660c9c --- /dev/null +++ b/textproc/enchant/distinfo @@ -0,0 +1,2 @@ +SHA256 (gnome2/enchant-1.6.0.tar.gz) = 2fac9e7be7e9424b2c5570d8affe568db39f7572c10ed48d4e13cddf03f7097f +SIZE (gnome2/enchant-1.6.0.tar.gz) = 607018 diff --git a/textproc/enchant/pkg-descr b/textproc/enchant/pkg-descr new file mode 100644 index 000000000..04cf4afb5 --- /dev/null +++ b/textproc/enchant/pkg-descr @@ -0,0 +1,16 @@ +On the surface, Enchant appears to be a generic spell checking library. You +can request dictionaries from it, ask if a word is correctly spelled, get +corrections for a misspelled word, etc... + +Beneath the surface, Enchant is a whole lot more - and less - than that. +You'll see that Enchant isn't really a spell checking library at all. + +"What's that?" you ask. Well, Enchant doesn't try to do any of the work +itself. It's lazy, and requires backends to do most of its dirty work. Looking +closer, you'll see the Enchant is more-or-less a fancy wrapper around the +dlopen() system call. Enchant steps in to provide uniformity and conformity +on top of these libraries, and implement certain features that may be lacking +in any individual provider library. Everything should "just work" for any and +every definition of "just working." + +WWW: http://www.abisource.com/projects/enchant/ diff --git a/textproc/enchant/pkg-plist b/textproc/enchant/pkg-plist new file mode 100644 index 000000000..8a679632c --- /dev/null +++ b/textproc/enchant/pkg-plist @@ -0,0 +1,29 @@ +bin/enchant +bin/enchant-lsmod +include/enchant/enchant++.h +include/enchant/enchant-provider.h +include/enchant/enchant.h +%%ASPELL%%lib/enchant/libenchant_aspell.a +%%ASPELL%%lib/enchant/libenchant_aspell.la +%%ASPELL%%lib/enchant/libenchant_aspell.so +%%HSPELL%%lib/enchant/libenchant_hspell.a +%%HSPELL%%lib/enchant/libenchant_hspell.la +%%HSPELL%%lib/enchant/libenchant_hspell.so +%%ISPELL%%lib/enchant/libenchant_ispell.a +%%ISPELL%%lib/enchant/libenchant_ispell.la +%%ISPELL%%lib/enchant/libenchant_ispell.so +%%HUNSPELL%%lib/enchant/libenchant_myspell.a +%%HUNSPELL%%lib/enchant/libenchant_myspell.la +%%HUNSPELL%%lib/enchant/libenchant_myspell.so +%%ZEMBEREK%%lib/enchant/libenchant_zemberek.a +%%ZEMBEREK%%lib/enchant/libenchant_zemberek.la +%%ZEMBEREK%%lib/enchant/libenchant_zemberek.so +lib/libenchant.a +lib/libenchant.la +lib/libenchant.so +lib/libenchant.so.1 +libdata/pkgconfig/enchant.pc +%%DATADIR%%/enchant.ordering +@dirrm %%DATADIR%% +@dirrm lib/enchant +@dirrm include/enchant |