File otcl-install.patch of Package otcl
Index: Makefile.in
===================================================================
--- Makefile.in.orig
+++ Makefile.in
@@ -96,12 +96,12 @@ test: otclsh owish
dirs:
for d in $(INST_OWISH) $(INST_OTCLSH) $(INST_OLIB) $(INST_OLIBSH) $(INST_OINC); do \
- if [ ! -d $$d ]; then \
- mkdir -p $$d ;\
+ if [ ! -d $(DESTDIR)$$d ]; then \
+ mkdir -p $(DESTDIR)$$d ;\
fi;\
done
-install: owish otclsh libotcl$(SHLIB_SUFFIX) otcl.h dirs
+install: dirs owish otclsh libotcl$(SHLIB_SUFFIX) otcl.h
$(INSTALL) owish $(DESTDIR)$(INST_OWISH)
$(INSTALL) otclsh $(DESTDIR)$(INST_OTCLSH)
$(INSTALL) libotcl$(SHLIB_SUFFIX) $(DESTDIR)$(INST_OLIBSH)
Index: configure
===================================================================
--- configure.orig
+++ configure
@@ -7122,10 +7122,7 @@ fi
# decide where to install the shared library
#
-INST_OLIBSH="${prefix}/lib"
-if test -d ${prefix}/shlib ; then
- INST_OLIBSH="${prefix}/shlib"
-fi
+INST_OLIBSH="${libdir}"