Option to copy maple distfiles instead of linking files, since I always
get hosed with the CDRom at the office when reinstalling all ports.
This commit is contained in:
parent
84d943f2b5
commit
67710ce3fa
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.2 2001/05/06 01:58:57 lebel Exp $
|
||||
# $OpenBSD: Makefile,v 1.3 2001/07/30 13:12:11 espie Exp $
|
||||
# Original from: Marc Espie
|
||||
# XXX This port installs in a somewhat unusual way.
|
||||
|
||||
@ -43,6 +43,12 @@ DISTFILES=unix/share.tar readunix
|
||||
# better than NO_EXTRACT, as this builds WRKDIR correctly for us.
|
||||
EXTRACT_ONLY=
|
||||
|
||||
COPY_MAPLE_DISTFILES?=No
|
||||
.if ${COPY_MAPLE_DISTFILES:L} == "no"
|
||||
COPY_CMD=ln -sf
|
||||
.else
|
||||
COPY_CMD=cp -f
|
||||
.endif
|
||||
|
||||
do-fetch:
|
||||
@mkdir -p ${FULLDISTDIR}
|
||||
@ -52,7 +58,7 @@ do-fetch:
|
||||
if [ -f $$file ]; \
|
||||
then\
|
||||
mkdir -p ${FULLDISTDIR}/`dirname $$file`;\
|
||||
ln -sf ${MAPLE_CDROM}/$$file ${FULLDISTDIR}/$$file;\
|
||||
${COPY_CMD} ${MAPLE_CDROM}/$$file ${FULLDISTDIR}/$$file;\
|
||||
else\
|
||||
echo "File $$file not found. Is your cdrom mounted as ${MAPLE_CDROM} ?";\
|
||||
fi\
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.16 2001/05/06 01:58:53 lebel Exp $
|
||||
# $OpenBSD: Makefile,v 1.17 2001/07/30 13:12:10 espie Exp $
|
||||
# Original from: Marc Espie
|
||||
# XXX This port installs in a somewhat unusual way.
|
||||
|
||||
@ -47,6 +47,13 @@ install_bins/bin_ibm_intel_linux.tar
|
||||
# better than NO_EXTRACT, as this builds WRKDIR correctly for us.
|
||||
EXTRACT_ONLY=
|
||||
|
||||
COPY_MAPLE_DISTFILES?=No
|
||||
.if ${COPY_MAPLE_DISTFILES:L} == "no"
|
||||
COPY_CMD=ln -sf
|
||||
.else
|
||||
COPY_CMD=cp -f
|
||||
.endif
|
||||
|
||||
post-extract:
|
||||
ln -sf ${FILESDIR}/resolv_display.c ${WRKSRC}
|
||||
echo "all: resolv_display" >${WRKSRC}/Makefile
|
||||
@ -61,7 +68,7 @@ do-fetch:
|
||||
if [ -f $$file ]; \
|
||||
then\
|
||||
mkdir -p ${FULLDISTDIR}/`dirname $$file`;\
|
||||
ln -sf ${MAPLE_CDROM}/$$file ${FULLDISTDIR}/$$file;\
|
||||
${COPY_CMD} ${MAPLE_CDROM}/$$file ${FULLDISTDIR}/$$file;\
|
||||
else\
|
||||
echo "File $$file not found. Is your cdrom mounted as ${MAPLE_CDROM} ?";\
|
||||
fi\
|
||||
|
Loading…
Reference in New Issue
Block a user