2001-04-04 04:50:05 +00:00
|
|
|
#
|
2004-07-18 00:24:25 +00:00
|
|
|
# $Id$
|
2001-04-04 20:08:16 +00:00
|
|
|
#
|
|
|
|
# NSIS is a free packager/installer/uninstaller program for Win32.
|
|
|
|
# It was originally written for the Winamp package, but various
|
|
|
|
# freeware and non-freeware packages are using it, too.
|
|
|
|
#
|
|
|
|
# http://www.nullsoft.com/free/nsis/
|
2001-04-04 04:50:05 +00:00
|
|
|
|
|
|
|
include ../../config.nmake
|
|
|
|
|
2004-02-18 20:45:54 +00:00
|
|
|
!IFDEF GTK1_ONLY
|
2004-05-13 20:54:39 +00:00
|
|
|
# define installer name and undefine GTK2_DIR to get a separate
|
2004-02-18 20:45:54 +00:00
|
|
|
# installer for ethereal GTK1 version
|
|
|
|
DEST=ethereal-gtk1
|
|
|
|
!IFDEF GTK2_DIR
|
|
|
|
!UNDEF GTK2_DIR
|
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
|
|
|
|
!IFDEF GTK2_ONLY
|
2004-05-13 20:54:39 +00:00
|
|
|
# define installer name and undefine GTK1_DIR to get a separate
|
2004-02-18 20:45:54 +00:00
|
|
|
# installer for ethereal GTK2 version
|
2004-02-06 18:47:45 +00:00
|
|
|
DEST=ethereal-gtk2
|
2004-02-18 20:45:54 +00:00
|
|
|
!IFDEF GTK1_DIR
|
|
|
|
!UNDEF GTK1_DIR
|
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
!IFNDEF DEST
|
|
|
|
# define installer name for combined GTK1 and GTK2 installer package
|
|
|
|
DEST=ethereal
|
2004-02-03 20:03:40 +00:00
|
|
|
!ENDIF
|
|
|
|
|
2004-02-18 20:45:54 +00:00
|
|
|
EXE=../../tethereal.exe ../../editcap.exe \
|
|
|
|
!IFDEF GTK1_DIR
|
|
|
|
../../ethereal.exe \
|
|
|
|
!ENDIF
|
|
|
|
!IFDEF GTK2_DIR
|
|
|
|
../../ethereal-gtk2.exe \
|
|
|
|
!ENDIF
|
2004-07-28 23:09:12 +00:00
|
|
|
../../text2pcap.exe ../../mergecap.exe ../../capinfo.exe
|
2001-04-04 04:50:05 +00:00
|
|
|
DLL=../../wiretap/wiretap-$(WTAP_VERSION).dll
|
|
|
|
DOC=../../doc/ethereal.html \
|
|
|
|
../../doc/tethereal.html \
|
2003-10-02 22:28:04 +00:00
|
|
|
../../doc/ethereal-filter.html \
|
2001-04-04 04:50:05 +00:00
|
|
|
../../doc/editcap.html \
|
2001-05-22 16:19:45 +00:00
|
|
|
../../doc/text2pcap.html \
|
2001-07-12 22:45:23 +00:00
|
|
|
../../doc/mergecap.html \
|
2004-07-28 23:09:12 +00:00
|
|
|
../../doc/capinfo.html \
|
2002-08-20 00:59:42 +00:00
|
|
|
../../FAQ \
|
2004-08-26 22:48:29 +00:00
|
|
|
../../NEWS \
|
2001-04-04 04:50:05 +00:00
|
|
|
../../README \
|
|
|
|
../../README.win32
|
2004-01-05 21:47:44 +00:00
|
|
|
GPL=../../COPYING
|
|
|
|
HELP=../../help/toc \
|
|
|
|
../../help/overview.txt \
|
|
|
|
../../help/capture_filters.txt \
|
|
|
|
../../help/display_filters.txt \
|
|
|
|
../../help/faq.txt
|
2001-04-04 04:50:05 +00:00
|
|
|
|
2003-10-27 22:29:52 +00:00
|
|
|
PLUGINS=../../plugins/acn/acn.dll \
|
2003-10-14 01:18:11 +00:00
|
|
|
../../plugins/artnet/artnet.dll \
|
2003-10-28 07:02:38 +00:00
|
|
|
../../plugins/asn1/asn1.dll \
|
2004-03-25 11:21:07 +00:00
|
|
|
../../plugins/ciscosm/ciscosm.dll \
|
2003-04-21 21:28:39 +00:00
|
|
|
../../plugins/docsis/docsis.dll \
|
2003-11-17 20:57:14 +00:00
|
|
|
../../plugins/enttec/enttec.dll \
|
2002-07-12 22:52:43 +00:00
|
|
|
../../plugins/giop/coseventcomm.dll \
|
|
|
|
../../plugins/giop/cosnaming.dll \
|
|
|
|
../../plugins/gryphon/gryphon.dll \
|
2003-12-18 19:07:14 +00:00
|
|
|
../../plugins/irda/irda.dll \
|
2003-08-05 05:09:37 +00:00
|
|
|
../../plugins/lwres/lwres.dll \
|
2003-01-28 22:18:06 +00:00
|
|
|
../../plugins/megaco/megaco.dll \
|
|
|
|
../../plugins/mgcp/mgcp.dll \
|
2004-07-21 06:31:33 +00:00
|
|
|
../../plugins/opsi/opsi.dll \
|
2003-06-11 09:17:03 +00:00
|
|
|
../../plugins/pcli/pcli.dll \
|
2003-11-17 20:57:14 +00:00
|
|
|
../../plugins/rdm/rdm.dll \
|
2004-03-25 11:21:07 +00:00
|
|
|
../../plugins/rlm/rlm.dll \
|
2003-12-17 05:16:21 +00:00
|
|
|
../../plugins/rtnet/rtnet.dll \
|
2004-03-25 11:21:07 +00:00
|
|
|
../../plugins/rudp/rudp.dll \
|
2003-12-17 05:16:21 +00:00
|
|
|
../../plugins/v5ua/v5ua.dll
|
2001-04-04 04:50:05 +00:00
|
|
|
|
2004-01-05 21:47:44 +00:00
|
|
|
DELIVERABLES=$(EXE) $(DLL) $(DOC) $(GPL) $(HELP) $(PLUGINS)
|
2001-04-04 04:50:05 +00:00
|
|
|
|
2004-01-26 21:12:41 +00:00
|
|
|
|
2004-02-18 20:45:54 +00:00
|
|
|
|
2004-01-26 21:12:41 +00:00
|
|
|
$(DEST)-setup-$(VERSION).exe : ethereal.nsi $(DELIVERABLES) Makefile.nmake
|
2003-07-22 22:00:38 +00:00
|
|
|
$(MAKENSIS) \
|
2004-02-18 20:45:54 +00:00
|
|
|
/DDEST=$(DEST) \
|
2003-12-26 12:27:47 +00:00
|
|
|
!IF "$(MAKENSIS_MODERN_UI)" != ""
|
|
|
|
/DMAKENSIS_MODERN_UI=$(MAKENSIS_MODERN_UI) \
|
|
|
|
!ENDIF
|
2004-05-09 10:03:41 +00:00
|
|
|
!IF "$(ENABLE_LIBETHEREAL)" != ""
|
|
|
|
/DENABLE_LIBETHEREAL=$(ENABLE_LIBETHEREAL) \
|
|
|
|
!ENDIF
|
2004-02-18 20:45:54 +00:00
|
|
|
!IFDEF GTK1_DIR
|
2004-02-06 18:47:45 +00:00
|
|
|
/DGTK1_DIR=$(GTK1_DIR) \
|
2004-02-18 20:45:54 +00:00
|
|
|
!ENDIF
|
|
|
|
!IFDEF GTK2_DIR
|
2004-02-06 18:47:45 +00:00
|
|
|
/DGTK2_DIR=$(GTK2_DIR) \
|
From Lars Roland: define an "installation" version of GTK+ 2.x and Pango
in "config.nmake", and use that in the NSIS script when generating the
NSIS installer, so it puts GTK+ and Pango in the appropriate
subdirectories. Also, when uninstalling, remove both of the sets of
subdirectories.
As per his suggestion, get rid of the "GTK1_VERSION" and "GTK2_VERSION"
macros, and just directly insert the values where those macros were used
- "GTK1_VERSION" wasn't used at all, and "GTK2_VERSION" was only used
immediately below where it was defined, and stuff elsewhere, such as in
the NSIS script, didn't use them and would break if you changed them
anyway.
svn path=/trunk/; revision=10976
2004-05-23 22:21:30 +00:00
|
|
|
/DGTK2_INST_VERSION=$(GTK2_INST_VERSION) \
|
|
|
|
/DPANGO_INST_VERSION=$(PANGO_INST_VERSION) \
|
2004-02-24 18:51:40 +00:00
|
|
|
!ENDIF
|
|
|
|
!IFDEF GTK_WIMP_DIR
|
|
|
|
/DGTK_WIMP_DIR=$(GTK_WIMP_DIR) \
|
2004-02-18 20:45:54 +00:00
|
|
|
!ENDIF
|
2003-12-22 21:41:40 +00:00
|
|
|
/DGLIB_DIR=$(GLIB_DIR) \
|
|
|
|
/DICONV_DIR=$(ICONV_DIR) \
|
|
|
|
/DGETTEXT_DIR=$(GETTEXT_DIR) \
|
|
|
|
/DVERSION=$(VERSION) \
|
|
|
|
/DWTAP_VERSION=$(WTAP_VERSION) \
|
|
|
|
/DNET_SNMP_DIR=$(NET_SNMP_DIR) \
|
|
|
|
!IF "$(ADNS_DIR)" != ""
|
|
|
|
/DADNS_DIR=$(ADNS_DIR) \
|
|
|
|
!ENDIF
|
|
|
|
!IF "$(PCRE_DIR)" != ""
|
|
|
|
/DPCRE_DIR=$(PCRE_DIR) \
|
|
|
|
!ENDIF
|
|
|
|
!IF "$(ZLIB_DIR)" != ""
|
|
|
|
/DZLIB_DIR=$(ZLIB_DIR) \
|
2003-07-22 22:00:38 +00:00
|
|
|
!ENDIF
|
2003-12-22 21:41:40 +00:00
|
|
|
ethereal.nsi
|
2001-04-12 18:07:22 +00:00
|
|
|
|
|
|
|
clean:
|
2002-08-19 15:48:28 +00:00
|
|
|
rm -f ethereal-setup-$(VERSION).exe
|
2004-02-18 20:45:54 +00:00
|
|
|
rm -f ethereal-gtk1-setup-$(VERSION).exe
|
2004-02-06 18:47:45 +00:00
|
|
|
rm -f ethereal-gtk2-setup-$(VERSION).exe
|
2002-01-04 21:20:20 +00:00
|
|
|
|
2003-10-10 21:31:53 +00:00
|
|
|
distclean: clean
|
|
|
|
|
2002-01-04 21:20:20 +00:00
|
|
|
$(DOC):
|
|
|
|
cd ../../doc
|
|
|
|
$(MAKE) -f makefile.nmake
|
|
|
|
cd ../packaging/nsis
|
|
|
|
|
|
|
|
$(EXE) $(DLL):
|
|
|
|
cd ../..
|
|
|
|
$(MAKE) -f makefile.nmake
|
|
|
|
cd packaging/nsis
|