summaryrefslogtreecommitdiff
path: root/math/xgap/Makefile
blob: f361a41786041570d2bee0fa108b13b89d0f0101 (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
# $NetBSD: Makefile,v 1.17 2007/02/22 19:26:47 wiz Exp $
#

DISTNAME=	xgap4r16
PKGNAME=	xgap-4.16
PKGREVISION=	2
CATEGORIES=	math x11
MASTER_SITES=	ftp://ftp-gap.dcs.st-and.ac.uk/pub/gap/gap4/share/
EXTRACT_SUFX=	.zoo

MAINTAINER=	cjep@NetBSD.org
HOMEPAGE=	http://www.gap-system.org/Share/xgap.html
COMMENT=	GUI for GAP

WRKSRC=		${WRKDIR}/${GAP_PKG_NAME}
GNU_CONFIGURE=	YES
BUILD_TARGET=	default

CONFIGURE_ENV+=	GAP_DIRECTORY=${GAP_DIRECTORY:Q}

GAP_PKG_NAME=	xgap

INSTALLATION_DIRS=	bin

pre-configure:
	(cd ${WRKDIR} && ${LN} -s ${GAP_DIRECTORY}/cnf cnf)

do-install:
	${INSTALL_PROGRAM_DIR} ${GAP_PKG_DIRECTORY}/bin/${GAP_PLATFORM}
	${INSTALL_PROGRAM} ${WRKSRC}/bin/${GAP_PLATFORM}/xgap		\
				${GAP_PKG_DIRECTORY}/bin/${GAP_PLATFORM}
	${INSTALL_SCRIPT} ${WRKSRC}/bin/xgap.sh				\
				${PREFIX}/bin/xgap
	${INSTALL_DATA} ${WRKSRC}/init.g ${GAP_PKG_DIRECTORY}
	for I in doc examples htm lib; do				\
		cd ${WRKSRC} && ${PAX} -rw $$I ${GAP_PKG_DIRECTORY};	\
		done

.include "../../math/gap/gap.package.mk"
.include "../../x11/libXaw/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"