openbsd-ports/editors/abiword/Makefile
2002-11-14 20:16:27 +00:00

72 lines
1.8 KiB
Makefile

# $OpenBSD: Makefile,v 1.23 2002/11/14 20:16:27 marcm Exp $
COMMENT= "open-source, cross-platform WYSIWYG word processor"
VERSION= 1.0.2
DISTNAME= abiword-${VERSION}
CATEGORIES= editors
HOMEPAGE= http://www.abisource.com/
MAINTAINER= Damien Couderc <couderc@openbsd.org>
LIB_DEPENDS= png.2::graphics/png \
jpeg.62::graphics/jpeg \
xml2::textproc/libxml \
gtk.1.2,gdk.1.2::x11/gtk+
RUN_DEPENDS= ispell::textproc/ispell
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=abiword/}
USE_GMAKE= Yes
CONFIGURE_STYLE= gnu autoconf
CONFIGURE_ARGS= --with-libpng=${LOCALBASE}/lib \
--with-libxml2 \
--disable-debug
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/libpng" \
LDFLAGS="-L${LOCALBASE}/lib"
MAKE_FLAGS= prefix="${PREFIX}"
FAKE_FLAGS= prefix="${WRKINST}${PREFIX}"
MAKE_FILE= GNUmakefile
WRKDIST= ${WRKDIR}/abiword-${VERSION}/abi
PFILE= ${WRKDIR}/abiword-${VERSION}/wv/generic.c
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
.endif
post-patch:
@mv ${PFILE} ${PFILE}.orig
@sed -e s/tmpnam/mkstemp/ ${PFILE}.orig > ${PFILE}
@cd ${WRKDIR}/abiword-${VERSION}; \
patch < ${FILESDIR}/patch-wv_libole2_Makefile_in
.if ${FLAVOR:L:Mgnome}
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/gnome/apps/Applications
${INSTALL_DATA} ${WRKDIST}/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
.include <bsd.port.mk>