pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/math/octave-current substitute in the complete path to...
details: https://anonhg.NetBSD.org/pkgsrc/rev/ffe93c7f8c04
branches: trunk
changeset: 484070:ffe93c7f8c04
user: dmcmahill <dmcmahill%pkgsrc.org@localhost>
date: Wed Nov 24 00:54:10 2004 +0000
description:
substitute in the complete path to the C and C++ compilers to the mkoctfile
script. This is needed if you want to use mkoctfile once the package is
installed. For example, on NetBSD-1.6* systems, it is important to point
to the gcc3 package tools instead of the base system compilers.
diffstat:
math/octave-current/Makefile | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diffs (28 lines):
diff -r 21d4bb2b5ea9 -r ffe93c7f8c04 math/octave-current/Makefile
--- a/math/octave-current/Makefile Wed Nov 24 00:20:23 2004 +0000
+++ b/math/octave-current/Makefile Wed Nov 24 00:54:10 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.35 2004/10/03 00:12:57 tv Exp $
+# $NetBSD: Makefile,v 1.36 2004/11/24 00:54:10 dmcmahill Exp $
#
DISTNAME= octave-${OCTAVE_VER}
@@ -57,6 +57,18 @@
${FIND} ${WRKSRC}/doc -type f -name '*.info*' -exec ${RM} -f {} \;
${MKDIR} ${WRKSRC}/src/pic
+# substitute in the real path to various bits of the toolchain because
+# mkoctfile will be used potentially by users and it needs to point
+# at the same compilers as were used in building octave
+post-build:
+ ${MV} ${WRKSRC}/mkoctfile ${WRKSRC}/mkoctfile.bak
+ ${SED} \
+ -e 's;"${CC}";"${CCPATH}";g' \
+ -e 's;"${CXX}";"${CXXPATH}";g' \
+ -e 's;"${FC}";"${FCPATH}";g' \
+ ${WRKSRC}/mkoctfile.bak > ${WRKSRC}/mkoctfile
+ ${CHMOD} a+x ${WRKSRC}/mkoctfile
+
post-install:
.for f in ${LIBOCTAVE_INFO}
${INSTALL_DATA} ${WRKSRC}/doc/liboctave/$f ${PREFIX}/info
Home |
Main Index |
Thread Index |
Old Index