blob: e7ae960c980127fc7c643456112fe482538fa38b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# ex:ts=8
# Ports collection makefile for: dvisvg
# Date created: Apr 15, 2005
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= dvisvg
DISTVERSION= 0.7.1d
PORTREVISION= 5
CATEGORIES= print
MASTER_SITES= http://dvisvg.sourceforge.net/files/
MAINTAINER= ports@FreeBSD.org
COMMENT= Converter from DVI to SVG
BUILD_DEPENDS= ${MKTEXLSR}:${PORTSDIR}/print/teTeX-base
RUN_DEPENDS= ${MKTEXLSR}:${PORTSDIR}/print/teTeX-base \
${TEXMFLOCAL_LSR}:${PORTSDIR}/print/tex-texmflocal
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}
USE_GHOSTSCRIPT_RUN= yes
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}/${TEXMFLOCAL}/dvisvg \
TEXMFLOCAL= share/texmf-local
TEXMFLOCAL_LSR= ${LOCALBASE}/${TEXMFLOCAL}/ls-R
MKTEXLSR= ${LOCALBASE}/bin/mktexlsr
PLIST_FILES= bin/dvisvg
MAN1= dvisvg.1
post-patch:
@${REINPLACE_CMD} -e "s,/usr/share/texmf,${LOCALBASE}/${TEXMFLOCAL}," ${WRKSRC}/version.h
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/dvisvg ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/dvisvg.man ${MAN1PREFIX}/man/man1/dvisvg.1
@${MKDIR} ${PREFIX}/${TEXMFLOCAL}/${PORTNAME}
.for file in dvisvg.map font2svg.enc font2svg.ps
${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/${TEXMFLOCAL}/${PORTNAME}
@${ECHO_CMD} "${TEXMFLOCAL}/${PORTNAME}/${file}" >> ${TMPPLIST}
.endfor
@${ECHO_CMD} "@dirrm ${TEXMFLOCAL}/${PORTNAME}" >> ${TMPPLIST}
@${ECHO_CMD} '@exec ${MKTEXLSR}' >> ${TMPPLIST}
@${ECHO_CMD} '@unexec ${MKTEXLSR}' >> ${TMPPLIST}
post-install:
@${MKTEXLSR}
.include <bsd.port.mk>
|