summaryrefslogtreecommitdiff
path: root/math/kseg/Makefile
blob: 2b7d0d67e850c4167bcd821275d119cd6611ff11 (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
# $NetBSD: Makefile,v 1.10 2013/06/04 22:16:38 tron Exp $
#

DISTNAME=	kseg-0.403
PKGREVISION=	7
CATEGORIES=	math
MASTER_SITES=	http://www.mit.edu/~ibaran/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.mit.edu/~ibaran/kseg.html
COMMENT=	Interactive geometry program
LICENSE=	gnu-gpl-v2

WRKSRC=		${WRKDIR}/kseg
USE_LANGUAGES=	c++
INSTALLATION_DIRS+= bin share/kseg

PREV_PKGPATH=	misc/kseg

KSEGLANG=	${PREFIX}/share/kseg/lang
SUBST_CLASSES+= prefix
SUBST_STAGE.prefix=	pre-configure
SUBST_FILES.prefix=	main.cpp
SUBST_VARS.prefix=	KSEGLANG

do-configure:
	cd ${WRKSRC} && env ${CONFIGURE_ENV} ${QTDIR}/bin/qmake

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/kseg ${DESTDIR}${PREFIX}/bin
	${INSTALL_DATA_DIR} ${DESTDIR}${KSEGLANG}
	for f in ${WRKSRC}/*.qm ${WRKSRC}/*.html; do \
		${INSTALL_DATA} $$f ${DESTDIR}${KSEGLANG}; \
	done
	${CP} -r ${WRKSRC}/examples ${DESTDIR}${PREFIX}/share/kseg
	${CHMOD} 644 ${DESTDIR}${PREFIX}/share/kseg/examples/*

.include "../../x11/qt3-libs/buildlink3.mk"
.include "../../x11/qt3-tools/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"