openbsd-ports/editors/abiword/Makefile

65 lines
1.6 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.29 2003/03/06 00:49:08 brad Exp $
COMMENT= "open-source, cross-platform WYSIWYG word processor"
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 \
--without-pspell \
--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
WRKDIST= ${WRKDIR}/abiword-${VERSION}
WRKSRC= ${WRKDIST}/abi
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
CONFIGURE_ARGS+= --disable-gnome --with-libxml2
LIB_DEPENDS+= xml2::textproc/libxml
.endif
.if ${FLAVOR:L:Mgnome}
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/gnome/apps/Applications
${INSTALL_DATA} ${WRKSRC}/src/pkg/linux/rpm/data/abiword.desktop ${PREFIX}/share/gnome/apps/Applications
${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>