sthen 3cbe1c2f30 Reverse the polarity of MODPY_VERSION; default is now 3.x,
if a port needs 2.x then set MODPY_VERSION=${MODPY_DEFAULT_VERSION_2}.

This commit doesn't change any versions currently used; it may be that
some ports have MODPY_DEFAULT_VERSION_2 but don't require it, those
should be cleaned up in the course of updating ports where possible.

Python module ports providing py3-* packages should still use
FLAVOR=python3 so that we don't have a mixture of dependencies some
using ${MODPY_FLAVOR} and others not.
2021-02-23 19:39:08 +00:00

91 lines
2.4 KiB
Makefile

# $OpenBSD: Makefile,v 1.134 2021/02/23 19:39:21 sthen Exp $
BROKEN-alpha= gr_RenderInfo.cpp:426:1: internal compiler error: Segmentation fault
COMMENT= free cross-platform WYSIWYG word processor
VERSION= 3.0.4
DISTNAME= abiword-${VERSION}
REVISION= 2
CATEGORIES= editors
HOMEPAGE= http://www.abisource.com/
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# GPLv2
PERMIT_PACKAGE= Yes
WANTLIB += ${COMPILER_LIBCXX} ICE SM X11 Xcomposite Xcursor Xdamage
WANTLIB += Xext Xfixes Xi Xinerama Xrandr Xrender aspell atk-1.0
WANTLIB += atk-bridge-2.0 avahi-common bz2 c cairo cairo-gobject
WANTLIB += crypto curl dbus-1 enchant-2 epoxy expat ffi fontconfig
WANTLIB += freetype fribidi gcrypt gdk-3 gdk_pixbuf-2.0 gio-2.0
WANTLIB += glib-2.0 gmodule-2.0 gmp gobject-2.0 goffice-0.10 gpg-error
WANTLIB += graphite2 gs gsf-1 gthread-2.0 gtk-3 harfbuzz hogweed
WANTLIB += iconv idn2 intl jpeg ltdl lzma m mpfr nettle nghttp2
WANTLIB += p11-kit pango-1.0 pangocairo-1.0 pangoft2-1.0 pcre
WANTLIB += pixman-1 png raptor2 rasqal rdf rsvg-2 spectre ssl
WANTLIB += tasn1 unistring uuid wmf-0.2 wmflite-0.2 wv-1.2 xcb
WANTLIB += xcb-render xcb-shm xml2 xslt yajl z zstd
MASTER_SITES= http://www.abisource.com/downloads/abiword/${VERSION}/source/
MODULES= lang/python
COMPILER = base-clang ports-gcc
.if ${MACHINE_ARCH} == "hppa"
CFLAGS += -O0
.endif
USE_GMAKE= Yes
BUILD_DEPENDS= devel/gobject-introspection \
devel/py-gobject3${MODPY_FLAVOR}
# plugins/openxml.so
BUILD_DEPENDS +=devel/boost
RUN_DEPENDS= devel/desktop-file-utils \
devel/py-gobject3${MODPY_FLAVOR} \
x11/gtk+3,-guic
LIB_DEPENDS= devel/fribidi \
converters/wv \
devel/goffice \
textproc/enchant2 \
textproc/redland
# src/af/util/xp/ut_go_file.cpp
RUN_DEPENDS += devel/xdg-utils
PLUGINS= goffice opendocument openwriter openxml pdf
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= --enable-introspection \
--enable-plugins="${PLUGINS}" \
--enable-clipart \
--enable-templates
# let's try to keep this package small-ish
CONFIGURE_ARGS += \
--without-evolution-data-server \
--without-libical \
--without-champlain \
--without-inter7eps \
--without-libtidy
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
ac_cv_prog_VALGRIND=
DEBUG_PACKAGES= ${BUILD_PACKAGES}
post-install:
rm ${PREFIX}/lib/libabiword-${VERSION:R}*.{a,la}
rm ${PREFIX}/lib/abiword-${VERSION:R}/plugins/*.{a,la}
.include <bsd.port.mk>