blob: cc042ce4f02a6c4db87b22965ecf9ed624e9eb08 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# $NetBSD: Makefile,v 1.19 2003/12/04 23:28:10 dmcmahill Exp $
#
DISTNAME= fontconfig-2.2.1
PKGREVISION= 2
CATEGORIES= fonts gnome
MASTER_SITES= http://fontconfig.org/release/
MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://fontconfig.org/
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
GNU_CONFIGURE= YES
USE_BUILDLINK2= YES
USE_LIBTOOL= YES
USE_PKGINSTALL= YES
USE_GMAKE= YES
LIBTOOL_OVERRIDE= ${WRKSRC}/libtool
PKGCONFIG_OVERRIDE= ${WRKSRC}/fontconfig.pc.in
PKG_SYSCONFSUBDIR= fontconfig
CONFIGURE_ARGS+= --with-default-fonts=${LOCALBASE}/lib/X11/fonts
CONFIGURE_ARGS+= --with-freetype-includes=${BUILDLINK_PREFIX.freetype2}/include/freetype2
CONFIGURE_ARGS+= --with-freetype-lib=${BUILDLINK_PREFIX.freetype2}/lib
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
FONT_PATH= ${X11PREFIX}/lib/X11/fonts/TTF,${X11PREFIX}/lib/X11/fonts/Type1
.include "../../mk/bsd.prefs.mk"
.if ${X11BASE} != ${X11PREFIX}
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/buildlink2.mk"
.include "../../graphics/freetype2/buildlink2.mk"
.include "../../textproc/expat/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"
|