summaryrefslogtreecommitdiff
path: root/math/kseg/Makefile
blob: 96b2227916da7dbcede0a6fb2bf0baa4d9d8999a (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
# $NetBSD: Makefile,v 1.3 2010/06/13 22:44:56 wiz Exp $
#

DISTNAME=	kseg-0.403
PKGREVISION=	1
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

PKG_DESTDIR_SUPPORT=	user-destdir

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"