mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-31 21:57:12 +00:00
edcf8b3594
Now try to use those variables everywhere around DIST* and PATCH* definitions as far as possible, for ease of the future updates and the neatness. Okay, 60% of `japanese' ports have been done. :)
94 lines
2.9 KiB
Makefile
94 lines
2.9 KiB
Makefile
# New ports collection makefile for: dvipsk + jpatch + vflib-patch
|
|
# Date created: 25 Aug 1997
|
|
# Whom: Makoto WATANABE <watanabe@zlab.phys.nagoya-u.ac.jp>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= dvipsk
|
|
PORTVERSION= 5.78a
|
|
PKGNAMESUFFIX= -vflib
|
|
CATEGORIES= japanese print
|
|
MASTER_SITES= ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/dvips/ \
|
|
ftp://ftp.center.osaka-u.ac.jp/CTAN/dviware/dvipsk/ \
|
|
ftp://ftp.riken.go.jp/pub/CTAN/dviware/dvipsk/ \
|
|
ftp://ftp.u-aizu.ac.jp/pub/tex/CTAN/dviware/dvipsk/ \
|
|
http://math.shinshu-u.ac.jp/~nakayama/howto/tex/
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
|
dvipsk-jpatch-p1.4d.tar.gz \
|
|
${PORTNAME}${PKGNAMESUFFIX}-1.1alpha.patch.tgz
|
|
|
|
MAINTAINER= watanabe@zlab.phys.nagoya-u.ac.jp
|
|
|
|
RUN_DEPENDS= ptex-common:${PORTSDIR}/japanese/ptex-common
|
|
LIB_DEPENDS= VFlib2.24:${PORTSDIR}/japanese/vflib
|
|
|
|
MANUAL_PACKAGE_BUILD= incompatible with other versions of dvipsk-*
|
|
|
|
DIST_SUBDIR= ptex
|
|
USE_GMAKE= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ENV= ac_cv_path_install="${INSTALL} -c -o ${BINOWN} -g ${BINGRP}"
|
|
MAKE_FLAGS= XCFLAGS="-I${PREFIX}/include" XLOADLIBES="-L${PREFIX}/lib"
|
|
SCRIPTS_ENV= MV=${MV} SED=${SED}
|
|
MAN1= dvips.1 afm2tfm.1
|
|
|
|
TEXMF= ${PREFIX}/share/texmf
|
|
DVIPSDIR= ${TEXMF}/dvips
|
|
TEXDIR= ${TEXMF}/tex
|
|
BINARIES= dvips afm2tfm
|
|
BASE_FILES= config.ps cmfonts.map cyrfonts.map eufonts.map lafonts.map
|
|
CONTRIB_DIRS= afm-extra bbfig configs psfig volker
|
|
CONTRIB_FILES= MakeTeXPK.pl PSTricks colorsep.pro config.proto crop.lpr \
|
|
timesmat.sty whichinpath afm-extra/*.ed bbfig/bb* \
|
|
configs/*[^g] psfig/README psfig/lprep* volker/*
|
|
PLAIN_MACROS= psfig/psfig.tex psfntmac/ps_plain.tex
|
|
LATEX209_MACROS=latex209/*.sty psfntmac/ps_lfonts.tex pspic/*
|
|
DOCS= ../README.jpatch ../README.vflib dvipsk/README \
|
|
dvipsk/dvips.texi dvipsk/dvips.help
|
|
|
|
pre-patch:
|
|
@${PATCH} -p -s -d ${WRKSRC} < ${WRKDIR}/dvipsk.patch
|
|
@${PATCH} -p -s -d ${WRKSRC} < ${WRKDIR}/dvipsk-vflib-1.1alpha.patch
|
|
|
|
post-build:
|
|
@(\
|
|
cd ${WRKSRC}/dvipsk/contrib ; \
|
|
../squeeze < colorsep.lpro > colorsep.pro \
|
|
)
|
|
|
|
post-install:
|
|
@for i in ${BINARIES} ; do \
|
|
strip ${PREFIX}/bin/$$i ; \
|
|
done
|
|
@for i in ${CONTRIB_DIRS} ; do \
|
|
${MKDIR} ${DVIPSDIR}/contrib/$$i ; \
|
|
done
|
|
@${MKDIR} ${TEXDIR}/latex209/dvips
|
|
@(\
|
|
cd ${WRKSRC}/dvipsk ; \
|
|
for i in ${BASE_FILES} ; do \
|
|
${INSTALL_DATA} $$i ${DVIPSDIR}/base ; \
|
|
done ; \
|
|
cd ${WRKSRC}/dvipsk/contrib ; \
|
|
for i in ${CONTRIB_FILES} ; do \
|
|
${INSTALL_DATA} $$i ${DVIPSDIR}/contrib/$$i ; \
|
|
done ; \
|
|
for i in ${PLAIN_MACROS} ; do \
|
|
${INSTALL_DATA} $$i ${TEXDIR}/plain/dvips ; \
|
|
done ; \
|
|
for i in ${LATEX209_MACROS} ; do \
|
|
${INSTALL_DATA} $$i ${TEXDIR}/latex209/dvips ; \
|
|
done \
|
|
)
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${PREFIX}/share/doc/dvips
|
|
@for i in ${DOCS} ; do \
|
|
${INSTALL_DATA} ${WRKSRC}/$$i ${PREFIX}/share/doc/dvips ; \
|
|
done
|
|
@${LN} -fs ${DVIPSDIR}/contrib ${PREFIX}/share/doc/dvips/contrib
|
|
.endif
|
|
@${CAT} ${PKGDIR}/MESSAGE
|
|
|
|
.include <bsd.port.mk>
|