blob: 2fbf03d706f6cb12e5260fb16b45e77b6dd691b2 (
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
59
60
61
62
|
# Created by: ijliao
# $FreeBSD$
PORTNAME= eukleides
PORTVERSION= 1.5.3
PORTREVISION= 4
CATEGORIES= math
MASTER_SITES= http://www.eukleides.org/files/
MAINTAINER= ashish@FreeBSD.org
COMMENT= A Euclidean geometry drawing language
LIB_DEPENDS= readline.6:${PORTSDIR}/devel/readline
RUN_DEPENDS= pstoedit:${PORTSDIR}/graphics/pstoedit
USE_BZIP2= yes
USE_TEX= latex
USES= bison gettext iconv
USE_GMAKE= yes
MAN1= eukleides.1 euktoeps.1 euktopdf.1 euktopst.1 euktotex.1
.ifndef NOPORTDOCS
BUILD_DEPENDS= pdflatex:${PORTSDIR}/print/teTeX-base
PORTDOCS= de.pdf fr.pdf
INFO= eukleides
.endif
.ifndef NOPORTEXAMPLES
PORTEXAMPLES= greenwich.euk sundial.euk vonkoch.euk
.endif
post-patch:
${GREP} -lR "#!/bin/bash" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
's|#!/bin/bash|#!/bin/sh|g'
${GREP} -lR "ginstall-info" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
's|ginstall-info|install-info|g'
${GREP} -lR "%%[[:alpha:]]\+%%" ${WRKSRC} |${XARGS} ${REINPLACE_CMD} \
-e "s|%%PREFIX%%|${PREFIX}|g" \
-e "s|%%LOCALBASE%%|${LOCALBASE}|g" \
-e "s|%%EXAMPLESDIR%%|${EXAMPLESDIR}|g" \
-e "s|%%DOCSDIR%%|${DOCSDIR}|g"
.ifdef NOPORTDOCS
${REINPLACE_CMD} -e '/^install:/ s/install_doc//g' \
-e '/^all:/ s/doc//g' ${WRKSRC}/Makefile
.endif
.ifdef NOPORTEXAMPLES
${REINPLACE_CMD} -e 's/install_exm$$//g' ${WRKSRC}/Makefile
.endif
pre-install:
.ifndef NOPORTEXAMPLES
${MKDIR} ${EXAMPLESDIR}
.endif
post-install:
for i in euktoeps euktopdf euktotex; do \
${RM} ${PREFIX}/bin/$${i}.bak; \
done
.include <bsd.port.mk>
|