# $OpenBSD: Makefile,v 1.3 2004/12/26 14:01:36 sturm Exp $

COMMENT=		"cyrillic PostScript Type1 fonts to use with TeX"

DISTNAME=		pscyr-0.4c_patch2
PKGNAME=		${DISTNAME}p0
CATEGORIES=		russian print

MAINTAINER=		Alexander Yurchenko <grange@openbsd.org>

# Free redistribution is permitted without fonts files modifications
PERMIT_PACKAGE_CDROM=	"may not sell"
PERMIT_PACKAGE_FTP=	Yes
PERMIT_DISTFILES_CDROM=	"may not sell"
PERMIT_DISTFILES_FTP=	Yes

MASTER_SITES=		ftp://ftp.vsu.ru/pub/tex/font-packs/pscyr/
DISTFILES=		PSCyr-0.4c-patch2-tex.tar.gz \
			PSCyr-0.4c-patch2-type1.tar.gz

RUN_DEPENDS=		:teTeX_base->=2.0:print/teTeX/base

NO_BUILD=		Yes
NO_REGRESS=		Yes
PKG_ARCH=		*

TEXMF_DIR=		${PREFIX}/share/texmf-local

do-install:
	${INSTALL_DATA_DIR} ${TEXMF_DIR}/dvips/base
	${INSTALL_DATA_DIR} ${TEXMF_DIR}/dvips/config
	${INSTALL_DATA_DIR} ${TEXMF_DIR}/tex/latex/pscyr
	${INSTALL_DATA_DIR} ${TEXMF_DIR}/fonts/tfm/public/pscyr
	${INSTALL_DATA_DIR} ${TEXMF_DIR}/fonts/vf/public/pscyr
	${INSTALL_DATA_DIR} ${TEXMF_DIR}/fonts/type1/public/pscyr
	${INSTALL_DATA_DIR} ${TEXMF_DIR}/fonts/afm/public/pscyr
	${INSTALL_DATA_DIR} ${TEXMF_DIR}/doc/fonts/pscyr
	${INSTALL_DATA} ${WRKDIR}/dvips/base/* ${TEXMF_DIR}/dvips/base
	${INSTALL_DATA} ${WRKDIR}/dvips/config/* \
	    ${TEXMF_DIR}/dvips/config
	${INSTALL_DATA} ${WRKDIR}/tex/latex/pscyr/* \
	    ${TEXMF_DIR}/tex/latex/pscyr
	${INSTALL_DATA} ${WRKDIR}/fonts/tfm/public/pscyr/* \
	    ${TEXMF_DIR}/fonts/tfm/public/pscyr
	${INSTALL_DATA} ${WRKDIR}/fonts/vf/public/pscyr/* \
	    ${TEXMF_DIR}/fonts/vf/public/pscyr
	${INSTALL_DATA} ${WRKDIR}/fonts/type1/public/pscyr/* \
	    ${TEXMF_DIR}/fonts/type1/public/pscyr
	${INSTALL_DATA} ${WRKDIR}/fonts/afm/public/pscyr/* \
	    ${TEXMF_DIR}/fonts/afm/public/pscyr
	${INSTALL_DATA} ${WRKDIR}/{LICENSE,doc/README.koi,doc/PROBLEMS} \
	    ${TEXMF_DIR}/doc/fonts/pscyr

.include <bsd.port.mk>
