freebsd-ports/devel/cscout/files/patch-src_dest-install.sh
Rene Ladan 1da7ff85c5 devel/cscout: unexpire and update to 3.01
- Leave out the DOCS option for now because the required conversion
  of XML to HTML has not been figured out yet.
- No more dependency on compat6x
- Fetch sources from GitHub
- update license to GPLv3

PR:		242402
Submitted by:	Joachim Werner
Approved by:	maintainer (dds@)
MFH:		2020Q2
2020-05-24 15:21:57 +00:00

28 lines
980 B
Bash

--- src/dest-install.sh.orig 2019-12-02 12:30:03 UTC
+++ src/dest-install.sh
@@ -35,6 +35,7 @@ INSTALL_PREFIX="${1-/usr/local}"
TMPFILE="/tmp/$0-$$"
INC=../include
INCLUDE_DIR="$INSTALL_PREFIX/include/cscout"
+FINAL_INCLUDE_DIR="/usr/local/include/cscout"
# Permissions for header files
HMODE=644
@@ -52,7 +53,7 @@ install -m $HMODE $TMPFILE "$INCLUDE_DIR/stdc-defs.h"
# Generic C include path specification
cat <<EOF >$TMPFILE
-#pragma includepath "$INCLUDE_DIR/stdc"
+#pragma includepath "$LATER_INCLUDE_DIR/stdc"
/* Avoid unused include file warnings */
static void _cscout_dummy2(void) { _cscout_dummy2(); }
@@ -93,7 +94,7 @@ install -m $HMODE $TMPFILE "$INCLUDE_DIR/host-incs.h"
# Perl scripts (keep csmake.pl in the end)
for f in cswc.pl csmake.pl ; do
- sed "s|INSTALL_INCLUDE|$INCLUDE_DIR|g" $f >$TMPFILE
+ sed "s|INSTALL_INCLUDE|$LATER_INCLUDE_DIR|g" $f >$TMPFILE
install $TMPFILE "$INSTALL_PREFIX/bin/$(basename $f .pl)"
done
# Install as cscc