blob: 8230563797b8594f8234f6540c641fae7f41b443 (
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
# New ports collection makefile for: gap
# Date created: 28 Apr, 2002
# Whom: keith@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= gap
PORTVERSION= 4.4.7.${GAP_PKGDATE}
CATEGORIES= math
MASTER_SITES= ftp://ftp.gap-system.org/pub/gap/gap4/tar.bz2/ \
ftp://ftp.stack.nl/pub/users/johans/gap/ \
ftp://ftp.gap-system.org/pub/gap/gap4/old/
DISTFILES= packages-${GAP_PKGTIME}.tar.bz2 \
gap4r4p7.tar.bz2 \
xtom1r1p2.tar.bz2
DIST_SUBDIR= gap
MAINTAINER= johans@stack.nl
COMMENT= GAP is a system for computational discrete algebra
OPTIONS= COMPRESSED_TOMLIB "Compress tomlib files" On \
ACE "Build binaries for ace" Off \
COHOMOLO "Build binaries for cohomolo" Off \
EDIM "Build binaries for edim" Off \
EXAMPLE "Build binaries for example" Off \
GRAPE "Build binaries for grape" Off \
KBMAG "Build binaries for kbmag" Off \
OPENMATH "Build binaries for openmath" Off \
PARGAP "Build binaries for pargap" Off \
XGAP "Build binaries for xgap" Off
#todo anupq fplsa/guava/nq (malloc.h build error) qaos
.include <bsd.port.pre.mk>
GAP_VERSION= gap4r4
GAP_PKGTIME= 2006_05_11-20_30_UTC
GAP_PKGDATE= ${GAP_PKGTIME:C/-.*//:S/_//g}
GAP_WRKSRC= ${WRKSRC}/${GAP_VERSION}
GAP_LIBDIR= ${PREFIX}/lib/${GAP_VERSION}
PLIST_FILES= bin/gap
do-extract:
(${MKDIR} ${WRKSRC}; \
cd ${WRKSRC}; \
${TAR} xyf ${DISTDIR}/${DIST_SUBDIR}/gap4r4p7.tar.bz2; \
${TAR} xyf ${DISTDIR}/${DIST_SUBDIR}/xtom1r1p2.tar.bz2 ; \
cd ${GAP_WRKSRC}/pkg; \
${TAR} xyf ${DISTDIR}/${DIST_SUBDIR}/packages-${GAP_PKGTIME}.tar.bz2 )
post-patch:
@${REINPLACE_CMD} -e "/^CC=/d" ${GAP_WRKSRC}/Makefile.in
do-configure:
(cd ${GAP_WRKSRC}; ./configure)
do-build:
(cd ${GAP_WRKSRC}; make COPTS="${CFLAGS}")
post-build:
.if defined(WITH_COMPRESSED_TOMLIB)
(cd ${GAP_WRKSRC}/pkg/tomlib/data; ${SH} -c 'for i in *; do ${GZIP_CMD} $${i};done' )
.endif
.if defined(WITH_ACE)
(cd ${GAP_WRKSRC}/pkg/ace; ./configure ../..; make )
.endif
.if defined(WITH_COHOMOLO)
(cd ${GAP_WRKSRC}/pkg/cohomolo; ./configure ../..; make )
.endif
.if defined(WITH_EDIM)
(cd ${GAP_WRKSRC}/pkg/edim; ./configure ../..; make )
.endif
.if defined(WITH_EXAMPLE)
(cd ${GAP_WRKSRC}/pkg/example; ./configure ../..; make )
.endif
.if defined(WITH_GRAPE)
(cd ${GAP_WRKSRC}/pkg/grape; ./configure ../..; make linux-gcc )
.endif
.if defined(WITH_KBMAG)
(cd ${GAP_WRKSRC}/pkg/kbmag; ./configure ../..; make )
.endif
.if defined(WITH_OPENMATH)
(cd ${GAP_WRKSRC}/pkg/openmath/OMCv1.3c/src/; ./configure; make; cd ../..; ./configure ../../; make )
.endif
.if defined(WITH_PARGAP)
(cd ${GAP_WRKSRC}/pkg/pargap; ./configure ../..; make )
.endif
.if defined(WITH_XGAP)
(cd ${GAP_WRKSRC}/pkg/xgap; ./configure ; make )
.endif
do-install:
(${SED} -e "s:GAP_DIR=.*:GAP_DIR=${GAP_LIBDIR}:g" -e "s:GAP_PRG=.*:GAP_PRG=gap:g" ${GAP_WRKSRC}/bin/gap.sh > ${PREFIX}/bin/gap; \
${CHMOD} 755 ${PREFIX}/bin/gap; )
@${MKDIR} ${GAP_LIBDIR} ${GAP_LIBDIR}/bin
@${INSTALL_PROGRAM} ${GAP_WRKSRC}/bin/*/gap ${GAP_LIBDIR}/bin
@${INSTALL_SCRIPT} ${GAP_WRKSRC}/bin/*/gac ${GAP_LIBDIR}/bin
@${INSTALL_DATA} ${GAP_WRKSRC}/sysinfo.gap ${GAP_LIBDIR}
.for subdir in doc etc grp lib pkg prim small trans tst
@${CP} -R ${GAP_WRKSRC}/${subdir} ${GAP_LIBDIR}/
.endfor
post-install:
@${FIND} ${GAP_LIBDIR} -type d -empty -delete
@${FIND} ${GAP_LIBDIR} ! -type d | \
${SED} 's,${PREFIX}/,,' >> ${TMPPLIST}
@${FIND} ${GAP_LIBDIR} -type d -depth | \
${SED} 's,${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
.include <bsd.port.post.mk>
|