freebsd-ports/print/mftrace/Makefile

53 lines
1.3 KiB
Makefile
Raw Normal View History

# Created by: ijliao
# $FreeBSD$
PORTNAME= mftrace
PORTVERSION= 1.2.18
2012-06-01 07:26:28 +02:00
PORTREVISION= 1
CATEGORIES= print
2011-07-07 23:09:44 +02:00
MASTER_SITES= http://lilypond.org/download/sources/mftrace/ \
LOCAL/nivit/${PORTNAME}/
MAINTAINER= nivit@FreeBSD.org
2003-02-20 20:00:52 +01:00
COMMENT= Scalable PostScript (Type1) Fonts for MetaFont
RUN_DEPENDS= t1asm:${PORTSDIR}/print/t1utils \
fontforge:${PORTSDIR}/print/fontforge
.if defined(WITH_AUTOTRACE)
BUILD_DEPENDS+= autotrace:${PORTSDIR}/graphics/autotrace
RUN_DEPENDS+= autotrace:${PORTSDIR}/graphics/autotrace
.else
BUILD_DEPENDS+= potrace:${PORTSDIR}/graphics/potrace
RUN_DEPENDS+= potrace:${PORTSDIR}/graphics/potrace
.endif
# Python3 ready
USE_PYTHON= yes
USE_TEX= base texmf
GNU_CONFIGURE= yes
USES= gmake
MAKEFILE= GNUmakefile
PLIST_FILES= \
bin/gf2pbm \
bin/mftrace \
%%PYTHON_SITELIBDIR%%/afm.py \
%%PYTHON_SITELIBDIR%%/tfm.py
.if !defined(NO_INSTALL_MANPAGES)
PLIST_FILES+= man/man1/mftrace.1.gz
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/gf2pbm ${STAGEDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/mftrace ${STAGEDIR}${PREFIX}/bin
.if !defined(NO_INSTALL_MANPAGES)
${INSTALL_MAN} ${WRKSRC}/mftrace.1 ${STAGEDIR}${MANPREFIX}/man/man1
.endif
@${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}
${INSTALL_SCRIPT} ${WRKSRC}/tfm.py ${STAGEDIR}${PYTHON_SITELIBDIR}
${INSTALL_SCRIPT} ${WRKSRC}/afm.py ${STAGEDIR}${PYTHON_SITELIBDIR}
.include <bsd.port.mk>