openbsd-ports/editors/abiword/Makefile
fgsch a32bf2e5c9 update to 2.2.10. see http://www.abisource.com/changelogs/2.2.10.phtml
for details.

SECURITY: RTF import stack-based buffer overflow / CESA-2005-004 - rev 1.
2005-09-27 05:19:38 +00:00

76 lines
2.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.44 2005/09/27 05:19:38 fgsch Exp $
COMMENT= "open-source, cross-platform WYSIWYG word processor"
VERSION= 2.2.10
DISTNAME= abiword-${VERSION}
CATEGORIES= editors
HOMEPAGE= http://www.abisource.com/
MODULES= devel/gettext
BUILD_DEPENDS= :pkgconfig-*:devel/pkgconfig
LIB_DEPENDS= fribidi::devel/fribidi \
gthread-2.0.0.0::devel/glib2 \
gdk-x11-2.0.0.0,gdk_pixbuf-2.0.0.0,gtk-x11-2.0.0.0::x11/gtk+2 \
glade-2.0.0.0::devel/libglade2 \
xml2.9::textproc/libxml \
popt::devel/popt
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= ICE SM X11 Xft Xrender atk-1.0.0.0 c fontconfig freetype \
glib-2.0.0.0 gmodule-2.0.0.0 gobject-2.0.0.0 m pango-1.0.0.0 \
pangox-1.0.0.0 pangoxft-1.0.0.0 png pthread stdc++ z
MASTER_SITES= ${HOMEPAGE}/downloads/abiword/${VERSION}/source/
USE_GMAKE= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= --disable-gucharmap --disable-enchant --without-pspell
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
FLAVORS= gnome
FLAVOR?=
.if ${FLAVOR:L:Mgnome}
BROKEN= "Crash when exiting (canvas)"
LIB_DEPENDS+= gnomeprintui-2-2::x11/gnome/libgnomeprintui \
gnomeui-2::x11/gnome/libgnomeui \
ORBit-2::devel/ORBit2
WANTLIB+= ORBit-2.0.0 art_lgpl_2.0.0 bonobo-2.0.0 \
bonobo-activation bonoboui-2.0.0 gconf-2.0.0 \
gnome-2.0.0 gnomecanvas-2.0.0 gnomeprint-2-2.0.0 \
gnomeui-2.0.0 gnomevfs-2.0.0 pangoft2-1.0.0.0
CONFIGURE_ARGS+= --enable-gnome
.endif
MAKE_FILE= GNUmakefile
WRKDIST= ${WRKDIR}/abiword-${VERSION}
WRKSRC= ${WRKDIST}/abi
pre-configure:
@perl -pi -e "s|libpng12|libpng|g" ${WRKSRC}/configure
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/abiword/Manual
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/abiword/Tutorials
${INSTALL_MAN} ${WRKDIST}/abiword-docs/man/abiword.1 \
${PREFIX}/man/man1
${INSTALL_DATA} ${WRKDIST}/abiword-docs/Manual/en/Abiword_Manual.abw \
${PREFIX}/share/doc/abiword/Manual
cd ${WRKDIST}/abiword-docs/Tutorials && tar cf - jmp klw | \
tar xf - -C ${PREFIX}/share/doc/abiword/Tutorials
.include <bsd.port.mk>