Commercial mathematical package from the University of Waterloo.

Ported to show that the linux version works under OpenBSD.
One serious port for a change :)
This commit is contained in:
espie 1999-05-22 00:24:58 +00:00
parent d89fcf86b7
commit 2d1f4b077f
6 changed files with 198 additions and 0 deletions

72
math/maple/Makefile Normal file
View File

@ -0,0 +1,72 @@
# $OpenBSD: Makefile,v 1.1.1.1 1999/05/22 00:24:58 espie Exp $
# Original from: Marc Espie
# XXX This port installs in a somewhat unusual way.
# Directory where the maple CDROM was mounted
CDROM?=/cdrom
# where the basic distribution unpacks
MAPLE_DIR?=${PREFIX}/maple
DISTNAME= maple-5.5
CATEGORIES= maths
# if someone wants to buy the sparc version and check it, be my guest...
ONLY_FOR_ARCHS= i386
NO_CDROM= "Commercial"
MIRROR_DISTFILE= no
MAINTAINER= espie@cvs.openbsd.org
NO_PATCH= yes
NO_CONFIGURE= yes
NO_BUILD= yes
NO_PACKAGE= yes
# verify that it makes sense to install maple here
pre-fetch:
@${ECHO} "You must have LINUX_COMPAT in your kernel for this port"
# we only use the CD-Rom files for markers
DIST_SUBDIR=maple5.5
DISTFILES=readme install \
install_base/base.tar install_base/bin.tar install_base/license.tar \
install_bins/bin_ibm_intel_linux.tar
# and so, we don't extract anything by ourselves
# better than NO_EXTRACT, as this builds WRKDIR correctly for us.
EXTRACT_ONLY=
do-fetch:
@mkdir -p ${_DISTDIR}
@cd ${CDROM}; \
for file in ${DISTFILES}; do\
[ -f ${_DISTDIR}/$$file ] || \
if [ -f $$file ]; \
then\
mkdir -p ${_DISTDIR}/`dirname $$file`;\
ln -sf ${CDROM}/$$file ${_DISTDIR}/$$file;\
else\
${ECHO} "File $$file not found. Is your cdrom mounted as ${CDROM} ?";\
fi\
done
MAPLE_SCRIPTS=maple march mint updtsrc xmaple
do-install:
@mkdir ${MAPLE_DIR} || ${ECHO} "${MAPLE_DIR} already exists"
@cd ${MAPLE_DIR} && yes | ${_DISTDIR}/install
@${ECHO} "But this installation script does it for you"
@for file in ${MAPLE_SCRIPTS}; do\
sed -e 's,/usr/local/maple,${MAPLE_DIR},' ${MAPLE_DIR}/bin/$$file >${WRKDIR}/$$file; \
cp ${WRKDIR}/$$file ${MAPLE_DIR}/bin; \
ln -sf ${MAPLE_DIR}/bin/$$file ${PREFIX}/bin; \
done
@for file in ${MAPLE_DIR}/man/man1/*; do \
ln -s $$file ${PREFIX}/man/man1; \
done
@cd ${MAPLE_DIR} && patch -s <${PATCHDIR}/patch-aa && \
rm ${MAPLE_DIR}/bin/*.orig
.include <bsd.port.mk>

18
math/maple/files/md5 Normal file
View File

@ -0,0 +1,18 @@
MD5 (maple5.5/install) = ba9922668336b1d7cbba09841a97ed37
MD5 (maple5.5/install_base/base.tar) = 96b268b773155a3780f36fe66a4a263c
MD5 (maple5.5/install_base/bin.tar) = 666b67bc1754928d5e5071f63cb2028f
MD5 (maple5.5/install_base/license.tar) = b86e1d457ab0e0b037053b382e46a3cd
MD5 (maple5.5/install_bins/bin_ibm_intel_linux.tar) = e4e1a0dabbe0cc439d5e5711a46cbd28
MD5 (maple5.5/readme) = d40467c65df6dd436c0d2745281f0d5c
RMD160 (maple5.5/install) = f255ffbd9998c0edf53cd6a775c48c5bac9c3370
RMD160 (maple5.5/install_base/base.tar) = 834466239d89184cd54fe3bdc7422b9c75a201b7
RMD160 (maple5.5/install_base/bin.tar) = 2281e4d5d36936d44be5ff4104c0d7383950b13a
RMD160 (maple5.5/install_base/license.tar) = 0ba2494ae46175596bb266ad84485042414fc4e3
RMD160 (maple5.5/install_bins/bin_ibm_intel_linux.tar) = 5083c1c880349703e50623f2538d9cbd32dbfcdd
RMD160 (maple5.5/readme) = 2719b536c4e88a9d70f0b77a6d8a35158eb17258
SHA1 (maple5.5/install) = 0e16a3a4df5dbbc81354ca13c3887b43202adb33
SHA1 (maple5.5/install_base/base.tar) = 23a1a2194e79e4d9bedf6253fb3d8954c9048890
SHA1 (maple5.5/install_base/bin.tar) = 26ad617265b7f12f3541eba1a76bad9f896a969e
SHA1 (maple5.5/install_base/license.tar) = f60049a7e88203275c9d0d55eb01d17a38aecc93
SHA1 (maple5.5/install_bins/bin_ibm_intel_linux.tar) = 7e14ea8656d0e1c31074cda3f2d30bda163d1f6c
SHA1 (maple5.5/readme) = 9a05819a88dccf9c04bd07db2f291b0b21efeff0

View File

@ -0,0 +1,17 @@
--- bin/maple.system.type.orig Sat May 22 01:23:16 1999
+++ bin/maple.system.type Sat May 22 01:28:24 1999
@@ -17,6 +17,14 @@
# Now, determine if we support the current OS and version.
case $SYS_TYPE in
+ "OpenBSD")
+ SYS_ARCH=`echo $UNAME_INFO | awk ' { print $5 } '`
+ if [ $SYS_ARCH = "i386" ] ; then
+ MAPLE_BIN="bin_IBM_INTEL_LINUX"
+ else
+ MAPLE_BIN="FAIL"
+ fi
+ ;;
"SunOS")
if [ $SYS_VER -ge "5" ] ; then
# Solaris 2.x or above; identify architecture.

1
math/maple/pkg/COMMENT Normal file
View File

@ -0,0 +1 @@
algebraic and symbolic computations; commercial

7
math/maple/pkg/DESCR Normal file
View File

@ -0,0 +1,7 @@
Maple V.5 is a symbolic computation package developped at the University
of Waterloo. It's a bit outdated as far as programming languages go,
but it is very good for algebraic manipulations, integral calculus, and
so on.
This port uses the commercial `single user' version for i386-Linux. It can
probably be extended easily for other versions.

83
math/maple/pkg/PLIST Normal file
View File

@ -0,0 +1,83 @@
bin/maple
bin/march
bin/mint
bin/updtsrc
man/man1/maple.1
man/man1/march.1
man/man1/mint.1
man/man1/updtsrc.1
maple/README
maple/X11_defaults/MapleVR5
maple/X11_defaults/XKeysymDB
maple/afm/Courier
maple/afm/Courier-Bold
maple/afm/Courier-BoldOblique
maple/afm/Courier-Oblique
maple/afm/Helvetica
maple/afm/Helvetica-Bold
maple/afm/Helvetica-BoldOblique
maple/afm/Helvetica-Oblique
maple/afm/Symbol
maple/afm/Times-Bold
maple/afm/Times-BoldItalic
maple/afm/Times-Italic
maple/afm/Times-Roman
maple/bin/TestMaple
maple/bin/maple
maple/bin/maple.system.type
maple/bin/march
maple/bin/mint
maple/bin/updt3to4
maple/bin/updtsrc
maple/bin/xmaple
maple/bin_IBM_INTEL_LINUX/lks
maple/bin_IBM_INTEL_LINUX/mapleTTY
maple/bin_IBM_INTEL_LINUX/march
maple/bin_IBM_INTEL_LINUX/matlink.so
maple/bin_IBM_INTEL_LINUX/mint
maple/bin_IBM_INTEL_LINUX/mplotchar
maple/bin_IBM_INTEL_LINUX/mplotcps
maple/bin_IBM_INTEL_LINUX/mplotgif
maple/bin_IBM_INTEL_LINUX/mplothpgl
maple/bin_IBM_INTEL_LINUX/mplothplj
maple/bin_IBM_INTEL_LINUX/mplotjpeg
maple/bin_IBM_INTEL_LINUX/mplotpcx
maple/bin_IBM_INTEL_LINUX/mplotps
maple/bin_IBM_INTEL_LINUX/mplottek
maple/bin_IBM_INTEL_LINUX/mplotx11
maple/bin_IBM_INTEL_LINUX/updt3to4
maple/bin_IBM_INTEL_LINUX/updtsrc
maple/bin_IBM_INTEL_LINUX/xmaplev5
maple/bin_IBM_INTEL_LINUX/xmaplev5.res
maple/etc/cmdline.txt
maple/etc/inputs2e/maple2e.sty
maple/etc/latex.txt
maple/etc/march.txt
maple/etc/mint.txt
maple/etc/share.txt
maple/etc/updtsrc.txt
maple/lib/cmds
maple/lib/maple.hdb
maple/lib/maple.ind
maple/lib/maple.lib
maple/license/...
maple/license/.config
maple/man/man1/maple.1
maple/man/man1/march.1
maple/man/man1/mint.1
maple/man/man1/updtsrc.1
maple/test/l00
maple/test/l00.r
@dirrm maple/bin
@dirrm maple/bin_IBM_INTEL_LINUX
@dirrm maple/X11_defaults
@dirrm maple/afm
@dirrm maple/etc/inputs2e
@dirrm maple/etc
@dirrm maple/lib
@dirrm maple/license
@dirrm maple/man/man1
@dirrm maple/man
@dirrm maple/test
@dirrm maple/update
@dirrm maple