Pick three bugfixes from next branch to trunk for inclusion in 4.5.0 RC2, as discusse...
[sdcc.git] / sdcc-cf / packages / build.nsis / Makefile
blobc664aee8b1550d6a0e4c15a59ba1997234b27b36
1 include ../packages.mk
3 PACKAGE=nsis
5 VERSION=2.46
7 .PHONY: all
8 all: $(PACKAGE)-install.tag clean
10 download/$(PACKAGE)-$(VERSION)-src.tar.bz2:
11 wget -P download http://sourceforge.net/projects/$(PACKAGE)/files/NSIS%202/$(VERSION)/$(PACKAGE)-$(VERSION)-src.tar.bz2
13 download/$(PACKAGE)-$(VERSION).zip:
14 wget -P download http://sourceforge.net/projects/$(PACKAGE)/files/NSIS%202/$(VERSION)/$(PACKAGE)-$(VERSION).zip
16 $(PACKAGE)-unpack.tag: download/$(PACKAGE)-$(VERSION)-src.tar.bz2 download/$(PACKAGE)-$(VERSION).zip
17 tar xjvf download/$(PACKAGE)-$(VERSION)-src.tar.bz2
18 touch $@
20 $(PACKAGE)-configure.tag: $(PACKAGE)-unpack.tag
21 cd $(PACKAGE)-$(VERSION)-src && \
22 scons PREFIX=$(LOCAL_DIR) SKIPSTUBS=all SKIPPLUGINS=all SKIPUTILS=all SKIPMISC=all NSIS_CONFIG_CONST_DATA=no VERSION=$(VERSION) install-compiler
23 touch $@
25 $(PACKAGE)-install.tag: $(PACKAGE)-configure.tag
26 install $(PACKAGE)-$(VERSION)-src/build/release/makensis/makensis $(LOCAL_DIR)/bin
27 rm -rf $(LOCAL_DIR)/share/$(PACKAGE)
28 unzip download/$(PACKAGE)-$(VERSION).zip -d $(LOCAL_DIR)/share
29 mv $(LOCAL_DIR)/share/$(PACKAGE)-$(VERSION) $(LOCAL_DIR)/share/$(PACKAGE)
30 touch $@
32 clean:
33 rm -rf $(PACKAGE)-$(VERSION)-src download/* *.tag