1999-10-29 06:57:16 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.4 1999/10/29 10:57:16 espie Exp $
|
1999-05-21 20:24:58 -04:00
|
|
|
# Original from: Marc Espie
|
|
|
|
# XXX This port installs in a somewhat unusual way.
|
|
|
|
|
|
|
|
# Directory where the maple CDROM was mounted
|
|
|
|
CDROM?=/cdrom
|
1999-09-22 06:18:26 -04:00
|
|
|
NEED_VERSION=1.116
|
1999-05-21 20:24:58 -04:00
|
|
|
|
|
|
|
# where the basic distribution unpacks
|
|
|
|
MAPLE_DIR?=${PREFIX}/maple
|
|
|
|
|
|
|
|
DISTNAME= maple-5.5
|
1999-10-29 06:57:16 -04:00
|
|
|
CATEGORIES= math
|
1999-05-21 20:24:58 -04:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
1999-06-18 11:32:16 -04:00
|
|
|
NO_WRKSUBDIR= yes
|
1999-05-21 20:24:58 -04:00
|
|
|
NO_PATCH= yes
|
|
|
|
NO_CONFIGURE= 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=
|
|
|
|
|
1999-06-18 11:32:16 -04:00
|
|
|
post-extract:
|
|
|
|
ln -sf ${FILESDIR}/resolv_display.c ${WRKSRC}
|
|
|
|
echo "all: resolv_display" >${WRKSRC}/Makefile
|
|
|
|
|
|
|
|
ALL_TARGET=resolv_display
|
|
|
|
|
1999-05-21 20:24:58 -04:00
|
|
|
do-fetch:
|
1999-09-22 06:18:26 -04:00
|
|
|
@mkdir -p ${FULLDISTDIR}
|
1999-05-21 20:24:58 -04:00
|
|
|
@cd ${CDROM}; \
|
|
|
|
for file in ${DISTFILES}; do\
|
1999-09-22 06:18:26 -04:00
|
|
|
[ -f ${FULLDISTDIR}/$$file ] || \
|
1999-05-21 20:24:58 -04:00
|
|
|
if [ -f $$file ]; \
|
|
|
|
then\
|
1999-09-22 06:18:26 -04:00
|
|
|
mkdir -p ${FULLDISTDIR}/`dirname $$file`;\
|
|
|
|
ln -sf ${CDROM}/$$file ${FULLDISTDIR}/$$file;\
|
1999-05-21 20:24:58 -04:00
|
|
|
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"
|
1999-09-22 06:18:26 -04:00
|
|
|
@cd ${MAPLE_DIR} && yes | ${FULLDISTDIR}/install
|
1999-05-21 20:24:58 -04:00
|
|
|
@${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
|
1999-06-18 11:32:16 -04:00
|
|
|
@cd ${MAPLE_DIR} && cat ${PATCHDIR}/patch-*| patch -s && \
|
1999-05-21 20:24:58 -04:00
|
|
|
rm ${MAPLE_DIR}/bin/*.orig
|
1999-06-18 11:32:16 -04:00
|
|
|
@${INSTALL_PROGRAM} ${WRKBUILD}/resolv_display ${MAPLE_DIR}/bin
|
1999-05-21 20:24:58 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|