2011-10-21 17:40:49 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.31 2011/10/21 21:40:49 espie Exp $
|
1999-05-21 20:24:58 -04: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= algebraic and symbolic computations; commercial
|
2001-05-05 21:58:40 -04:00
|
|
|
|
1999-05-21 20:24:58 -04:00
|
|
|
# where the basic distribution unpacks
|
|
|
|
MAPLE_DIR?=${PREFIX}/maple
|
2000-03-13 13:43:33 -05:00
|
|
|
TRUEMAPLE_DIR?=${TRUEPREFIX}/maple
|
1999-05-21 20:24:58 -04:00
|
|
|
|
2000-02-10 04:38:03 -05:00
|
|
|
DISTNAME= maple-5.5
|
2010-11-27 06:54:53 -05:00
|
|
|
REVISION= 2
|
2000-02-10 04:38:03 -05:00
|
|
|
CATEGORIES= math
|
1999-05-21 20:24:58 -04:00
|
|
|
|
2010-11-22 04:20:34 -05:00
|
|
|
RUN_DEPENDS= emulators/redhat/libc5
|
2000-10-29 12:29:31 -05:00
|
|
|
|
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
|
2000-02-13 14:13:22 -05:00
|
|
|
|
2000-10-09 20:40:20 -04:00
|
|
|
|
2009-04-13 08:27:38 -04:00
|
|
|
FETCH_MANUALLY = "Mount the maple cdrom somewhere and make copy MAPLE_CDROM=mnt_point"
|
2000-03-13 13:43:33 -05:00
|
|
|
PERMIT_DISTFILES_CDROM= Commercial
|
|
|
|
PERMIT_DISTFILES_FTP= Commercial
|
|
|
|
PERMIT_PACKAGE_FTP= Commercial
|
|
|
|
PERMIT_PACKAGE_CDROM= Commercial
|
1999-05-21 20:24:58 -04:00
|
|
|
|
2000-10-09 20:40:20 -04:00
|
|
|
MAINTAINER= Marc Espie <espie@openbsd.org>
|
1999-05-21 20:24:58 -04:00
|
|
|
|
2000-02-10 04:38:03 -05:00
|
|
|
WRKDIST= ${WRKDIR}
|
2010-10-18 16:52:05 -04:00
|
|
|
USE_GROFF = Yes
|
1999-05-21 20:24:58 -04:00
|
|
|
|
|
|
|
# we only use the CD-Rom files for markers
|
|
|
|
DIST_SUBDIR=maple5.5
|
2009-04-13 08:27:38 -04:00
|
|
|
DISTFILES= readme install \
|
1999-05-21 20:24:58 -04:00
|
|
|
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=
|
|
|
|
|
2001-07-30 09:12:10 -04:00
|
|
|
COPY_CMD=cp -f
|
|
|
|
|
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
|
|
|
|
|
2009-04-13 08:27:38 -04:00
|
|
|
copy:
|
1999-09-22 06:18:26 -04:00
|
|
|
@mkdir -p ${FULLDISTDIR}
|
2000-10-24 12:28:04 -04:00
|
|
|
@cd ${MAPLE_CDROM}; \
|
1999-05-21 20:24:58 -04:00
|
|
|
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`;\
|
2001-07-30 09:12:10 -04:00
|
|
|
${COPY_CMD} ${MAPLE_CDROM}/$$file ${FULLDISTDIR}/$$file;\
|
1999-05-21 20:24:58 -04:00
|
|
|
else\
|
2000-10-24 12:28:04 -04:00
|
|
|
echo "File $$file not found. Is your cdrom mounted as ${MAPLE_CDROM} ?";\
|
1999-05-21 20:24:58 -04:00
|
|
|
fi\
|
|
|
|
done
|
|
|
|
|
|
|
|
MAPLE_SCRIPTS=maple march mint updtsrc xmaple
|
|
|
|
|
|
|
|
do-install:
|
2000-02-10 20:09:59 -05:00
|
|
|
@mkdir -p ${MAPLE_DIR} || echo "${MAPLE_DIR} already exists"
|
1999-09-22 06:18:26 -04:00
|
|
|
@cd ${MAPLE_DIR} && yes | ${FULLDISTDIR}/install
|
2000-02-10 04:38:03 -05:00
|
|
|
@echo "But this installation script does it for you"
|
1999-05-21 20:24:58 -04:00
|
|
|
@for file in ${MAPLE_SCRIPTS}; do\
|
2000-03-13 13:43:33 -05:00
|
|
|
sed -e 's,/usr/local/maple,${TRUEMAPLE_DIR},' ${MAPLE_DIR}/bin/$$file >${WRKDIST}/$$file; \
|
2000-02-10 04:38:03 -05:00
|
|
|
cp ${WRKDIST}/$$file ${MAPLE_DIR}/bin; \
|
2000-03-13 13:43:33 -05:00
|
|
|
ln -sf ${TRUEMAPLE_DIR}/bin/$$file ${PREFIX}/bin; \
|
1999-05-21 20:24:58 -04:00
|
|
|
done
|
|
|
|
@for file in ${MAPLE_DIR}/man/man1/*; do \
|
2000-03-13 13:43:33 -05:00
|
|
|
ln -s ${TRUEMAPLE_DIR}/man/man1/`basename $$file` ${PREFIX}/man/man1; \
|
1999-05-21 20:24:58 -04:00
|
|
|
done
|
2000-10-22 11:28:18 -04:00
|
|
|
@cd ${MAPLE_DIR} && cat ${PATCHDIR}/install-*| 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
|
2005-10-01 10:39:52 -04:00
|
|
|
cd ${PREFIX} && find . -user 292 -print|xargs -r chown ${SHAREOWN}:${SHAREGRP}
|
|
|
|
cd ${PREFIX} && find . -user 400 -print|xargs -r chown ${BINOWN}:${BINGRP}
|
1999-05-21 20:24:58 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|