7e6a637bdd
in particular this fixes a problem where no font matches can be found by gtk2 apps. This should fix the problem where even the gtk-demo program fails run.
52 lines
1.8 KiB
Makefile
52 lines
1.8 KiB
Makefile
# $NetBSD: Makefile,v 1.32 2004/06/07 23:37:41 dmcmahill Exp $
|
|
#
|
|
|
|
DISTNAME= fontconfig-2.2.95
|
|
CATEGORIES= fonts gnome
|
|
MASTER_SITES= http://freedesktop.org/~fontconfig/release/
|
|
|
|
MAINTAINER= tech-pkg@NetBSD.org
|
|
HOMEPAGE= http://freedesktop.org/Software/fontconfig/
|
|
COMMENT= Library for configuring and customizing font access
|
|
|
|
# This can use 2.0.5 but things which use it (ala pango) require 2.0.9 so make
|
|
# sure to keep in step
|
|
BUILDLINK_DEPENDS.freetype2+= freetype2>=2.0.9
|
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
GNU_CONFIGURE= YES
|
|
USE_BUILDLINK3= YES
|
|
USE_LIBTOOL= YES
|
|
USE_PKGINSTALL= YES
|
|
USE_GNU_TOOLS+= make
|
|
|
|
PKGCONFIG_OVERRIDE= fontconfig.pc.in
|
|
|
|
PKG_SYSCONFSUBDIR= fontconfig
|
|
|
|
CONFIGURE_ARGS+= --with-default-fonts=${LOCALBASE}/lib/X11/fonts
|
|
CONFIGURE_ARGS+= --with-freetype-config=${BUILDLINK_PREFIX.freetype2}/bin/freetype-config
|
|
CONFIGURE_ARGS+= --with-expat-includes=${BUILDLINK_PREFIX.expat}/include
|
|
CONFIGURE_ARGS+= --with-expat-lib=${BUILDLINK_PREFIX.expat}/lib
|
|
CONFIGURE_ARGS+= --with-confdir=${PKG_SYSCONFDIR}
|
|
CONFIGURE_ARGS+= --with-x
|
|
CONFIGURE_ARGS+= --enable-docs
|
|
|
|
FONT_PATH= ${X11PREFIX}/lib/X11/fonts/TTF,${X11PREFIX}/lib/X11/fonts/Type1
|
|
.if ${X11PREFIX} != ${X11BASE}
|
|
FONT_PATH2= ,${X11BASE}/lib/X11/fonts,${X11BASE}/lib/X11/fonts/TTF,${X11BASE}/lib/X11/fonts/Type1
|
|
.endif
|
|
CONFIGURE_ARGS+= --with-add-fonts=${FONT_PATH}${FONT_PATH2}
|
|
|
|
EGDIR= ${PREFIX}/share/examples/fontconfig
|
|
CONF_FILES= ${EGDIR}/fonts.conf ${PKG_SYSCONFDIR}/fonts.conf
|
|
CONF_FILES+= ${EGDIR}/fonts.dtd ${PKG_SYSCONFDIR}/fonts.dtd
|
|
CONF_FILES+= ${EGDIR}/local.conf ${PKG_SYSCONFDIR}/local.conf
|
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
.include "../../graphics/freetype2/buildlink3.mk"
|
|
.include "../../textproc/expat/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|