1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00
freebsd-ports/print/tex-dvipsk/Makefile
Muhammad Moinur Rahman 7a740b7c90
*/tex*: Update version 20230313=>20240312
- devel/tex-kpathsea: Update version 6.3.5=>6.4.0
- devel/tex-libtexlua: Update distinfo
- devel/tex-synctex: Update distinfo
- devel/tex-web2c: Update version 20230313=>20240312
- japanese/tex-ptex: Update distinfo
- print/tex-basic-engines: Update version 20230313=>20240312
- print/tex-dvipdfmx: Update version 20230313=>20240312
- print/tex-dvipsk: Update version 20230313=>20240312
- print/tex-jadetex: Update version 20230313=>20240312
- print/tex-luatex: Update version 20230313=>20240312
- print/tex-ptexenc: Update version 1.4.3=>1.4.6
- print/tex-xdvik: Bump REVISION
- print/tex-xetex: Update verison 0.99993=>20240312
- print/tex-xmltex: Update verison 1.9=>20240312
- print/texlive-base: Update version 20230313=>20240312
- print/texlive-docs: Update version 20230313=>20240312
- print/texlive-texmf-source: Update version 20230313=>20240312
- print/texlive-texmf: Update version 20230313=>20240312
- print/texlive-tlmgr: Update version 20230313=>20240312
- print/xpdfopen: Update version 0.86=>20240312

Sponsored by: Nepustil
2024-05-29 20:34:04 +02:00

79 lines
2.5 KiB
Makefile

PORTNAME= dvipsk
DISTVERSION= ${TEXLIVE_VERSION}
CATEGORIES= print
MASTER_SITES= TEX_CTAN/systems/texlive/${TEXLIVE_YEAR}/:source \
LOCAL/tex:texmf
PKGNAMEPREFIX= tex-
DISTNAME= texlive-${TEXLIVE_VERSION}-source
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:source \
${PKGNAMEPREFIX}${PORTNAME}-${TEXLIVE_VERSION}-freebsd${EXTRACT_SUFX}:texmf
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 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
WRKSRC= ${WRKDIR}/${DISTNAME}/texk/dvipsk
INFO= dvips
PLIST_FILES= bin/afm2tfm \
bin/dvips \
share/man/man1/afm2tfm.1.gz \
share/man/man1/dvips.1.gz
pre-install:
${TAR} -Jxf ${DISTDIR}/${DIST_SUBDIR}/${PKGNAMEPREFIX}${PORTNAME}-${TEXLIVE_VERSION}-freebsd${EXTRACT_SUFX} \
-C ${STAGEDIR}${PREFIX}/share \
--strip-components 1 --no-same-permission --no-same-owner
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}
.if defined(MAINTAINER_MODE)
_EXTRACT_FILES= 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}/${PKGNAMEPREFIX}${PORTNAME}-${TEXLIVE_VERSION}
_maintainer-extract:
${MAKE} clean
${MKDIR} ${_WRKSRC}
${TAR} -xf ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME_TEXMF}${EXTRACT_SUFX} \
-C ${_WRKSRC}$ \
--strip-components 1 --no-same-permission --no-same-owner \
${_EXCLUDE_FILES:S,^,--exclude ,} \
${_EXTRACT_FILES:S,^,${DISTNAME_TEXMF}/,}
_maintainer-dist: _maintainer-extract
${TAR} --options xz:compression-level=9 -Jcvf \
${WRKDIR}/${PKGNAMEPREFIX}${PORTNAME}-${TEXLIVE_VERSION}-freebsd.tar.xz \
-C ${WRKDIR} ${PKGNAMEPREFIX}${PORTNAME}-${TEXLIVE_VERSION}
scp ${WRKDIR}/${PKGNAMEPREFIX}${PORTNAME}-${TEXLIVE_VERSION}-freebsd.tar.xz \
bofh@freefall.freebsd.org://home/tex/public_distfiles/
.endif
.include <bsd.port.mk>