2002-05-12 18:40:55 +00:00
|
|
|
# New ports collection makefile for: gap
|
|
|
|
# Date created: 28 Apr, 2002
|
|
|
|
# Whom: keith@FreeBSD.org
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gap
|
2005-05-15 09:49:34 +00:00
|
|
|
PORTVERSION= 4.4.5.${GAP_PKGDATE}
|
2002-05-12 18:40:55 +00:00
|
|
|
CATEGORIES= math
|
2005-04-08 19:50:15 +00:00
|
|
|
MASTER_SITES= ftp://ftp.gap-system.org/pub/gap/gap4/tar.bz2/ \
|
|
|
|
ftp://ftp.gap-system.org/pub/gap/gap4/old/
|
|
|
|
DISTFILES= packages-${GAP_PKGTIME}.tar.bz2 \
|
2005-05-15 09:49:34 +00:00
|
|
|
gap4r4p5.tar.bz2 \
|
|
|
|
xtom1r1p2.tar.bz2
|
2002-05-12 18:40:55 +00:00
|
|
|
DIST_SUBDIR= gap
|
|
|
|
|
2004-12-06 08:07:18 +00:00
|
|
|
MAINTAINER= johans@stack.nl
|
2003-03-07 06:14:21 +00:00
|
|
|
COMMENT= GAP is a system for computational discrete algebra
|
2002-05-12 18:40:55 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-12-06 08:07:18 +00:00
|
|
|
GAP_VERSION= gap4r4
|
2005-05-15 09:49:34 +00:00
|
|
|
GAP_PKGTIME= 2005_05_04-17_55_UTC
|
2005-04-08 19:50:15 +00:00
|
|
|
GAP_PKGDATE= ${GAP_PKGTIME:C/-.*//:S/_//g}
|
2004-12-06 08:07:18 +00:00
|
|
|
GAP_WRKSRC= ${WRKSRC}/${GAP_VERSION}
|
|
|
|
GAP_LIBDIR= ${PREFIX}/lib/${GAP_VERSION}
|
2005-02-15 08:52:48 +00:00
|
|
|
PLIST_FILES= bin/gap
|
2004-12-06 08:07:18 +00:00
|
|
|
|
2002-05-12 18:40:55 +00:00
|
|
|
do-extract:
|
|
|
|
(${MKDIR} ${WRKSRC}; \
|
|
|
|
cd ${WRKSRC}; \
|
2005-05-15 09:49:34 +00:00
|
|
|
${TAR} xyf ${DISTDIR}/${DIST_SUBDIR}/gap4r4p5.tar.bz2; \
|
|
|
|
${TAR} xyf ${DISTDIR}/${DIST_SUBDIR}/xtom1r1p2.tar.bz2 ; \
|
2004-12-06 08:07:18 +00:00
|
|
|
cd ${GAP_WRKSRC}/pkg; \
|
2005-04-08 19:50:15 +00:00
|
|
|
${TAR} xyf ${DISTDIR}/${DIST_SUBDIR}/packages-${GAP_PKGTIME}.tar.bz2 )
|
2002-05-12 18:40:55 +00:00
|
|
|
|
|
|
|
do-configure:
|
2004-12-06 08:07:18 +00:00
|
|
|
(cd ${GAP_WRKSRC}; ./configure)
|
2002-05-12 18:40:55 +00:00
|
|
|
|
|
|
|
do-build:
|
2005-05-15 19:08:33 +00:00
|
|
|
(cd ${GAP_WRKSRC}; make COPTS="${CFLAGS}")
|
2002-05-12 18:40:55 +00:00
|
|
|
|
|
|
|
do-install:
|
2004-12-06 08:07:18 +00:00
|
|
|
(${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; \
|
2002-05-12 18:40:55 +00:00
|
|
|
${CHMOD} 755 ${PREFIX}/bin/gap; )
|
2004-12-06 08:07:18 +00:00
|
|
|
@${MKDIR} ${GAP_LIBDIR} ${GAP_LIBDIR}/bin
|
|
|
|
@${INSTALL_PROGRAM} ${GAP_WRKSRC}/bin/*/gap ${GAP_LIBDIR}/bin
|
|
|
|
@${INSTALL_SCRIPT} ${GAP_WRKSRC}/bin/*/gac ${GAP_LIBDIR}/bin
|
2005-02-15 08:52:48 +00:00
|
|
|
@${INSTALL_DATA} ${GAP_WRKSRC}/sysinfo.gap ${GAP_LIBDIR}
|
2002-05-12 18:40:55 +00:00
|
|
|
.for subdir in doc etc grp lib pkg prim small trans tst
|
2004-12-06 08:07:18 +00:00
|
|
|
@${CP} -R ${GAP_WRKSRC}/${subdir} ${GAP_LIBDIR}/
|
2002-05-12 18:40:55 +00:00
|
|
|
.endfor
|
|
|
|
|
2005-02-15 08:52:48 +00:00
|
|
|
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}
|
|
|
|
|
2002-05-12 18:40:55 +00:00
|
|
|
.include <bsd.port.post.mk>
|