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

64 lines
1.6 KiB
Makefile

# $OpenBSD: Makefile,v 1.48 2021/02/23 19:39:36 sthen Exp $
BROKEN-i386= hangs at runtime. started after switch to clang
COMMENT= vector font editor/converter
DISTNAME= fontforge_full-20120731-b
PKGNAME= ${DISTNAME:S,_full,,:S,-b,,}
EXTRACT_SUFX= .tar.bz2
SHARED_LIBS= fontforge 4.0 \
gdraw 5.1 \
gioftp 2.1 \
gunicode 5.1 \
gutils 2.1
REVISION= 4
CATEGORIES= print
HOMEPAGE= https://fontforge.github.io/en-US/
MAINTAINER= Matthias Kilian <kili@openbsd.org>
# BSD
PERMIT_PACKAGE= Yes
WANTLIB = ${MODPY_WANTLIB}
WANTLIB += ICE SM X11 Xext Xft Xi Xrender c cairo expat ffi fontconfig
WANTLIB += freetype fribidi gif glib-2.0 gobject-2.0 graphite2
WANTLIB += harfbuzz iconv intl jpeg lzma m pango-1.0
WANTLIB += pangocairo-1.0 pangoft2-1.0 pangoxft-1.0 pcre pixman-1 png
WANTLIB += pthread tiff util xcb xcb-render xcb-shm xml2 z zstd
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=fontforge/}
MODULES= lang/python
MODPY_VERSION = ${MODPY_DEFAULT_VERSION_2}
BUILD_DEPENDS= devel/gettext,-tools
LIB_DEPENDS= ${MODPY_LIB_DEPENDS} \
graphics/cairo \
graphics/jpeg \
devel/pango \
graphics/png \
graphics/tiff \
graphics/giflib \
textproc/libxml
WRKDIST= ${WRKDIR}/${DISTNAME:S,_full,,}
CONFIGURE_STYLE= gnu
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib \
-lintl -liconv -lz"
CONFIGURE_ARGS= --without-freetype-src \
--with-python=${MODPY_BIN} \
--with-python-lib="$$(python${MODPY_VERSION}-config --libs)" \
--with-regular-link
USE_GMAKE= Yes
NO_TEST= Yes
.include <bsd.port.mk>