mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-29 05:38:00 +00:00
77760fcb63
changed the license to the AGPL 3 in version 9.07 so print/ghostscript9-base is stuck at 9.06 which is almost 4 years old now. Fix the logic in Uses/ghostscript.mk so "agpl" is treated as a real version on its own instead of as a variant of other versions. Fix print/ghostscript9-agpl-base to install eps2write. Update math/asymptote to 2.37 to support newer Ghostscript. PR: 208159 Exp-run by: antoine Approved by: portmgr (antoine)
42 lines
1.1 KiB
Makefile
42 lines
1.1 KiB
Makefile
# Created by: ijliao
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= dvisvg
|
|
DISTVERSION= 0.7.1d
|
|
PORTREVISION= 8
|
|
CATEGORIES= print
|
|
MASTER_SITES= http://dvisvg.sourceforge.net/files/
|
|
|
|
MAINTAINER= hrs@FreeBSD.org
|
|
COMMENT= Converter from DVI to SVG
|
|
|
|
LICENSE= GPLv2
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}
|
|
USES= ghostscript:run
|
|
USE_TEX= base texmf texhash
|
|
ALL_TARGET= # empty
|
|
# workaround for svgfonts.c not including kpathsea/c-auto.h
|
|
CFLAGS+= -DHAVE_PROTOTYPES
|
|
MAKE_ARGS= CC="${CC} ${CFLAGS}" TARGETDIR=${PREFIX} \
|
|
LINC=${LOCALBASE}/include \
|
|
LLIB=${LOCALBASE}/lib \
|
|
BINDIR=${PREFIX}/bin \
|
|
CNFDIR=${PREFIX}/${TEXMFDIR}/dvisvg \
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e "s,/usr/share/texmf,${LOCALBASE}/${TEXMFDIR}," \
|
|
${WRKSRC}/version.h
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/dvisvg ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKSRC}/dvisvg.man \
|
|
${STAGEDIR}${MAN1PREFIX}/man/man1/dvisvg.1
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/${TEXMFDIR}/${PORTNAME}
|
|
.for file in dvisvg.map font2svg.enc font2svg.ps
|
|
${INSTALL_DATA} ${WRKSRC}/${file} \
|
|
${STAGEDIR}${PREFIX}/${TEXMFDIR}/${PORTNAME}
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|