summaryrefslogtreecommitdiffstats
path: root/math/gap/Makefile
blob: 5d5d551236d47d27a6a9fcf1fc3dd37fff612131 (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
# New ports collection makefile for:	gap
# Date created:				28 Apr, 2002
# Whom:					keith@FreeBSD.org
#
# $FreeBSD$
#

PORTNAME=	gap
PORTVERSION=	4.3
PORTREVISION=	1
CATEGORIES=	math
MASTER_SITES=	ftp://ftp-gap.dcs.st-and.ac.uk/pub/gap/gap4/
DISTFILES=	gap4r3.tar.gz \
		accpkg4r3.tar.gz deppkg4r3.tar.gz xtom4r3.tar.gz
DIST_SUBDIR=	gap

MAINTAINER=	ports@FreeBSD.org
COMMENT=	GAP is a system for computational discrete algebra

NO_CDROM=	"Don't sell for profit."

.include <bsd.port.pre.mk>

do-extract:
	(${MKDIR} ${WRKSRC}; \
	cd ${WRKSRC}; \
	${TAR} xzf ${DISTDIR}/${DIST_SUBDIR}/gap4r3.tar.gz; \
	${TAR} xzf ${DISTDIR}/${DIST_SUBDIR}/xtom4r3.tar.gz ; \
	cd ${WRKSRC}/gap4r3/pkg; \
	${TAR} xzf ${DISTDIR}/${DIST_SUBDIR}/accpkg4r3.tar.gz; \
	${TAR} xzf ${DISTDIR}/${DIST_SUBDIR}/deppkg4r3.tar.gz )

do-configure:
	(cd ${WRKSRC}/gap4r3; ./configure)

do-build:
	(cd ${WRKSRC}/gap4r3; make)

do-install:
	(${SED} -e "s:GAP_DIR=.*:GAP_DIR=${PREFIX}/lib/gap4r3:g" -e "s:GAP_PRG=.*:GAP_PRG=gap:g" ${WRKSRC}/gap4r3/bin/gap.sh > ${PREFIX}/bin/gap; \
	${CHMOD} 755 ${PREFIX}/bin/gap; )
	@${MKDIR} ${PREFIX}/lib/gap4r3 ${PREFIX}/lib/gap4r3/bin
	@${INSTALL_PROGRAM} ${WRKSRC}/gap4r3/bin/*/gap ${PREFIX}/lib/gap4r3/bin
	@${INSTALL_SCRIPT} ${WRKSRC}/gap4r3/bin/*/gac ${PREFIX}/lib/gap4r3/bin
.for subdir in doc etc grp lib pkg prim small trans tst
	@${CP} -R ${WRKSRC}/gap4r3/${subdir} ${PREFIX}/lib/gap4r3/
.endfor

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud