summaryrefslogtreecommitdiff
path: root/emulators/bsvc/files/patch-UI__Makefile
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2014-07-28 18:39:29 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2014-07-28 18:39:29 +0000
commit79d6017866067064ba712bf6b913b59695d44a06 (patch)
treeb6517b4d4b98c9665fa77bde38e342fbc8bece26 /emulators/bsvc/files/patch-UI__Makefile
parentReport serious i2p vulnerability (diff)
Rename emulators/ patch-xy patches to reflect the files they modify.
Notes
Notes: svn path=/head/; revision=363222
Diffstat (limited to 'emulators/bsvc/files/patch-UI__Makefile')
-rw-r--r--emulators/bsvc/files/patch-UI__Makefile48
1 files changed, 48 insertions, 0 deletions
diff --git a/emulators/bsvc/files/patch-UI__Makefile b/emulators/bsvc/files/patch-UI__Makefile
new file mode 100644
index 000000000000..68e06e9f09d3
--- /dev/null
+++ b/emulators/bsvc/files/patch-UI__Makefile
@@ -0,0 +1,48 @@
+--- UI/Makefile.orig 1998-11-09 04:39:29.000000000 +0100
++++ UI/Makefile 2013-11-05 17:30:19.000000000 +0100
+@@ -20,31 +20,31 @@
+ echo '# export TCL_LIBRARY TK_LIBRARY' >> bsvc
+ echo 'ARGS=$$*' >> bsvc
+ echo 'export ARGS' >> bsvc
+- echo 'exec $(WISH) -f $(INSTALL_DIR)/UI/bsvc.tk' >> bsvc
++ echo 'exec $(WISH) -f $(PREFIX)/lib/bsvc/bsvc.tk' >> bsvc
+ chmod +x bsvc
+
+ bsvc.tk: Makefile
+ echo '#!$(WISH) -f' > bsvc.tk
+- echo 'set Program(InstallDir) $(INSTALL_DIR)' >> bsvc.tk
+- echo 'set Program(BitmapDir) $$Program(InstallDir)/UI/bitmaps' >> bsvc.tk
+- echo 'set Program(HelpDir) $$Program(InstallDir)/UI/help' >> bsvc.tk
+- echo 'set Program(LibDir) $$Program(InstallDir)/UI' >> bsvc.tk
++ echo 'set Program(InstallDir) $(PREFIX)' >> bsvc.tk
++ echo 'set Program(BitmapDir) $(PREFIX)/lib/bsvc/bitmaps' >> bsvc.tk
++ echo 'set Program(HelpDir) $(PREFIX)/lib/bsvc/help' >> bsvc.tk
++ echo 'set Program(LibDir) $(PREFIX)/lib/bsvc' >> bsvc.tk
+ echo 'set Program(WWWBrowser) "$(WWW_BROWSER)"' >> bsvc.tk
+ echo 'set Program(WWWHomePage) "$(WWW_HOME_PAGE)"' >> bsvc.tk
+ echo 'set Program(StopIndicator) C:\\BSVC\\bin\\STOP' >> bsvc.tk
+ echo 'if {$$tcl_version >= 7.5 && $$tcl_platform(platform) == "windows"} {' >> bsvc.tk
+- echo ' option readfile $$Program(InstallDir)/UI/bsvc.win 40' >> bsvc.tk
++ echo ' option readfile $(PREFIX)/lib/bsvc/bsvc.win 40' >> bsvc.tk
+ echo '} else {' >> bsvc.tk
+- echo ' option readfile $$Program(InstallDir)/UI/bsvc.ad 40' >> bsvc.tk
++ echo ' option readfile $(PREFIX)/lib/bsvc/bsvc.ad 40' >> bsvc.tk
+ echo '}' >> bsvc.tk
+- echo 'source $$Program(InstallDir)/UI/main.tk' >> bsvc.tk
++ echo 'source $(PREFIX)/lib/bsvc/main.tk' >> bsvc.tk
+
+ install: bsvc bsvc.tk
+- $(MKDIR) $(INSTALL_DIR)/UI
+- $(MKDIR) $(INSTALL_DIR)/UI/bitmaps
+- $(MKDIR) $(INSTALL_DIR)/UI/help
+- $(INSTALL) *.tk *.ad $(INSTALL_DIR)/UI
+- $(INSTALL) bitmaps/* $(INSTALL_DIR)/UI/bitmaps
+- $(INSTALL) help/* $(INSTALL_DIR)/UI/help
++ $(MKDIR) $(PROJECT_BASE)/lib/bsvc
++ $(MKDIR) $(PROJECT_BASE)/lib/bsvc/bitmaps
++ $(MKDIR) $(PROJECT_BASE)/lib/bsvc/help
++ $(INSTALL) *.tk *.ad $(PROJECT_BASE)/lib/bsvc
++ $(INSTALL) bitmaps/* $(PROJECT_BASE)/lib/bsvc/bitmaps
++ $(INSTALL) help/* $(PROJECT_BASE)/lib/bsvc/help
+ $(INSTALL) bsvc $(INSTALL_DIR)
+