2009-04-13 08:27:38 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.9 2009/04/13 12:27:39 espie Exp $
|
2000-11-19 15:02:12 -05:00
|
|
|
# Original from: Marc Espie
|
|
|
|
# XXX This port installs in a somewhat unusual way.
|
|
|
|
|
2001-07-30 09:15:24 -04:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2007-09-15 14:44:36 -04:00
|
|
|
COMMENT= libraries for maple V 5; commercial
|
2001-05-05 21:58:40 -04:00
|
|
|
|
2000-11-19 15:02:12 -05:00
|
|
|
# where the basic distribution unpacks
|
|
|
|
MAPLE_DIR?=${PREFIX}/maple
|
|
|
|
TRUEMAPLE_DIR?=${TRUEPREFIX}/maple
|
|
|
|
|
|
|
|
DISTNAME= mapleshare-5.5
|
|
|
|
CATEGORIES= math
|
|
|
|
|
|
|
|
# if someone wants to buy the sparc version and check it, be my guest...
|
|
|
|
|
|
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
|
|
|
|
|
2009-04-13 08:27:38 -04:00
|
|
|
FETCH_MANUALLY = "Mount the maple cdrom somewhere and make copy MAPLE_CDROM=mnt_point"
|
2000-11-19 15:02:12 -05:00
|
|
|
PERMIT_DISTFILES_CDROM= Commercial
|
|
|
|
PERMIT_DISTFILES_FTP= Commercial
|
|
|
|
PERMIT_PACKAGE_FTP= Commercial
|
|
|
|
PERMIT_PACKAGE_CDROM= Commercial
|
|
|
|
|
|
|
|
MAINTAINER= Marc Espie <espie@openbsd.org>
|
|
|
|
|
|
|
|
WRKDIST= ${WRKDIR}
|
|
|
|
|
|
|
|
# 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=unix/share.tar readunix
|
|
|
|
|
|
|
|
# and so, we don't extract anything by ourselves
|
|
|
|
# better than NO_EXTRACT, as this builds WRKDIR correctly for us.
|
|
|
|
EXTRACT_ONLY=
|
|
|
|
|
2001-07-30 09:12:10 -04:00
|
|
|
COPY_CMD=cp -f
|
2000-11-19 15:02:12 -05:00
|
|
|
|
2009-04-13 08:27:38 -04:00
|
|
|
copy:
|
2000-11-19 15:02:12 -05:00
|
|
|
@mkdir -p ${FULLDISTDIR}
|
|
|
|
@cd ${MAPLE_CDROM}; \
|
|
|
|
for file in ${DISTFILES}; do\
|
|
|
|
[ -f ${FULLDISTDIR}/$$file ] || \
|
|
|
|
if [ -f $$file ]; \
|
|
|
|
then\
|
|
|
|
mkdir -p ${FULLDISTDIR}/`dirname $$file`;\
|
2001-07-30 09:12:10 -04:00
|
|
|
${COPY_CMD} ${MAPLE_CDROM}/$$file ${FULLDISTDIR}/$$file;\
|
2000-11-19 15:02:12 -05:00
|
|
|
else\
|
|
|
|
echo "File $$file not found. Is your cdrom mounted as ${MAPLE_CDROM} ?";\
|
|
|
|
fi\
|
|
|
|
done
|
|
|
|
|
2002-06-09 01:31:40 -04:00
|
|
|
RUN_DEPENDS=:maple-*:math/maple
|
2000-11-19 15:02:12 -05:00
|
|
|
NO_BUILD=Yes
|
|
|
|
|
|
|
|
pre-fake:
|
|
|
|
@mkdir -p ${MAPLE_DIR}
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
@cd ${MAPLE_DIR} && tar xf ${FULLDISTDIR}/unix/share.tar
|
|
|
|
@cp ${FULLDISTDIR}/readunix ${MAPLE_DIR}/share/README
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|