mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-07 11:49:40 +00:00
6e0c41ef75
- Note that full support of configuration tools such as tlmgr and texconfig is not ready yet. - Most of dviware now supports libpaper to choose the default papersize. Use paperconfig(8) utility or print/papersize-default-* packages. - Some quite old macros of the age of latex209 have been removed, and there are user-visible/invisible incompatibilities. Please send a report to freebsd-tex@FreeBSD.org or file a PR if you have trouble.
98 lines
3.1 KiB
Makefile
98 lines
3.1 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= ptex
|
|
PORTVERSION= 3.5
|
|
CATEGORIES= japanese print
|
|
MASTER_SITES= ftp://tug.org/historic/systems/texlive/2014/
|
|
PKGNAMEPREFIX= ja-tex-
|
|
DISTNAME= texlive-${DISTVERSION_TEXLIVE}-source
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
|
${DISTNAME_TEXMF}${EXTRACT_SUFX}
|
|
DIST_SUBDIR= TeX
|
|
EXTRACT_ONLY= texlive-${DISTVERSION_TEXLIVE}-source${EXTRACT_SUFX}
|
|
|
|
MAINTAINER= hrs@FreeBSD.org
|
|
COMMENT= ASCII Japanese pTeX
|
|
|
|
USES= tar:xz gmake
|
|
USE_TEX= kpathsea web2c ptexenc texmf formats fmtutil
|
|
EXTRACT_AFTER_ARGS= ${EXTRACT_FILES:S,^,${DISTNAME}/,}
|
|
EXTRACT_FILES= \
|
|
build-aux \
|
|
libs/xpdf \
|
|
texk/web2c
|
|
EXTRACT_AFTER_ARGS_TEXMF= \
|
|
| ${TAR} -xf - -C ${STAGEDIR}${PREFIX}/share \
|
|
--strip-components 1 --no-same-permission --no-same-owner \
|
|
${EXTRACT_FILES_TEXMF:S,^,${DISTNAME_TEXMF}/,}
|
|
DISTVERSION_TEXLIVE= 20140525
|
|
DISTNAME_TEXMF= texlive-${DISTVERSION_TEXLIVE}-texmf
|
|
EXTRACT_FILES_TEXMF= \
|
|
texmf-dist/doc/ptex \
|
|
texmf-dist/doc/platex \
|
|
texmf-dist/doc/uptex \
|
|
texmf-dist/doc/uplatex \
|
|
texmf-dist/doc/fonts/japanese-otf \
|
|
texmf-dist/doc/fonts/japanese-otf-uptex \
|
|
texmf-dist/doc/fonts/jfontmaps \
|
|
texmf-dist/fonts/source/ptex \
|
|
texmf-dist/fonts/ovp/public/japanese-otf-uptex \
|
|
texmf-dist/fonts/vf/ptex \
|
|
texmf-dist/fonts/vf/uptex \
|
|
texmf-dist/fonts/vf/public/japanese-otf \
|
|
texmf-dist/fonts/vf/public/japanese-otf-uptex \
|
|
texmf-dist/fonts/type1/ptex \
|
|
texmf-dist/fonts/tfm/ptex \
|
|
texmf-dist/fonts/tfm/uptex \
|
|
texmf-dist/fonts/tfm/public/japanese-otf-uptex \
|
|
texmf-dist/fonts/tfm/public/japanese-otf \
|
|
texmf-dist/fonts/ofm/public/japanese-otf \
|
|
texmf-dist/source/fonts/uptex \
|
|
texmf-dist/source/fonts/japanese-otf-uptex \
|
|
texmf-dist/source/fonts/japanese-otf \
|
|
texmf-dist/source/platex \
|
|
texmf-dist/source/uplatex \
|
|
texmf-dist/tex/ptex \
|
|
texmf-dist/tex/uptex \
|
|
texmf-dist/tex/platex \
|
|
texmf-dist/tex/uplatex \
|
|
texmf-dist/tex/generic/hyph-utf8/patterns/ptex \
|
|
texmf-dist/fonts/map/dvipdfmx/ptex \
|
|
texmf-dist/fonts/map/dvipdfmx/japanese-otf \
|
|
texmf-dist/fonts/map/dvipdfmx/jfontmaps \
|
|
texmf-dist/fonts/map/dvipdfmx/updmap/kanjix.map \
|
|
texmf-dist/fonts/cmap/uptex
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/texk/web2c
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ENV= OBSDCOMPAT_INCLUDES=-I${WRKSRC}/../../libs/obsdcompat
|
|
EXCLUDE_ENGINES= aleph etex luatex luajittex pdftex mf mf-nowin mp xetex tex
|
|
CONFIGURE_ARGS= ${EXCLUDE_ENGINES:S/^/--disable-/} \
|
|
--enable-ptex \
|
|
--enable-eptex \
|
|
--enable-uptex \
|
|
--enable-euptex \
|
|
--enable-web2c \
|
|
--enable-web-progs \
|
|
--with-system-kpathsea \
|
|
--with-kpathsea-includes=${LOCALBASE}/include \
|
|
--with-kpathsea-libdir=${LOCALBASE}/lib \
|
|
--with-system-ptexenc \
|
|
--with-ptexenc-includes=${LOCALBASE}/include \
|
|
--with-ptexenc-libdir=${LOCALBASE}/lib \
|
|
--with-system-zlib
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
MAKE_JOBS_UNSAFE= yes
|
|
TEX_FORMATS= ptex uptex
|
|
|
|
pre-configure:
|
|
for D in libs/xpdf; do \
|
|
cd ${WRKDIR}/${DISTNAME}/$$D && \
|
|
${SETENV} ${CONFIGURE_ENV} ${SH} ${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}; \
|
|
done
|
|
|
|
pre-install:
|
|
${CAT} ${DISTDIR}/${DIST_SUBDIR}/texlive-${DISTVERSION_TEXLIVE}-texmf${EXTRACT_SUFX} \
|
|
${EXTRACT_AFTER_ARGS_TEXMF}
|
|
|
|
.include <bsd.port.mk>
|