summaryrefslogtreecommitdiff
path: root/math/eukleides/Makefile
blob: 89c67ad1df615b8166a23a44bfe1f97e1dd18b89 (plain)
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
# $NetBSD: Makefile,v 1.24 2013/10/29 02:37:56 minskim Exp $

DISTNAME=	eukleides-1.5.4
PKGREVISION=	2
CATEGORIES=	math
MASTER_SITES=	http://www.eukleides.org/files/
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	ryoon@NetBSD.org
HOMEPAGE=	http://www.eukleides.org/
COMMENT=	Euclidean geometry drawing language
LICENSE=	gnu-gpl-v3

DEPENDS+=	getopt-[0-9]*:../../misc/getopt

USE_TOOLS+=	bash:run bison gmake lex makeinfo yacc
INFO_FILES=	yes

REPLACE_BASH=	bash/*

BUILDLINK_TRANSFORM+=	l:ncurses:curses

FIND_PREFIX:=		GETOPTDIR=getopt
.include "../../mk/find-prefix.mk"

SUBST_CLASSES+=		getopt
SUBST_STAGE.getopt=	pre-configure
SUBST_MESSAGE.getopt=	Replacing getopt.
SUBST_FILES.getopt=	bash/euktoeps
SUBST_SED.getopt+=	-e 's,@GETOPT@,${GETOPTDIR}/bin/getopt,'

INSTALL_MAKE_FLAGS=	${MAKE_FLAGS}					\
			PREFIX=${DESTDIR}${PREFIX}			\
			BIN_DIR=${DESTDIR}${PREFIX}/bin			\
			INFO_DIR=${DESTDIR}${PREFIX}/${PKGINFODIR}	\
			DOC_DIR=${DESTDIR}${PREFIX}/share/eukleides	\
			MAN_DIR=${DESTDIR}${PREFIX}/${PKGMANDIR}/man1	\
			TEX_DIR=${DESTDIR}${PREFIX}/share/texmf-dist/tex/latex/eukleides

pre-install:
	${FIND} ${WRKSRC} -type f -name '*.orig' -exec ${RM} -f {} \;

.include "../../mk/readline.buildlink3.mk"
.include "../../mk/curses.buildlink3.mk"
.include "../../print/kpathsea/texmf.mk"
.include "../../mk/bsd.pkg.mk"