22ddefeb3e
conflicts with Gnome's libxml1 and bad things happen. This fixes the segfault when trying to print with the 'gnome' flavor. ok couderc@
73 lines
1.9 KiB
Makefile
73 lines
1.9 KiB
Makefile
# $OpenBSD: Makefile,v 1.26 2003/02/11 18:50:22 marcm Exp $
|
|
|
|
COMMENT= "open-source, cross-platform WYSIWYG word processor"
|
|
|
|
VERSION= 1.0.4
|
|
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 \
|
|
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
|
|
CONFIGURE_ARGS= --with-libpng=${LOCALBASE}/lib \
|
|
--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
|
|
CONFIGURE_ARGS+= --with-libxml2
|
|
LIB_DEPENDS+= xml2::textproc/libxml
|
|
.endif
|
|
|
|
post-patch:
|
|
@mv ${PFILE} ${PFILE}.orig
|
|
@sed -e s/tmpnam/mkstemp/ ${PFILE}.orig > ${PFILE}
|
|
@cd ${WRKDIR}/abiword-${VERSION}; \
|
|
patch -s < ${FILESDIR}/patch-wv_libole2_Makefile_in; \
|
|
patch -s < ${FILESDIR}/patch-psiconf_configure
|
|
|
|
.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>
|