d85e9410c0
Itcl 4.0.0 is bundled. XXX: but not works well yet. 2.0p1 04/16/2004 Compilation of the file libdesk/tixImgXpm.c fails when using a Tk version lower than 8.3. 2.0p2 04/20/2004 Some Linux distributions are using newer "unofficial" versions of Incr Tcl (Itcl). Though TkDesk 2.0 works with the official Itcl 3.2.1 release, these newer Itcl installations disable backwards compatibility for some older Itcl syntax that TkDesk still requires. The typical symptom of this problem is this error message when TkDesk is started: Error in startup script: can't rename "itcl_class": command doesn't exist...
62 lines
2.5 KiB
Text
62 lines
2.5 KiB
Text
$NetBSD: patch-ab,v 1.3 2014/02/22 07:53:47 obache Exp $
|
|
|
|
--- Makefile.in.orig 2004-04-14 22:31:17.000000000 +0000
|
|
+++ Makefile.in
|
|
@@ -28,7 +28,7 @@ exec_prefix = @exec_prefix@
|
|
INSTALL_ROOT =
|
|
|
|
# Directory from which TkDesk will reference its library of Tcl scripts:
|
|
-TKDESK_LIBRARY = @libdir@/TkDesk
|
|
+TKDESK_LIBRARY = @libdir@/tkdesk
|
|
|
|
# Path name to use when installing library scripts:
|
|
SCRIPT_INSTALL_DIR = $(INSTALL_ROOT)$(TKDESK_LIBRARY)
|
|
@@ -50,7 +50,7 @@ MAN1_INSTALL_DIR = $(MAN_INSTALL_DIR)/ma
|
|
|
|
# To change the compiler switches, for example to change from -O
|
|
# to -g, change the following line:
|
|
-CC_OPTS = -O -DUSE_OLD_IMAGE -DUSE_NON_CONST
|
|
+CC_OPTS = @CFLAGS@ -DUSE_OLD_IMAGE -DUSE_NON_CONST
|
|
|
|
# To change the linker switches, for example to add -s,
|
|
# change the following line:
|
|
@@ -173,28 +173,29 @@ tkdesk_script:
|
|
rm_tkdesk_script:
|
|
@rm -f tkdesk
|
|
|
|
-install: tkdesksh client rm_tkdesk_script tkdesk_script dirs
|
|
- @chmod +x install-sh
|
|
+install: tkdesksh client rm_tkdesk_script tkdesk_script
|
|
@echo "=== Installing the executables..."
|
|
- @for f in tkdesksh tkdesk tkdeskclient/tkdeskclient tools/pauseme tools/ed-tkdesk tools/cd-tkdesk tools/od-tkdesk tools/op-tkdesk tools/pop-tkdesk; do \
|
|
+ @for f in tkdesksh tkdeskclient/tkdeskclient; do \
|
|
echo "installing $$f" ;\
|
|
- rm -f $(BIN_INSTALL_DIR)/`basename $$f` ;\
|
|
- $(INSTALL_PROGRAM) $$f $(BIN_INSTALL_DIR) ;\
|
|
+ $(BSD_INSTALL_PROGRAM) $$f $(BIN_INSTALL_DIR) ;\
|
|
+ done
|
|
+ @for f in tkdesk tools/pauseme tools/ed-tkdesk tools/cd-tkdesk tools/od-tkdesk tools/op-tkdesk tools/pop-tkdesk; do \
|
|
+ echo "installing $$f" ;\
|
|
+ $(BSD_INSTALL_SCRIPT) $$f $(BIN_INSTALL_DIR) ;\
|
|
done
|
|
@echo "=== Installing TkDesk's library..."
|
|
- @cd ./tcldesk; tar cf - * | (cd $(SCRIPT_INSTALL_DIR); tar xvf -)
|
|
- @cd ..
|
|
+ $(BSD_INSTALL_DATA_DIR) $(SCRIPT_INSTALL_DIR)
|
|
+ @cd ./tcldesk; pax -rwpm * ${SCRIPT_INSTALL_DIR}; cd ..
|
|
@cp ChangeLog $(SCRIPT_INSTALL_DIR)/doc/ChangeLog
|
|
@echo "=== Setting permissions..."
|
|
find $(SCRIPT_INSTALL_DIR) -type f -exec chmod a+r {} \;
|
|
find $(SCRIPT_INSTALL_DIR) -type d -exec chmod a+rx {} \;
|
|
@echo "=== Creating index..."
|
|
- cd $(SCRIPT_INSTALL_DIR); $(BIN_INSTALL_DIR)/tkdesksh mkindex
|
|
+ cd $(SCRIPT_INSTALL_DIR); tclsh mkindex
|
|
@echo "=== Installing the manual pages..."
|
|
@for f in tkdesk.1 cd-tkdesk.1 ed-tkdesk.1 od-tkdesk.1; do \
|
|
echo "installing $$f" ;\
|
|
- rm -f $(MAN1_INSTALL_DIR)/$$f ;\
|
|
- $(INSTALL_DATA) doc/$$f $(MAN1_INSTALL_DIR) ;\
|
|
+ $(BSD_INSTALL_MAN) doc/$$f $(MAN1_INSTALL_DIR) ;\
|
|
done
|
|
@echo "=== Installation complete."
|
|
|