From dd9230de0453e91be3b17eca7696132555771c06 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Fri, 26 Aug 2011 15:21:03 +0000 Subject: [PATCH] Somewhat fixed NSIS installer for win64, probably still installs with x86 programs. --- misc/nsis/Makefile | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/misc/nsis/Makefile b/misc/nsis/Makefile index 6f3cc596..52fc71ff 100644 --- a/misc/nsis/Makefile +++ b/misc/nsis/Makefile @@ -1,16 +1,36 @@ -VERSION=1.35_SVN +ifndef VERSION +VERSION=1.36_SVN +endif +ifndef RELEASE RELEASE=0 +endif +ifndef ARCH ARCH=x86 +endif +ifndef INSTALLDIR +INSTALLDIR=. +endif + +ifeq ($(ARCH),x64) + SDLDLL=SDL64.dll +else + SDLDLL=SDL.dll +endif all: ioquake3-$(VERSION)-$(RELEASE).$(ARCH).exe -ioquake3.nsi: ioquake3.nsi.in - sed 's/XXXVERSIONXXX/$(VERSION)/;s/XXXRELEASEXXX/$(RELEASE)/;s/x86/$(ARCH)/g' < $< > $@ +ioquake3.$(ARCH).nsi: ioquake3.nsi.in + sed 's/XXXVERSIONXXX/$(VERSION)/;s/XXXRELEASEXXX/$(RELEASE)/;s/x86/$(ARCH)/;s/SDL.dll/$(SDLDLL)/g' < $< > $@ -ioquake3-$(VERSION)-$(RELEASE).$(ARCH).exe: ioquake3.nsi - makensis ioquake3.nsi +ioquake3-$(VERSION)-$(RELEASE).$(ARCH).exe: ioquake3.$(ARCH).nsi + makensis ioquake3.$(ARCH).nsi clean: - rm -rf *.exe ioquake3.nsi + rm -rf *.exe ioquake3.$(ARCH).nsi + +install: + mkdir -p $(INSTALLDIR) + mv ioquake3-$(VERSION)-$(RELEASE).$(ARCH).exe $(INSTALLDIR) .PHONY: all clean +