pkgsrc/print/tex-texconfig/Makefile
jperkin e335c8910c Remove mk/find-prefix.mk usage from the print category.
The find-prefix infrastructure was required in a pkgviews world where
packages installed from pkgsrc could have different installation
prefixes, and this was a way for a dependency prefix to be determined.

Now that pkgviews has been removed there is no longer any need for the
overhead of this infrastructure.  Instead we use BUILDLINK_PREFIX.pkg
for dependencies pulled in via buildlink, or LOCALBASE/PREFIX where the
dependency is coming from pkgsrc.

Provides a reasonable performance win due to the reduction of `pkg_info
-qp` calls, some of which were redundant anyway as they were duplicating
the same information provided by BUILDLINK_PREFIX.pkg.
2015-11-25 12:53:09 +00:00

37 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.4 2015/11/25 12:53:09 jperkin Exp $
DISTNAME= texconfig
PKGNAME= tex-${DISTNAME}-2014
TEXLIVE_REV= 34642
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Configuration utility for TeX
CONFLICTS+= texlive-tetex<=2011nb1
DEPENDS+= kpathsea-[0-9]*:../../print/kpathsea
USE_TOOLS+= sh:run
SUBST_CLASSES+= paths
SUBST_MESSAGE.paths= Setting paths to commands.
SUBST_STAGE.paths= pre-configure
SUBST_FILES.paths= bin/texconfig texmf-dist/texconfig/tcfmgr
SUBST_SED.paths= -e 's,@FMTUTIL@,${LOCALBASE}/bin/fmtutil,g'
SUBST_SED.paths+= -e 's,@KPSEWHICH@,${LOCALBASE}/bin/kpsewhich,g'
SUBST_SED.paths+= -e 's,@MKTEXLSR@,${LOCALBASE}/bin/mktexlsr,g'
SUBST_SED.paths+= -e 's,@TEXCONF_DIALOG@,${LOCALBASE}/bin/texconfig-dialog,g'
SUBST_SED.paths+= -e 's,@TEXLINKS@,${LOCALBASE}/bin/texlnks,g'
SUBST_SED.paths+= -e 's,@UPDMAP@,${LOCALBASE}/bin/updmap,g'
REPLACE_SH= bin/texconfig texmf-dist/texconfig/tcfmgr
.include "../../print/texlive/package.mk"
post-extract:
${MKDIR} ${WRKSRC}/bin
${MV} ${WRKSRC}/texmf-dist/scripts/texlive/texconfig.sh \
${WRKSRC}/bin/texconfig
${RMDIR} -p ${WRKSRC}/texmf-dist/scripts/tetex 2>/dev/null || ${TRUE}
${CHMOD} +x ${WRKSRC}/texmf-dist/texconfig/tcfmgr
.include "../../mk/bsd.pkg.mk"