summaryrefslogtreecommitdiff
path: root/math/gap/Makefile
blob: 11b9eaaad047a0bef5f1bdcb8ccac6f9ee4f6183 (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
47
48
49
50
51
52
53
54
# $NetBSD: Makefile,v 1.2 2002/10/08 04:49:41 cjep Exp $
#

DISTNAME=	gap4r3
PKGNAME=	gap-4.3
PKGREVISION=	1
CATEGORIES=	math
MASTER_SITES=	ftp://ftp-gap.dcs.st-and.ac.uk/pub/gap/gap4/ \
		ftp://ftp.math.rwth-aachen.de/pub/gap4/ \
		ftp://pell.anu.edu.au/pub/algebra/gap4/ \
		ftp://ftp.ccs.neu.edu/pub/mirrors/ftp-gap.dcs.st-and.ac.uk/pub/gap/gap4/
DISTFILES=		${DISTNAME}${EXTRACT_SUFX}	\
			fix4r3n3.tar.gz

MAINTAINER=	cjep@netbsd.org
HOMEPAGE=	http://www.gap-system.org/
COMMENT=	Computational group theory and discrete algebra language

EXTRACT_ONLY=		${DISTNAME}${EXTRACT_SUFX}
SITES_fix4r3n3.tar.gz=	${MASTER_SITES:=bugfixes/}

LICENSE=	no-commercial-use

GNU_CONFIGURE=	yes
CONFIGURE_ENV+=	PREFIX=${PREFIX}
ALL_TARGET=	default

GAP_DIRECTORY=	${PREFIX}/lib/gap4.3
GAP_PLATFORM=	${MACHINE_GNU_PLATFORM}-cc

post-extract:
	( cd ${WRKSRC} && ${GTAR} zxf ${DISTDIR}/fix4r3n3.tar.gz )

do-install:
	${INSTALL_PROGRAM_DIR} ${GAP_DIRECTORY}
	${INSTALL_PROGRAM_DIR} ${GAP_DIRECTORY}/bin
	${INSTALL_PROGRAM_DIR} ${GAP_DIRECTORY}/bin/${GAP_PLATFORM}
	${INSTALL_PROGRAM} ${WRKSRC}/bin/${GAP_PLATFORM}/gap		\
				${GAP_DIRECTORY}/bin/${GAP_PLATFORM}
	${INSTALL_SCRIPT} ${WRKSRC}/bin/${GAP_PLATFORM}/gac		\
				${GAP_DIRECTORY}/bin/${GAP_PLATFORM}
	${INSTALL_SCRIPT} ${WRKSRC}/bin/gap.sh 				\
				${PREFIX}/bin/gap${PKGVERSION}
	${INSTALL_DATA} ${WRKSRC}/description3 				\
				${GAP_DIRECTORY}
	${LN} -sf ${PREFIX}/bin/gap${PKGVERSION} ${PREFIX}/bin/gap
	${INSTALL_DATA} ${WRKSRC}/sysinfo.gap				\
				${GAP_DIRECTORY}

	for I in doc etc grp lib pkg small tst; do			\
		${CP} -R ${WRKSRC}/$$I ${GAP_DIRECTORY};		\
	done

.include "../../mk/bsd.pkg.mk"