1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-01 01:17:02 +00:00
freebsd-ports/print/tex/Makefile
Mathieu Arnold 60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00

65 lines
2.2 KiB
Makefile

# Created by: jmz
# $FreeBSD$
PORTNAME= tex
PORTVERSION= 3.14159
PORTREVISION= 3
CATEGORIES= print
MASTER_SITES= LOCAL/mikeh
#TEX_CTAN/systems/web2c XXX distfiles disappeared/moved?
DISTNAME= web2c-7.2
DISTFILES= web2c-7.2b.tar.gz web-7.2a.tar.gz tex_base.tar.gz cm_tfm.tar.gz \
mf_lib.tar.gz cm_mf.tar.gz modes.mf
EXTRACT_ONLY= web2c-7.2b.tar.gz web-7.2a.tar.gz tex_base.tar.gz cm_tfm.tar.gz \
mf_lib.tar.gz cm_mf.tar.gz
MAINTAINER= gabor@FreeBSD.org
COMMENT= TeX and METAFONT
DIST_SUBDIR= tex
CONFLICTS= teTeX*
USES= desthack gmake makeinfo
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --datadir=\$${${DESTDIRNAME}}${PREFIX}/share
INFO= kpathsea web2c
MAKE_FLAGS= fmts= all_mems=
.include <bsd.port.pre.mk>
.if ${ARCH} == "ia64"
BROKEN= Segfault during build on ia64
.endif
pre-configure:
cd ${WRKDIR} && ${FIND} . -name \*.gz | ${XARGS} ${GUNZIP_CMD} -f
post-configure:
@cd ${WRKSRC}/web2c; \
${LN} -s ../../tfm/*.tfm ../../base/*.tex ../../mf/*.mf ../../lib/*.mf .; \
${CP} ${DISTDIR}/${DIST_SUBDIR}/modes.mf .
do-build:
@(cd ${WRKSRC}; unset `env|${GREP} ^TEX|${SED} -e s/=.*//`; \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${ALL_TARGET})
post-install:
@for i in kpsewhich dmp bibtex dvicopy dvitomp dvitype gftodvi gftopk \
gftype mf mft patgen pktogf pktype pltotf pooltype tangle tex tftopl \
vftovp vptovf weave; do ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/$$i; done
@${RM} -f ${STAGEDIR}${PREFIX}/bin/mpostf ${STAGEDIR}${PREFIX}/bin/inimpost \
${STAGEDIR}${PREFIX}/bin/virmpost ${STAGEDIR}${PREFIX}/bin/latex \
${STAGEDIR}${PREFIX}/share/texmf/web2c/mpost.mem ${STAGEDIR}${PREFIX}/share/texmf/web2c/plain.mem \
${STAGEDIR}${PREFIX}/share/texmf/web2c/mp.pool ${STAGEDIR}${PREFIX}/bin/mpost ${STAGEDIR}${PREFIX}/bin/mpto
@${MKDIR} ${STAGEDIR}${PREFIX}/share/texmf/fonts/tfm
@(cd ${WRKDIR}/tfm; ${INSTALL_DATA} *.tfm ${STAGEDIR}${PREFIX}/share/texmf/fonts/tfm)
@${MKDIR} ${STAGEDIR}${PREFIX}/share/texmf/metafont
@(cd ${WRKDIR}/mf; ${INSTALL_DATA} *.mf ${STAGEDIR}${PREFIX}/share/texmf/metafont)
@${MKDIR} ${STAGEDIR}${PREFIX}/share/texmf/tex
@(cd ${WRKDIR}/lib; ${INSTALL_DATA} *.tex ${STAGEDIR}${PREFIX}/share/texmf/tex)
@(cd ${WRKDIR}/base; ${INSTALL_DATA} *.tex ${STAGEDIR}${PREFIX}/share/texmf/tex)
.include <bsd.port.post.mk>