pkgsrc/print/dvipdfmx/map.mk
2009-01-14 06:35:22 +00:00

26 lines
834 B
Makefile

# $NetBSD: map.mk,v 1.8 2009/01/14 06:35:22 minskim Exp $
# This Makefile fragment is intended to be included by packages that
# install font maps used by dvipdfmx. It takes care of adding and
# removing font map entires in dvipdfmx.cfg.
#
# The following variable can be defined:
#
# DVIPDFMX_FONTMAPS - A list of font map files to be included in
# dvipdfmx.cnf.
#
.if !defined(DVIPDFMX_MAP_MK)
DVIPDFMX_MAP_MK= # defined
DVIPDFMX_FONTMAPS?= # empty
.if empty(DISTNAME:Mdvipdfmx-[0-9]*)
DEPENDS+= dvipdfmx>=0.0.0.20070518:../../print/dvipdfmx
.endif
FILES_SUBST+= DVIPDFMX_FONTMAPS=${DVIPDFMX_FONTMAPS:Q}
FILES_SUBST+= DVIPDFMX_CONFIG_DIR="${LOCALBASE}/share/texmf-dist/dvipdfm"
INSTALL_TEMPLATES+= ../../print/dvipdfmx/files/map.tmpl
DEINSTALL_TEMPLATES+= ../../print/dvipdfmx/files/map.tmpl
.endif # DVIPDFMX_MAP_MK