1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/emulators/bsvc/files/patch-UI__Makefile

49 lines
2.2 KiB
Plaintext

--- 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)