[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / textproc / aspell

File: [cvs.NetBSD.org] / pkgsrc / textproc / aspell / Makefile (download)

Revision 1.75, Tue Mar 17 21:23:22 2020 UTC (2 years, 10 months ago) by rillig
Branch: MAIN
CVS Tags: pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1
Changes since 1.74: +1 -2 lines

textproc/aspell: remove unknown configure option --enable-doc-dir

The correct spelling of that option is --enable-docdir, and its default
value is $prefix/share/doc/aspell, thus there is no need to specify it at
all.

# $NetBSD: Makefile,v 1.75 2020/03/17 21:23:22 rillig Exp $

DISTNAME=		aspell-0.60.8
CATEGORIES=		textproc
MASTER_SITES=		${MASTER_SITE_GNU:=aspell/}

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://aspell.net/
COMMENT=		Spell checker with good multi-language support
LICENSE=		gnu-lgpl-v2.1

CONFLICTS=		libpspell-[0-9]*

GNU_CONFIGURE=		yes
USE_FEATURES=		snprintf vsnprintf
USE_TOOLS+=		gmake
USE_TOOLS+=		msgfmt msgmerge xgettext
# for bin/aspell-import
USE_TOOLS+=		perl:run
USE_LIBTOOL=		yes
USE_LANGUAGES=		c c++
USE_NCURSES=		yes
USE_PKGLOCALEDIR=	yes
INFO_FILES=		yes

CONFIGURE_ARGS+=	--enable-curses=${CURSES_TYPE}
CONFIGURE_ARGS+=	--enable-pkgdatadir=${PREFIX}/share/aspell
CONFIGURE_ARGS+=	--enable-dict-dir=${PREFIX}/lib/aspell
# https://github.com/GNUAspell/aspell/issues/336
CONFIGURE_ARGS+=	--enable-compile-in-filters
CONFIGURE_ENV+=		gt_cv_func_gnugettext1_libintl=yes

.include "../../mk/bsd.prefs.mk"

# aspell does not work with curses in NetBSD <= 8.0.
.if !empty(MACHINE_PLATFORM:MNetBSD-8.0*) || \
    !empty(MACHINE_PLATFORM:MNetBSD-[0-7].*)
USE_CURSES=	ncurses
.endif

.if !empty(MACHINE_PLATFORM:MIRIX-5*)
CPPFLAGS+=	-DDECLARE_VSNPRINTF -DDECLARE_SNPRINTF
# IRIX 5 has an older implementation of signal()
CPPFLAGS+=	-DHAVE_OLD_SIGNAL
.endif

REPLACE_PERL=		scripts/aspell-import

NOT_FOR_COMPILER=	xlc

LIBS.SunOS+=		-lm

.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/curses.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"