freebsd-ports/print/tex-basic-engines/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

60 lines
1.5 KiB
Makefile

PORTNAME= basic-engines
PORTVERSION= ${TEXLIVE_VERSION}
CATEGORIES= print
MASTER_SITES= TEX_CTAN/systems/texlive/${TEXLIVE_YEAR}
PKGNAMEPREFIX= tex-
DISTNAME= texlive-${PORTVERSION}-source
DIST_SUBDIR= TeX
MAINTAINER= tex@FreeBSD.org
COMMENT= Basic TeX Engines
WWW= https://tug.org/texlive/
LIB_DEPENDS= libpng.so:graphics/png
USES= libtool localbase pkgconfig tar:xz tex
USE_TEX= kpathsea web2c
GNU_CONFIGURE= yes
CONFIGURE_ARGS= ${EXCLUDE_ENGINES:S/^/--disable-/} \
--disable-missing \
--with-system-kpathsea \
--with-system-zlib \
--with-x=no \
--without-mf-x-toolkit
.for L in libpng
CONFIGURE_ARGS+= --with-$L-include=${LOCALBASE}/include \
--with-$L-libdir=${LOCALBASE}/lib \
--with-system-$L
.endfor
INSTALL_TARGET= install-strip
EXTRACT_AFTER_ARGS= ${EXTRACT_FILES:S,^,${DISTNAME}/,}
EXTRACT_FILES= build-aux libs/xpdf texk/web2c
WRKSRC= ${WRKDIR}/${DISTNAME}/texk/web2c
EXCLUDE_ENGINES= aleph luatex luajittex mf mf-nowin ptex eptex uptex \
euptex xetex otangle mp pmp upmp web2c web-progs \
synctex \
luahbtex \
luajithbtex \
mflua \
mfluajit \
latex
post-extract:
@${FIND} ${WRKSRC} -name '*.orig' -delete
post-configure:
cd ${WRKDIR}/${DISTNAME}/libs/xpdf && \
${SETENV} CC="${CC}" CPP="${CPP}" CXX="${CXX}" \
CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS}" \
CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" \
LIBS="${LIBS}" \
${CONFIGURE_ENV} ${SH} ${CONFIGURE_SCRIPT} \
${CONFIGURE_ARGS}
.include <bsd.port.mk>