pkgsrc/math/gap/Makefile

59 lines
1.7 KiB
Makefile

# $NetBSD: Makefile,v 1.20 2006/02/05 23:10:01 joerg Exp $
#
DISTNAME= gap4r3
PKGNAME= gap-4.3.5
PKGREVISION= 1
CATEGORIES= math
MASTER_SITES= ftp://ftp-gap.dcs.st-and.ac.uk/pub/gap/gap4/ \
ftp://ftp.math.rwth-aachen.de/pub/gap/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} \
fix4r3n5.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_fix4r3n5.tar.gz= ${MASTER_SITES:=bugfixes/}
LICENSE= no-commercial-use
USE_TOOLS+= gtar
GNU_CONFIGURE= yes
CONFIGURE_ENV+= PREFIX=${PREFIX:Q}
BUILD_TARGET= default
GAP_DIRECTORY= ${PREFIX}/lib/gap4.3
GAP_PLATFORM= ${MACHINE_GNU_PLATFORM}-${CC}
PLIST_SUBST+= GAP_PLATFORM=${GAP_PLATFORM:Q}
INSTALLATION_DIRS= bin
post-extract:
( cd ${WRKSRC} && ${GTAR} zxf ${DISTDIR}/fix4r3n5.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
${INSTALL_DATA} ${WRKSRC}/description5 \
${GAP_DIRECTORY}
${INSTALL_DATA} ${WRKSRC}/sysinfo.gap \
${GAP_DIRECTORY}
for I in cnf doc etc grp lib pkg prim small trans tst; do \
${CP} -R ${WRKSRC}/$$I ${GAP_DIRECTORY}; \
done
.include "../../mk/bsd.pkg.mk"