1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
freebsd-ports/print/font2svg/Makefile
Koop Mast 68f883edfc Convert code in bsd.port.mk for USE_GHOSTSCRIPT* to USES=ghostscript.
Add GHOSTSCRIPT_DEFAULT to bsd.default-versions.mk for easy version selection.
Arguments supported: <empty>, build, run, nox11 and agpl

PR:		201201 (exp-run)
Approved by:	portmgr (mat@)
Exp run by:	antione@ (previous patch)
Differential Revision:	https://reviews.freebsd.org/D2938
2015-07-16 20:53:28 +00:00

32 lines
814 B
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= font2svg
PORTVERSION= 1.0
PORTREVISION= 4
CATEGORIES= print
MASTER_SITES= http://www.gdv.uni-hannover.de/~peinecke/font2svg/
MAINTAINER= ports@FreeBSD.org
COMMENT= All font to svg-font converter
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash
USES= ghostscript:run
NO_BUILD= yes
PLIST_FILES= bin/font2svg %%DATADIR%%/encodings %%DATADIR%%/font2svg.ps
post-patch:
@${REINPLACE_CMD} -e "s|^#!/bin/bash|#!/usr/bin/env bash| ; \
s|^font2svg_home=.*$$|font2svg_home=${DATADIR}|" \
${WRKSRC}/font2svg.sh
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/font2svg.sh ${STAGEDIR}${PREFIX}/bin/font2svg
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/encodings ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/font2svg.ps ${STAGEDIR}${DATADIR}
.include <bsd.port.mk>