2003-03-05 19:49:08 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.29 2003/03/06 00:49:08 brad Exp $
|
2001-05-05 20:28:54 -04:00
|
|
|
|
|
|
|
COMMENT= "open-source, cross-platform WYSIWYG word processor"
|
2001-02-18 13:44:57 -05:00
|
|
|
|
2003-02-03 10:13:10 -05:00
|
|
|
VERSION= 1.0.4
|
2002-10-17 14:37:13 -04:00
|
|
|
DISTNAME= abiword-${VERSION}
|
1999-11-08 09:08:48 -05:00
|
|
|
CATEGORIES= editors
|
2000-07-17 03:34:57 -04:00
|
|
|
|
|
|
|
HOMEPAGE= http://www.abisource.com/
|
|
|
|
|
2002-10-17 14:37:13 -04:00
|
|
|
MAINTAINER= Damien Couderc <couderc@openbsd.org>
|
1999-11-08 09:05:52 -05:00
|
|
|
|
2002-10-17 14:37:13 -04:00
|
|
|
LIB_DEPENDS= png.2::graphics/png \
|
|
|
|
jpeg.62::graphics/jpeg \
|
|
|
|
gtk.1.2,gdk.1.2::x11/gtk+
|
|
|
|
RUN_DEPENDS= ispell::textproc/ispell
|
1999-11-08 09:05:52 -05:00
|
|
|
|
2000-03-16 17:32:35 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2002-10-17 14:37:13 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=abiword/}
|
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
|
2003-01-24 17:29:52 -05:00
|
|
|
CONFIGURE_STYLE= gnu
|
2002-10-17 14:37:13 -04:00
|
|
|
CONFIGURE_ARGS= --with-libpng=${LOCALBASE}/lib \
|
2003-03-05 19:49:08 -05:00
|
|
|
--without-pspell \
|
2002-11-14 15:16:27 -05:00
|
|
|
--disable-debug
|
2002-10-17 14:37:13 -04:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/libpng" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
|
2000-07-17 03:34:57 -04:00
|
|
|
MAKE_FLAGS= prefix="${PREFIX}"
|
|
|
|
FAKE_FLAGS= prefix="${WRKINST}${PREFIX}"
|
|
|
|
|
2002-10-17 14:37:13 -04:00
|
|
|
MAKE_FILE= GNUmakefile
|
1999-11-08 09:05:52 -05:00
|
|
|
|
2003-02-11 14:47:34 -05:00
|
|
|
WRKDIST= ${WRKDIR}/abiword-${VERSION}
|
|
|
|
WRKSRC= ${WRKDIST}/abi
|
2000-09-27 17:26:45 -04:00
|
|
|
|
2002-11-14 15:16:27 -05:00
|
|
|
FLAVORS= gnome
|
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mgnome}
|
|
|
|
CONFIGURE_ARGS+= --enable-gnome
|
|
|
|
LIB_DEPENDS+= bonobo.2,bonobo-print.2,bonobox.2::x11/gnome/bonobo \
|
|
|
|
gal.19::devel/gal \
|
|
|
|
glade.5,glade-gnome.5::devel/libglade,gnome \
|
|
|
|
gnomevfs::x11/gnome/vfs
|
|
|
|
.else
|
2003-02-11 14:47:34 -05:00
|
|
|
CONFIGURE_ARGS+= --disable-gnome --with-libxml2
|
2003-02-11 13:50:22 -05:00
|
|
|
LIB_DEPENDS+= xml2::textproc/libxml
|
2002-11-14 15:16:27 -05:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mgnome}
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/gnome/apps/Applications
|
2003-02-20 00:50:34 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/pkg/linux/rpm/data/abiword.desktop ${PREFIX}/share/gnome/apps/Applications
|
2002-11-14 15:16:27 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/pixmaps
|
|
|
|
${INSTALL_DATA} ${PREFIX}/share/AbiSuite/icons/abiword_48.png ${PREFIX}/share/pixmaps
|
|
|
|
.endif
|
1999-11-08 09:05:52 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|