1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/print/tex-dvipsk/Makefile
Muhammad Moinur Rahman 721e5776c9 Mk/**tex.mk: Convert bsd.tex.mk to USES=tex
- Update all the consumers to use USES=tex
- USE_TEX=yes is the old way of writing USES=tex which has been removed
  and replaced in all ports
- Almost all of the USE_TEX features remains unchanged
- Some consumers had the same variables defined both in the mk
  infrastructure and also in the ports which have been removed from the
  ports as those are redundant.

In case any of the consumers are failing to build please make sure that
the nexessary USES=tex is there. Unlike previous USE_TEX=yes will no
longer load the required VARS for tex and related dependencies.

Reviewed by:	portmgr
Approved by:	portmgr (blanket)
2022-12-19 08:44:58 -06:00

62 lines
1.9 KiB
Makefile

PORTNAME= dvipsk
PORTVERSION= ${TEXLIVE_YEAR}.1
CATEGORIES= print
MASTER_SITES= TEX_CTAN/systems/texlive/${TEXLIVE_YEAR}/
PKGNAMEPREFIX= tex-
DISTNAME= texlive-${TEXLIVE_VERSION}-source
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
${DISTNAME_TEXMF}${EXTRACT_SUFX}
DIST_SUBDIR= TeX
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= tex@FreeBSD.org
COMMENT= Convert a TeX DVI file to PostScript
LICENSE= GPLv2
LIB_DEPENDS= libpaper.so:print/libpaper
USES= gmake localbase:ldflags pkgconfig tar:xz tex
USE_TEX= kpathsea texhash texmf web2c
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-kpathsea-includes=${LOCALBASE}/include \
--with-kpathsea-libdir=${LOCALBASE}/lib \
--with-paper \
--with-system-kpathsea \
--with-system-libpng \
--with-system-zlib
EXTRACT_AFTER_ARGS= ${EXTRACT_FILES:S,^,${DISTNAME}/,}
EXTRACT_FILES= am m4 build-aux texk/dvipsk texk/lcdf-typetools
EXTRACT_AFTER_ARGS_TEXMF= | ${TAR} -xf - -C ${STAGEDIR}${PREFIX}/share \
--strip-components 1 --no-same-permission \
--no-same-owner \
${EXCLUDE_FILES:S,^,--exclude ,} \
${EXTRACT_FILES_TEXMF:S,^,${DISTNAME_TEXMF}/,}
DISTNAME_TEXMF= texlive-${TEXLIVE_VERSION}-texmf
EXTRACT_FILES_TEXMF= texmf-dist/doc/dvips/ texmf-dist/dvips/ \
texmf-dist/fonts/map/dvips/ \
texmf-dist/fonts/enc/dvips/ \
texmf-dist/tex/generic/dvips/
EXCLUDE_FILES= texmf-dist/dvips/xdvi
WRKSRC= ${WRKDIR}/${DISTNAME}/texk/dvipsk
INFO= dvips
PLIST_FILES= bin/afm2tfm \
bin/dvips \
man/man1/afm2tfm.1.gz \
man/man1/dvips.1.gz
pre-install:
${CAT} ${DISTDIR}/${DIST_SUBDIR}/texlive-${TEXLIVE_VERSION}-texmf${EXTRACT_SUFX} \
${EXTRACT_AFTER_ARGS_TEXMF}
post-install:
${FIND} -s ${STAGEDIR}${PREFIX}/share/texmf-dist -not -type d | ${SORT} | \
${SED} -e 's#^${STAGEDIR}${PREFIX}/##' >> ${TMPPLIST}
${FIND} -s ${STAGEDIR}${PREFIX}/share/texmf-dist -type d -empty | ${SORT} -r | \
${SED} -e 's#^${STAGEDIR}${PREFIX}/#@dir #' >> ${TMPPLIST}
.include <bsd.port.mk>