82 lines
2.5 KiB
Makefile
82 lines
2.5 KiB
Makefile
# $NetBSD: Makefile,v 1.77 2012/10/03 18:28:22 asau Exp $
|
|
|
|
DISTNAME= fontconfig-2.10.1
|
|
CATEGORIES= fonts
|
|
MASTER_SITES= http://www.fontconfig.org/release/
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://www.fontconfig.org/
|
|
COMMENT= Library for configuring and customizing font access
|
|
#LICENSE= x11?
|
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
GNU_CONFIGURE= YES
|
|
USE_LIBTOOL= YES
|
|
USE_TOOLS+= gmake pkg-config
|
|
|
|
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-baseconfigdir=${PKG_SYSCONFDIR:Q}
|
|
CONFIGURE_ARGS+= --with-cache-dir=${VARBASE:Q}/cache/fontconfig
|
|
CONFIGURE_ARGS+= --enable-docs
|
|
CONFIGURE_ENV+= HASDOCBOOK=no
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
GSFONTS= ${PREFIX}/share/fonts/urw,${PREFIX}/share/ghostscript/fonts
|
|
.if ${X11BASE} != ${LOCALBASE}
|
|
CONFIGURE_ARGS+= --with-add-fonts=${X11BASE}/lib/X11/fonts,${GSFONTS}
|
|
.else
|
|
CONFIGURE_ARGS+= --with-add-fonts=${LOCALBASE}/share/fonts/X11,${GSFONTS}
|
|
.endif
|
|
|
|
.if ${OPSYS} == "Darwin"
|
|
CONFIGURE_ARGS+= --with-arch=${MACHINE_ARCH}
|
|
.endif
|
|
|
|
SUBST_CLASSES+= prefix
|
|
SUBST_STAGE.prefix= post-build
|
|
SUBST_FILES.prefix= conf.d/README
|
|
SUBST_VARS.prefix= PREFIX
|
|
|
|
EGDIR= ${PREFIX}/share/examples/fontconfig
|
|
CONF_FILES= ${EGDIR}/fonts.conf ${PKG_SYSCONFDIR}/fonts.conf
|
|
CONF_FILES+= ${EGDIR}/conf.d/README ${PKG_SYSCONFDIR}/conf.d/README
|
|
|
|
TMPLDIR= ${PREFIX}/share/fontconfig/conf.avail
|
|
MAKE_DIRS+= ${PKG_SYSCONFDIR}/conf.d
|
|
# following list from ${WRKSRC}/conf.d/Makefile.am
|
|
FC_STDCONF= 20-unhint-small-vera.conf 30-metric-aliases.conf 30-urw-aliases.conf \
|
|
40-nonlatin.conf 45-latin.conf 49-sansserif.conf 50-user.conf 51-local.conf \
|
|
60-latin.conf 65-fonts-persian.conf 65-nonlatin.conf 69-unifont.conf \
|
|
80-delicious.conf 90-synthetic.conf
|
|
# pkgsrc addition
|
|
FC_STDCONF+= 30-pkgsrc-aliases.conf
|
|
.for f in ${FC_STDCONF}
|
|
CONF_FILES+= ${TMPLDIR}/${f} ${PKG_SYSCONFDIR}/conf.d/${f}
|
|
.endfor
|
|
|
|
MAKE_DIRS+= ${VARBASE}/cache
|
|
BUILD_DEFS+= VARBASE
|
|
|
|
TEST_TARGET= check
|
|
|
|
.if !empty(USE_CROSS_COMPILE:M[yY][eE][sS])
|
|
CONFIGURE_ENV+= CC_FOR_BUILD=${NATIVE_CC:Q}
|
|
.endif
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${FILESDIR}/30-pkgsrc-aliases.conf \
|
|
${DESTDIR}${TMPLDIR}
|
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
.include "../../graphics/freetype2/buildlink3.mk"
|
|
.include "../../textproc/expat/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|