File tclcl-install.patch of Package tclcl

Index: Makefile.in
===================================================================
--- Makefile.in.orig
+++ Makefile.in
@@ -186,10 +186,13 @@ embedded-console.cc: $(CONSOLE_FILES) $(
 	$(TCL2C) et_console $(CONSOLE_FILES) > embedded-console.cc
 
 install: force
-	$(INSTALL) -m 644 *.h @prefix@/include
-	$(INSTALL) tcl2c++ @prefix@/bin
-	$(INSTALL) $(LIB_TCLCL) @prefix@/lib
-	$(RANLIB)  @prefix@/lib/$(LIB_TCLCL)
+	$(INSTALL) -d $(DESTDIR)@includedir@
+	$(INSTALL) -m 644 *.h $(DESTDIR)@includedir@
+	$(INSTALL) -d $(DESTDIR)@bindir@
+	$(INSTALL) tcl2c++ $(DESTDIR)@bindir@
+	$(INSTALL) -d $(DESTDIR)@libdir@
+	$(INSTALL) $(LIB_TCLCL) $(DESTDIR)@libdir@
+	ln -s $(LIB_TCLCL) $(DESTDIR)@libdir@/libtclcl.so
 
 # libTcl is no longer installed as of 13-Nov-99
 #	-test -f @prefix@/lib/libTcl.a && rm -f @prefix@/lib/libTcl.a || true
openSUSE Build Service is sponsored by