pkgsrc/editors/abiword/Makefile
fredb a118a9f747 "configure" now checks for gucharmap by default, picks it up, but then
fails to build with it (without the buildlink glue).  Adapt by reversing
the sense of the check, and s/enable/disable/.
2005-04-04 23:38:57 +00:00

51 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.88 2005/04/04 23:38:57 fredb Exp $
.include "Makefile.common"
PKGNAME= abiword-${ABIWORD_VERSION}
COMMENT= Open Source cross-platform word processor
# GTK1 version and previous name of the GTK2 version
CONFLICTS= abiword-personal-[0-9]* abiword2-[0-9]*
WRKSRC= ${WRKDIR}/${DISTNAME}/abi
USE_PERL5= run
REPLACE_PERL= user/wp/scripts/abw2html.pl
PKG_OPTIONS_VAR= PKG_OPTIONS.abiword
PKG_SUPPORTED_OPTIONS= gucharmap
.include "../../mk/bsd.options.mk"
.include "../../mk/bsd.prefs.mk"
.if empty(PKG_OPTIONS:Mgucharmap)
CONFIGURE_ARGS+= --disable-gucharmap
.endif
CONFIGURE_ARGS+= --with-sys-wv
.if ${OPSYS} == "Darwin"
# hardcode relative install path in libwv (MacOS X only)
CONFIGURE_ARGS+= --without-epath
# Use X11 instead of Cocoa API
CONFIGURE_ARGS+= --disable-Cocoa
.endif
CONFIGURE_ARGS+= --enable-threads --with-libxml2
CONFIGURE_ARGS+= --with-libjpeg-prefix=${BUILDLINK_PREFIX.jpeg}
CONFIGURE_ARGS+= --with-zlib=${BUILDLINK_PREFIX.zlib}
post-install:
${INSTALL_MAN} ${WRKDIR}/${DISTNAME}/abiword-docs/man/abiword.1 \
${PREFIX}/man/man1/abiword.1
cd ${WRKDIR}/${DISTNAME}/abiword-docs/ && env \
ABI_DOC_DEST=${PREFIX}/share/AbiSuite-2.2/AbiWord \
./make-html.sh
.include "../../converters/libiconv/buildlink3.mk"
.include "../../converters/wv/buildlink3.mk"
.if !empty(PKG_OPTIONS:Mgucharmap)
.include "../../fonts/gucharmap/buildlink3.mk"
.endif
.include "../../textproc/enchant/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"