openbsd-ports/print/fontforge/Makefile
kili 8215f9cc14 Update to fontforge-20100501.
Add a workaround for an ICE on mips64el.
2010-06-23 08:00:42 +00:00

73 lines
1.8 KiB
Makefile

# $OpenBSD: Makefile,v 1.17 2010/06/23 08:00:42 kili Exp $
SHARED_ONLY= Yes
COMMENT= vector font editor/converter
DISTNAME= fontforge_full-20100501
PKGNAME= ${DISTNAME:S,_full,,}
EXTRACT_SUFX= .tar.bz2
SHARED_LIBS= fontforge 3.0 \
gdraw 5.0 \
gioftp 2.0 \
gunicode 5.0 \
gutils 2.0
CATEGORIES= print
HOMEPAGE= http://fontforge.sourceforge.net/
MAINTAINER= Matthias Kilian <kili@openbsd.org>
# BSD
PERMIT_PACKAGE_FTP= Yes
PERMIT_PACKAGE_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=fontforge/}
WANTLIB= ICE SM X11 Xau Xdmcp Xext Xft Xi Xrender c \
expat fontconfig freetype glib-2.0 glitz \
gmodule-2.0 gobject-2.0 gthread-2.0 m pcre pixman-1 \
pthread pthread-stubs util xcb xcb-render \
xcb-render-util xkbfile xkbui z
MODULES= devel/gettext lang/python
LIB_DEPENDS= ${MODPY_LIB_DEPENDS} \
cairo.>=9::graphics/cairo \
jpeg.>=62::graphics/jpeg \
pango-1.0.>=1800,pangocairo-1.0.>=1800,pangoft2-1.0.>=1800,pangoxft-1.0.>=1800::devel/pango \
png.>=5::graphics/png \
tiff.>=38::graphics/tiff \
gif.>=5::graphics/libungif \
xml2.>=9::textproc/libxml
WRKDIST= ${WRKDIR}/${DISTNAME:S,_full,,}
.if ${MACHINE_ARCH:Mmips64el}
# XXX gcc 3.3 ICE
MAKE_FLAGS += CFLAGS_fontinfo.c=-O1
.endif
CONFIGURE_STYLE= gnu
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include \
-I${LOCALBASE}/include/libpng" \
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
USE_LIBTOOL= Yes
USE_X11= Yes
NO_REGRESS= Yes
post-extract:
find ${WRKSRC} -name \*.orig -o -name \*.rej | xargs rm
.include <bsd.port.mk>