2012-12-12 12:12:54 +01:00
|
|
|
# Created by: keith@FreeBSD.org
|
2002-05-12 20:40:55 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= gap
|
2014-03-10 19:53:23 +01:00
|
|
|
PORTVERSION= 4.7.4.${GAP_DISTDATE}
|
2002-05-12 20:40:55 +02:00
|
|
|
CATEGORIES= math
|
2014-02-07 18:52:57 +01:00
|
|
|
MASTER_SITES= ftp://ftp.gap-system.org/pub/gap/gap47/tar.bz2/ \
|
2005-09-04 08:06:30 +02:00
|
|
|
ftp://ftp.stack.nl/pub/users/johans/gap/ \
|
2014-02-07 18:52:57 +01:00
|
|
|
ftp://ftp.gap-system.org/pub/gap/gap47/old/
|
2012-06-16 20:32:54 +02:00
|
|
|
DISTNAME= ${GAP_VERSION}p${PORTVERSION:R:E}_${GAP_DISTTIME}
|
2002-05-12 20:40:55 +02:00
|
|
|
|
2010-02-23 19:07:14 +01:00
|
|
|
MAINTAINER= johans@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= GAP is a system for computational discrete algebra
|
2002-05-12 20:40:55 +02:00
|
|
|
|
2014-02-07 18:52:57 +01:00
|
|
|
LIB_DEPENDS= libgmp.so:${PORTSDIR}/math/gmp
|
|
|
|
|
2012-06-16 20:32:54 +02:00
|
|
|
USE_BZIP2= yes
|
2013-08-14 14:50:28 +02:00
|
|
|
USES= gmake
|
2012-06-16 20:32:54 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2014-02-07 18:52:57 +01:00
|
|
|
CONFIGURE_ARGS+=--with-gmp=${LOCALBASE}
|
2012-06-16 20:32:54 +02:00
|
|
|
ALL_TARGET= default
|
2006-04-07 16:04:18 +02:00
|
|
|
|
2013-08-14 14:50:28 +02:00
|
|
|
MAKE_JOBS_UNSAFE=yes
|
|
|
|
|
2012-06-16 20:32:54 +02:00
|
|
|
GAP_VERSION= ${PORTNAME}${PORTVERSION:R:R:S/./r/} # gap4r5
|
2014-03-10 19:53:23 +01:00
|
|
|
GAP_DISTTIME= 2014_02_20-01_21
|
2012-06-16 20:32:54 +02:00
|
|
|
GAP_DISTDATE= ${GAP_DISTTIME:C/-.*//:S/_//g}
|
2004-12-06 09:07:18 +01:00
|
|
|
GAP_LIBDIR= ${PREFIX}/lib/${GAP_VERSION}
|
2012-06-16 20:32:54 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${GAP_VERSION}
|
2005-02-15 09:52:48 +01:00
|
|
|
PLIST_FILES= bin/gap
|
2004-12-06 09:07:18 +01:00
|
|
|
|
2002-05-12 20:40:55 +02:00
|
|
|
do-install:
|
2014-02-07 18:52:57 +01:00
|
|
|
(${SED} -e "s:GAP_DIR=.*:GAP_DIR=${GAP_LIBDIR}:g" -e "s:GAP_PRG=.*:GAP_PRG=gap:g" ${WRKSRC}/bin/gap.sh > ${STAGEDIR}${PREFIX}/bin/gap; \
|
|
|
|
${CHMOD} 755 ${STAGEDIR}${PREFIX}/bin/gap; )
|
|
|
|
@${MKDIR} ${STAGEDIR}${GAP_LIBDIR}/bin
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/bin/*/gap ${STAGEDIR}${GAP_LIBDIR}/bin
|
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/bin/*/gac ${STAGEDIR}${GAP_LIBDIR}/bin
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/sysinfo.gap ${STAGEDIR}${GAP_LIBDIR}
|
2002-05-12 20:40:55 +02:00
|
|
|
.for subdir in doc etc grp lib pkg prim small trans tst
|
2014-02-07 18:52:57 +01:00
|
|
|
@${CP} -R ${WRKSRC}/${subdir} ${STAGEDIR}${GAP_LIBDIR}/
|
2002-05-12 20:40:55 +02:00
|
|
|
.endfor
|
|
|
|
|
2005-02-15 09:52:48 +01:00
|
|
|
post-install:
|
2014-02-07 18:52:57 +01:00
|
|
|
@${FIND} ${STAGEDIR}${GAP_LIBDIR} -type d -empty -delete
|
|
|
|
@${FIND} ${STAGEDIR}${GAP_LIBDIR} ! -type d | \
|
|
|
|
${SED} 's,${STAGEDIR}${PREFIX}/,,' >> ${TMPPLIST}
|
|
|
|
@${FIND} ${STAGEDIR}${GAP_LIBDIR} -type d -depth | \
|
|
|
|
${SED} 's,${STAGEDIR}${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
|
2005-02-15 09:52:48 +01:00
|
|
|
|
2012-06-16 20:32:54 +02:00
|
|
|
.include <bsd.port.mk>
|