summaryrefslogtreecommitdiff
path: root/math/eukleides/Makefile
blob: 18c450926ad7ccf81476c912f5a9a4d293f28ee1 (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
# $NetBSD: Makefile,v 1.26 2015/11/25 12:51:41 jperkin Exp $

DISTNAME=	eukleides-1.5.4
PKGREVISION=	3
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

SUBST_CLASSES+=		getopt
SUBST_STAGE.getopt=	pre-configure
SUBST_MESSAGE.getopt=	Replacing getopt.
SUBST_FILES.getopt=	bash/euktoeps
SUBST_SED.getopt+=	-e 's,@GETOPT@,${LOCALBASE}/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"