openbsd-ports/math/maple-share/Makefile

70 lines
1.7 KiB
Makefile
Raw Normal View History

# $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.
.include <bsd.own.mk>
COMMENT= libraries for maple V 5; commercial
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
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=
COPY_CMD=cp -f
2000-11-19 15:02:12 -05: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`;\
${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
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>