gtkmm3 installer added
license modified
This commit is contained in:
		
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @@ -1,3 +1,4 @@ | |||||||
| *~ | *~ | ||||||
| gtk2-runtime*-ts-win64*exe | gtk2-runtime*-ts-win64*exe | ||||||
|  | gtk3-runtime*-ts-win64*exe | ||||||
| *.swp | *.swp | ||||||
|   | |||||||
							
								
								
									
										22
									
								
								gtk-nsis-pack/etc/gtk-3.0/im-multipress.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								gtk-nsis-pack/etc/gtk-3.0/im-multipress.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,22 @@ | |||||||
|  | # Example configuration file for the GTK+ Multipress Input Method | ||||||
|  | # Authored by Openismus GmbH, 2009. | ||||||
|  | # | ||||||
|  | # This file follows the GKeyFile format.  On the left of the equal sign goes | ||||||
|  | # the key that you press repeatedly to iterate through the text items listed | ||||||
|  | # on the right-hand side.  The list items are separated by semicolons ";" and | ||||||
|  | # consist of one or more characters each.  The backslash "\" is used to escape | ||||||
|  | # characters; for instance "\;" for a literal semicolon. | ||||||
|  | # | ||||||
|  | # The example configuration below imitates the behavior of a standard mobile | ||||||
|  | # phone by a major manufacturer, with German language setting. | ||||||
|  | [keys] | ||||||
|  | KP_1 = .;,;?;!;';";1;-;(;);@;/;:;_ | ||||||
|  | KP_2 = a;b;c;2;ä;à;á;ã;â;å;æ;ç | ||||||
|  | KP_3 = d;e;f;3;è;é;ë;ê;ð | ||||||
|  | KP_4 = g;h;i;4;ì;í;î;ï | ||||||
|  | KP_5 = j;k;l;5;£ | ||||||
|  | KP_6 = m;n;o;6;ö;ò;ó;ô;õ;ø;ñ | ||||||
|  | KP_7 = p;q;r;s;7;ß;$ | ||||||
|  | KP_8 = t;u;v;8;ü;ù;ú;û | ||||||
|  | KP_9 = w;x;y;z;9;ý;þ | ||||||
|  | KP_0 = \s;0 | ||||||
| @@ -288,9 +288,9 @@ SectionIn 1 2 RO | |||||||
| 	File bin\pango-querymodules.exe | 	File bin\pango-querymodules.exe | ||||||
| 	 | 	 | ||||||
| 	 | 	 | ||||||
| 	SetOutPath "$INSTDIR" | 	SetOutPath "$INSTDIR\etc" | ||||||
| 	SetOverwrite off | 	SetOverwrite off | ||||||
| 	File /r etc  ; don't overwrite config files | 	File /r etc\gtk-2.0  | ||||||
| 	SetOverwrite On | 	SetOverwrite On | ||||||
|  |  | ||||||
|  |  | ||||||
| @@ -328,10 +328,6 @@ SectionIn 1 2 RO | |||||||
| 	SetOutPath "$INSTDIR\gtk2-runtime" | 	SetOutPath "$INSTDIR\gtk2-runtime" | ||||||
| 	; File gtk-postinstall.bat ; this file is generated now | 	; File gtk-postinstall.bat ; this file is generated now | ||||||
| 	File license.txt | 	File license.txt | ||||||
| 	File license_gpl.txt |  | ||||||
| 	File license_lgpl.txt |  | ||||||
| 	File license_png.txt |  | ||||||
| 	File license_zlib.txt |  | ||||||
| 	File gtk.ico  ; needed for "add/remove programs" | 	File gtk.ico  ; needed for "add/remove programs" | ||||||
|  |  | ||||||
|  |  | ||||||
| @@ -727,14 +723,14 @@ Section Uninstall | |||||||
| 	skip_config: | 	skip_config: | ||||||
|  |  | ||||||
|  |  | ||||||
| 	Delete "$INSTDIR\etc\fonts\fonts.conf" | 	;Delete "$INSTDIR\etc\fonts\fonts.conf" | ||||||
| 	RMDir "$INSTDIR\etc\fonts"  ; only if empty | 	;RMDir "$INSTDIR\etc\fonts"  ; only if empty | ||||||
| 	Delete "$INSTDIR\etc\pango\pango.modules" | 	;Delete "$INSTDIR\etc\pango\pango.modules" | ||||||
| 	RMDir "$INSTDIR\etc\pango"  ; only if empty | 	;RMDir "$INSTDIR\etc\pango"  ; only if empty | ||||||
| 	; Delete "$INSTDIR\etc\gtk-2.0\gdk-pixbuf.loaders" | 	; Delete "$INSTDIR\etc\gtk-2.0\gdk-pixbuf.loaders" | ||||||
| 	Delete "$INSTDIR\etc\gtk-2.0\gtk.immodules" | 	;Delete "$INSTDIR\etc\gtk-2.0\gtk.immodules" | ||||||
| 	Delete "$INSTDIR\etc\gtk-2.0\gtkrc.default" | 	Delete "$INSTDIR\etc\gtk-2.0\gtkrc.default" | ||||||
| 	Delete "$INSTDIR\etc\gtk-2.0\im-multipress.conf" | 	;Delete "$INSTDIR\etc\gtk-2.0\im-multipress.conf" | ||||||
| 	RMDir "$INSTDIR\etc\gtk-2.0" ; only if empty | 	RMDir "$INSTDIR\etc\gtk-2.0" ; only if empty | ||||||
| 	RMDir "$INSTDIR\etc" ; only if empty | 	RMDir "$INSTDIR\etc" ; only if empty | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										920
									
								
								gtk-nsis-pack/gtk3-runtime.ts.nsi
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										920
									
								
								gtk-nsis-pack/gtk3-runtime.ts.nsi
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,920 @@ | |||||||
|  |  | ||||||
|  | ; NSIS2 Script for GTK3-Runtime | ||||||
|  | ; based on the Gtk2-Runtime script | ||||||
|  | ; by Alexander Shaduri <ashaduri 'at' gmail.com>. | ||||||
|  | ; modified by Tom Schoonjans <Tom.Schoonjans 'at' gmail.com> | ||||||
|  | ; Compatible with NSIS Unicode 2.45. | ||||||
|  | ; Public Domain | ||||||
|  |  | ||||||
|  | ; The naming convention is: | ||||||
|  | ; Product: GTK3-Runtime; | ||||||
|  | ; Directory and package names: gtk3-runtime. | ||||||
|  |  | ||||||
|  |  | ||||||
|  | !define GTK_VERSION "3.14.7" | ||||||
|  | !define GTK_BIN_VERSION "3.0.0" | ||||||
|  | !define PRODUCT_VERSION "${GTK_VERSION}-2015-01-21-ts-win64" | ||||||
|  | !define PRODUCT_NAME "GTK3-Runtime Win64" | ||||||
|  | !define PRODUCT_PUBLISHER "Tom Schoonjans" | ||||||
|  | !define PRODUCT_WEB_SITE "https://github.com/tschoonj/GTK-for-Windows-Runtime-Environment-Installer" | ||||||
|  | !define INSTALLER_OUTPUT_FILE "gtk3-runtime-${PRODUCT_VERSION}.exe" | ||||||
|  |  | ||||||
|  | ;!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\AppMainExe.exe" | ||||||
|  | !define PRODUCT_UNINST_ROOT_KEY "HKLM" | ||||||
|  | !define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}" | ||||||
|  |  | ||||||
|  | !define REGISTRY_APP_PATHS "Software\Microsoft\Windows\CurrentVersion\App Paths" | ||||||
|  |  | ||||||
|  |  | ||||||
|  | ; AddToPath and friends should work with all users | ||||||
|  | !define ALL_USERS | ||||||
|  |  | ||||||
|  | !include nsi_env_var_update.nsh  ; EnvVar* functions | ||||||
|  | !include "FileFunc.nsh"  ; GetOptions | ||||||
|  | !include "x64.nsh" | ||||||
|  | !include "LogicLib.nsh" | ||||||
|  |  | ||||||
|  |  | ||||||
|  | ; --------------- General Settings | ||||||
|  |  | ||||||
|  |  | ||||||
|  | ; this is needed for proper start menu item manipulation (for all users) in vista | ||||||
|  | RequestExecutionLevel admin | ||||||
|  |  | ||||||
|  | ; This compressor gives us the best results | ||||||
|  | SetCompressor /SOLID lzma | ||||||
|  |  | ||||||
|  | ; Do a CRC check before installing | ||||||
|  | CRCCheck On | ||||||
|  |  | ||||||
|  | ; This is used in titles | ||||||
|  | Name "${PRODUCT_NAME}"  ;  ${PRODUCT_VERSION} | ||||||
|  |  | ||||||
|  | ; Output File Name | ||||||
|  | OutFile "${INSTALLER_OUTPUT_FILE}" | ||||||
|  |  | ||||||
|  |  | ||||||
|  | ; The Default Installation Directory | ||||||
|  | InstallDir "$PROGRAMFILES64\${PRODUCT_NAME}" | ||||||
|  | ;InstallDir "$WINDIR" | ||||||
|  | ; Detect the old installation | ||||||
|  | InstallDirRegKey HKLM "SOFTWARE\${PRODUCT_NAME}" "" | ||||||
|  | ;InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" "" | ||||||
|  |  | ||||||
|  | ShowInstDetails show | ||||||
|  | ShowUnInstDetails show | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  | ; --------------------- MUI INTERFACE | ||||||
|  |  | ||||||
|  | ; MUI 2.0 compatible install | ||||||
|  | !include "MUI2.nsh" | ||||||
|  | !include "InstallOptions.nsh" | ||||||
|  |  | ||||||
|  | ; Icon "gtk.ico" | ||||||
|  | ; UninstallIcon "gtk.ico" | ||||||
|  |  | ||||||
|  | ; MUI Settings | ||||||
|  | !define MUI_ABORTWARNING | ||||||
|  | ;!define MUI_ICON "nsi_install.ico" | ||||||
|  | !define MUI_ICON "gtk.ico" | ||||||
|  | ;!define MUI_UNICON "nsi_uninstall.ico" | ||||||
|  | !define MUI_UNICON "gtk.ico" | ||||||
|  |  | ||||||
|  |  | ||||||
|  | ; Things that need to be extracted on first (keep these lines before any File command!) | ||||||
|  | ; Only useful for BZIP2 compression | ||||||
|  | ReserveFile "nsi_pathpage.ini" | ||||||
|  | ReserveFile "nsi_configpage.ini" | ||||||
|  | ReserveFile "${NSISDIR}\Plugins\InstallOptions.dll" | ||||||
|  |  | ||||||
|  |  | ||||||
|  | ; Pages to show during installation | ||||||
|  | !insertmacro MUI_PAGE_WELCOME | ||||||
|  | !insertmacro MUI_PAGE_LICENSE "license.txt" | ||||||
|  | !insertmacro MUI_PAGE_COMPONENTS | ||||||
|  | Page custom PathPage PathPageExit ; Custom page | ||||||
|  | !define MUI_PAGE_CUSTOMFUNCTION_LEAVE DirectoryPageExit | ||||||
|  | !insertmacro MUI_PAGE_DIRECTORY | ||||||
|  | !insertmacro MUI_PAGE_INSTFILES | ||||||
|  |  | ||||||
|  | ;!define MUI_FINISHPAGE_RUN "$INSTDIR\gtk2-runtime\gtk2_prefs.exe" | ||||||
|  | ;!define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\Example.file" | ||||||
|  | ;!define MUI_FINISHPAGE_RUN_NOTCHECKED | ||||||
|  | !define MUI_FINISHPAGE_NOAUTOCLOSE | ||||||
|  | ;!define MUI_FINISHPAGE_NOREBOOTSUPPORT | ||||||
|  | !insertmacro MUI_PAGE_FINISH | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  | ; Uninstaller page | ||||||
|  | !insertmacro MUI_UNPAGE_CONFIRM | ||||||
|  | UninstPage custom un.DeleteConfig  ;Custom page | ||||||
|  | !insertmacro MUI_UNPAGE_INSTFILES | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  | Function PathPage | ||||||
|  | 	!insertmacro MUI_HEADER_TEXT "$(TEXT_IO_TITLE)" "$(TEXT_IO_SUBTITLE)" | ||||||
|  | 	!insertmacro INSTALLOPTIONS_DISPLAY "nsi_pathpage.ini" | ||||||
|  | FunctionEnd | ||||||
|  |  | ||||||
|  |  | ||||||
|  | ; Note: These options are unsupported unless the installer is launched in silent mode (/S). | ||||||
|  | ; e.g. /setpath=no /dllpath=root /sideeffects=no | ||||||
|  | var install_option_setpath  ; set PATH: yes (default), no | ||||||
|  | var install_option_dllpath  ; bin (default), lib, root | ||||||
|  | var install_option_sideeffects  ; yes (default), no. no = don't write to registry, PATH or start menu. | ||||||
|  | var install_option_translations  ; install translations: yes, no (default) | ||||||
|  | var install_option_removeold  ; uninstall the old version first (if present): yes (default), no. | ||||||
|  |  | ||||||
|  | var LIB_INSTDIR | ||||||
|  | var DLL_DIR_NAME | ||||||
|  | var DLL_TMP | ||||||
|  |  | ||||||
|  |  | ||||||
|  | ; Executed when leaving PathPage page. | ||||||
|  | ; Sets DLL_DIR_NAME to dll directory name. | ||||||
|  | Function PathPageExit | ||||||
|  | 	 | ||||||
|  | 	IfSilent dllpath_silent | ||||||
|  | 		; if not silent, show a page with radiobuttons | ||||||
|  | 		!insertmacro INSTALLOPTIONS_READ $DLL_TMP "nsi_pathpage.ini" "Field 3" "State" | ||||||
|  | 		StrCmp $DLL_TMP "1" goto_dll_bin | ||||||
|  | 		!insertmacro INSTALLOPTIONS_READ $DLL_TMP "nsi_pathpage.ini" "Field 4" "State" | ||||||
|  | 		StrCmp $DLL_TMP "1" goto_dll_lib | ||||||
|  | 		!insertmacro INSTALLOPTIONS_READ $DLL_TMP "nsi_pathpage.ini" "Field 5" "State" | ||||||
|  | 		StrCmp $DLL_TMP "1" goto_dll_none | ||||||
|  | 		goto dllpath_exit | ||||||
|  | 	dllpath_silent: | ||||||
|  | 		; if silent, use the /dllpath= option | ||||||
|  | 		StrCmp $install_option_dllpath "bin" goto_dll_bin | ||||||
|  | 		StrCmp $install_option_dllpath "lib" goto_dll_lib | ||||||
|  | 		StrCmp $install_option_dllpath "root" goto_dll_none goto_dll_bin  ; default to bin if not matched | ||||||
|  | 	dllpath_exit: | ||||||
|  |  | ||||||
|  | 	goto_dll_none: | ||||||
|  | 		StrCpy $DLL_DIR_NAME "" | ||||||
|  | 		goto goto_dll_exit | ||||||
|  | 	goto_dll_lib: | ||||||
|  | 		StrCpy $DLL_DIR_NAME "lib" | ||||||
|  | 		goto goto_dll_exit | ||||||
|  | 	goto_dll_bin: | ||||||
|  | 		StrCpy $DLL_DIR_NAME "bin" | ||||||
|  | 		goto goto_dll_exit | ||||||
|  | 	goto_dll_exit: | ||||||
|  |  | ||||||
|  | FunctionEnd | ||||||
|  |  | ||||||
|  |  | ||||||
|  | ; Set $LIB_INSTDIR to <instpath>\bin, <instpath>\lib or <instpath>\ . | ||||||
|  | ; Must be after the directory selection page. | ||||||
|  | Function DirectoryPageExit | ||||||
|  | 	StrCpy $LIB_INSTDIR "$INSTDIR" | ||||||
|  | 	StrCmp $DLL_DIR_NAME "" no_dll_append | ||||||
|  | 		StrCpy $LIB_INSTDIR "$INSTDIR\$DLL_DIR_NAME" | ||||||
|  | 	no_dll_append: | ||||||
|  | FunctionEnd | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  | Function un.DeleteConfig | ||||||
|  | 	; !insertmacro MUI_HEADER_TEXT "$(TEXT_IO_TITLE)" "$(TEXT_IO_SUBTITLE)" | ||||||
|  | 	!insertmacro INSTALLOPTIONS_DISPLAY "nsi_configpage.ini" | ||||||
|  | FunctionEnd | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  | ; Language files | ||||||
|  | !insertmacro MUI_LANGUAGE "English" | ||||||
|  |  | ||||||
|  |  | ||||||
|  | ; --------------- END MUI | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  | ;Description | ||||||
|  | LangString DESC_SecCopyUI ${LANG_ENGLISH} "GTK3 Runtime 64-bit" | ||||||
|  | LangString TEXT_IO_TITLE ${LANG_ENGLISH} "GTK3 Runtime 64-bit" | ||||||
|  | LangString TEXT_IO_SUBTITLE ${LANG_ENGLISH} "Additional options" | ||||||
|  |  | ||||||
|  |  | ||||||
|  | ;License page Introduction | ||||||
|  | ;LicenseText "You must agree to this license before installing." | ||||||
|  | ;License text | ||||||
|  | ;LicenseData /LANG=${LANG_ENGLISH} "license.txt" | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  | ; ----------------- INSTALLATION TYPES | ||||||
|  |  | ||||||
|  | InstType "Recommended"  ; 1 | ||||||
|  | InstType "Full"  ; 2 | ||||||
|  |  | ||||||
|  |  | ||||||
|  | var SEC_TRANSLATIONS_INSTALLED | ||||||
|  |  | ||||||
|  |  | ||||||
|  | Section "GTK+ libraries (required)" SecGTK | ||||||
|  | SectionIn 1 2 RO | ||||||
|  | 	SetShellVarContext all  ; use all user variables as opposed to current user | ||||||
|  | 	SetOverwrite On | ||||||
|  |  | ||||||
|  | 	SetOutPath "$LIB_INSTDIR" | ||||||
|  |  | ||||||
|  | 	; NOTE: If you add or remove any of these, | ||||||
|  | 	; be sure to do the same in the uninstall section. | ||||||
|  |  | ||||||
|  | 	File bin\libatk-1.0-0.dll  ; atk | ||||||
|  | 	File bin\libatkmm-1.6-1.dll  ; atk | ||||||
|  | 	File bin\libcairo-2.dll  ; cairo, needed by gtk | ||||||
|  | 	File bin\libcairo-gobject-2.dll  ; cairo. Doesn't seem to be required, but since we're distributing cairo... | ||||||
|  | 	File bin\libcairo-script-interpreter-2.dll  ; cairo. Doesn't seem to be required, but since we're distributing cairo... | ||||||
|  | 	File bin\libcairomm-1.0-1.dll | ||||||
|  | 	File bin\libffi-6.dll  ; libffi is required by glib  | ||||||
|  | 	File bin\libfontconfig-1.dll  ; fontconfig is needed for ft2 pango backend | ||||||
|  | 	File bin\libfreetype-6.dll  ; freetype is needed for ft2 pango backend | ||||||
|  | 	File bin\libgailutil-3-0.dll  ; from gtk | ||||||
|  | 	File bin\libgdk_pixbuf-2.0-0.dll  ; from gtk | ||||||
|  | 	File bin\libgdk-3-0.dll  ; from gtk | ||||||
|  | 	File bin\libgdkmm-3.0-1.dll | ||||||
|  | 	File bin\libgio-2.0-0.dll  ; from glib | ||||||
|  | 	File bin\libglib-2.0-0.dll  ; glib | ||||||
|  | 	File bin\libglibmm-2.4-1.dll  ; glib | ||||||
|  | 	File bin\libgiomm-2.4-1.dll  ; glib | ||||||
|  | 	File bin\libsigc-2.0-0.dll | ||||||
|  | 	File bin\libglibmm_generate_extra_defs-2.4-1.dll  ; glib | ||||||
|  | 	File bin\libgmodule-2.0-0.dll  ; from glib | ||||||
|  | 	File bin\libgobject-2.0-0.dll  ; from glib | ||||||
|  | 	File bin\libgthread-2.0-0.dll  ; from glib | ||||||
|  | 	File bin\libgtk-3-0.dll  ; gtk | ||||||
|  | 	File bin\libgtkmm-3.0-1.dll | ||||||
|  | 	File bin\libharfbuzz-0.dll | ||||||
|  | 	File bin\libintl-8.dll  ; gettext, needed by all i18n libs | ||||||
|  | 	File bin\libpango-1.0-0.dll  ; pango, needed by gtk | ||||||
|  | 	File bin\libpangocairo-1.0-0.dll  ; pango, needed by gtk | ||||||
|  | 	File bin\libpangowin32-1.0-0.dll  ; pango, needed by gtk | ||||||
|  | 	File bin\libpangoft2-1.0-0.dll  ; pango, needed by gtk | ||||||
|  | 	File bin\libpangomm-1.4-1.dll | ||||||
|  | 	File bin\libpixman-1-0.dll  ; libpixman, needed by cairo | ||||||
|  | 	File bin\libpng16-16.dll  ; for gdk_pixbuf loader. | ||||||
|  | 	File bin\libxml2-2.dll  ; fontconfig needs this | ||||||
|  | 	File bin\zlib1.dll  ; png and many others need this | ||||||
|  | 	File bin\libstdc++_64-6.dll | ||||||
|  | 	File bin\libgcc_s_seh_64-1.dll | ||||||
|  |  | ||||||
|  | 	; We install this into the same place as the DLLs to avoid any PATH manipulation. | ||||||
|  | 	SetOutPath "$LIB_INSTDIR" | ||||||
|  | 	File bin\fc-cache.exe | ||||||
|  | 	File bin\fc-cat.exe | ||||||
|  | 	File bin\fc-list.exe | ||||||
|  | 	File bin\fc-match.exe | ||||||
|  | 	File bin\fc-pattern.exe | ||||||
|  | 	File bin\fc-query.exe | ||||||
|  | 	File bin\fc-scan.exe | ||||||
|  | 	File bin\fc-validate.exe | ||||||
|  | 	File bin\gdk-pixbuf-query-loaders.exe  ; from gdk_pixbuf | ||||||
|  | 	File bin\gspawn-win64-helper.exe | ||||||
|  | 	File bin\gspawn-win64-helper-console.exe | ||||||
|  | 	File bin\gtk-query-immodules-3.0.exe | ||||||
|  | 	File bin\gtk-update-icon-cache.exe | ||||||
|  | 	File bin\pango-querymodules.exe | ||||||
|  | 	 | ||||||
|  | 	 | ||||||
|  | 	SetOutPath "$INSTDIR\etc" | ||||||
|  | 	SetOverwrite off | ||||||
|  | 	File /r etc\gtk-3.0  | ||||||
|  | 	SetOverwrite On | ||||||
|  |  | ||||||
|  |  | ||||||
|  | 	SetOutPath "$INSTDIR\lib\gdk-pixbuf-2.0\2.10.0" | ||||||
|  | 	File lib\gdk-pixbuf-2.0\2.10.0\loaders.cache | ||||||
|  |  | ||||||
|  | 	; SetOutPath "$INSTDIR\lib\gdk-pixbuf-2.0\${GTK_BIN_VERSION}\loaders" | ||||||
|  | 	; File /r lib\gdk-pixbuf-2.0\${GTK_BIN_VERSION}\loaders | ||||||
|  |  | ||||||
|  | 	;SetOutPath "$INSTDIR\lib\gtk-3.0\${GTK_BIN_VERSION}" | ||||||
|  | 	; no longer in gtk as of 2.14.5. | ||||||
|  | 	; File /r lib\gtk-2.0\${GTK_BIN_VERSION}\immodules | ||||||
|  | 	; gone as of gtk 2.16.6-2. | ||||||
|  | 	; File /r lib\gtk-2.0\${GTK_BIN_VERSION}\loaders | ||||||
|  |  | ||||||
|  | 	; wimp | ||||||
|  | 	;SetOutPath "$INSTDIR\lib\gtk-2.0\${GTK_BIN_VERSION}\engines" | ||||||
|  | 	;File lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libwimp*.dll | ||||||
|  | 	; We install this, but other installers may not have it. | ||||||
|  | 	;File lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libpixmap*.dll | ||||||
|  |  | ||||||
|  | 	SetOutPath "$INSTDIR\share\locale" | ||||||
|  | 	File share\locale\locale.alias  ; from gettext | ||||||
|  |  | ||||||
|  | 	SetOutPath "$INSTDIR\share\themes\Emacs" | ||||||
|  | 	File /r share\themes\Emacs\gtk-3.0 | ||||||
|  | 	SetOutPath "$INSTDIR\share\themes\Default" | ||||||
|  | 	File /r share\themes\Default\gtk-3.0 | ||||||
|  |  | ||||||
|  |  | ||||||
|  | 	SetOutPath "$INSTDIR\gtk3-runtime" | ||||||
|  | 	; File gtk-postinstall.bat ; this file is generated now | ||||||
|  | 	File license.txt | ||||||
|  | 	File gtk.ico  ; needed for "add/remove programs" | ||||||
|  |  | ||||||
|  |  | ||||||
|  | 	; this script updates some config files, but it's unsafe | ||||||
|  | 	; (gtk or pango may not work afterwards), so don't call it. | ||||||
|  | 	Push $INSTDIR\gtk3-runtime\gtk-postinstall.bat | ||||||
|  | 	Call WritePostInstall | ||||||
|  | 	; update pango.modules, not working for now | ||||||
|  | 	; Exec '$INSTDIR\gtk2-runtime\gtk-postinstall.bat' | ||||||
|  |  | ||||||
|  | SectionEnd ; end of gtk section | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  | Section "Translations" SecTranslations | ||||||
|  | SectionIn 2 | ||||||
|  | 	SetShellVarContext all  ; use all user variables as opposed to current user | ||||||
|  | 	StrCpy $SEC_TRANSLATIONS_INSTALLED "1" | ||||||
|  | 	SetOutPath "$INSTDIR" | ||||||
|  | 	SetOverwrite On | ||||||
|  |  | ||||||
|  | 	; SetOutPath "$INSTDIR\lib" | ||||||
|  | 	; File /r lib\locale | ||||||
|  |  | ||||||
|  | 	; gtk (beginning with 2.12.3) uses share\locale | ||||||
|  | 	SetOutPath "$INSTDIR\share" | ||||||
|  | 	File /r share\locale | ||||||
|  |  | ||||||
|  | SectionEnd | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  | ; Section descriptions | ||||||
|  | !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN | ||||||
|  | 	!insertmacro MUI_DESCRIPTION_TEXT ${SecGTK} "GTK+ 64-bit Runtime Libraries" | ||||||
|  | 	!insertmacro MUI_DESCRIPTION_TEXT ${SecTranslations} "Additional translations (some are incomplete)" | ||||||
|  | !insertmacro MUI_FUNCTION_DESCRIPTION_END | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  | ; Executed on installer run | ||||||
|  | Function .onInit | ||||||
|  | 	SetShellVarContext all  ; use all user variables as opposed to current user | ||||||
|  | 	${IfNot} ${RunningX64}  | ||||||
|  | 		MessageBox MB_OK|MB_ICONEXCLAMATION "This installation requires a 64-bit Windows system" /SD IDOK | ||||||
|  | 		Abort | ||||||
|  | 	${EndIf} | ||||||
|  |  | ||||||
|  | 	SetRegView 64 | ||||||
|  | 		 | ||||||
|  | 	 | ||||||
|  |  | ||||||
|  | 	!insertmacro INSTALLOPTIONS_EXTRACT "nsi_pathpage.ini" | ||||||
|  |  | ||||||
|  | 	StrCpy $SEC_TRANSLATIONS_INSTALLED "0"  ; set to 1 in appropriate section | ||||||
|  |  | ||||||
|  | 	${GetOptions} "$CMDLINE" "/setpath=" $install_option_setpath | ||||||
|  | 	${GetOptions} "$CMDLINE" "/dllpath=" $install_option_dllpath | ||||||
|  | 	${GetOptions} "$CMDLINE" "/sideeffects=" $install_option_sideeffects | ||||||
|  | 	${GetOptions} "$CMDLINE" "/translations=" $install_option_translations | ||||||
|  | 	${GetOptions} "$CMDLINE" "/removeold=" $install_option_removeold | ||||||
|  |  | ||||||
|  | 	; Debug stuff | ||||||
|  | 	; MessageBox MB_ICONINFORMATION|MB_OK "/setpath=$install_option_setpath \ | ||||||
|  | 	;	/dllpath=$install_option_dllpath /sideeffects=$install_option_sideeffects \ | ||||||
|  | 	;	INSTDIR: $INSTDIR" /SD IDOK | ||||||
|  |  | ||||||
|  | 	; if we're using /sideeffects=no, set /setpath=no, because we can't | ||||||
|  | 	; revert it during uninstall (there's no dllpath in registry). | ||||||
|  | 	StrCmp $install_option_sideeffects "no" "" init_sideeffects | ||||||
|  | 		StrCpy $install_option_setpath "no"  ; set /setpath=no | ||||||
|  | 		goto init_sideeffects_exit | ||||||
|  | 	init_sideeffects: | ||||||
|  | 		Call PreventMultipleInstances  ; in no-sideeffects mode this has no purpose | ||||||
|  | 		Call DetectPrevInstallation  ; we don't want local installations to interfere with global ones. | ||||||
|  | 	init_sideeffects_exit: | ||||||
|  |  | ||||||
|  |  | ||||||
|  | 	; enable translations if requested through command line | ||||||
|  | 	StrCmp $install_option_translations "yes" "" no_translations | ||||||
|  | 		push $R0 | ||||||
|  | 		SectionGetFlags ${SecTranslations} $R0 | ||||||
|  | 		IntOp $R0 $R0 | ${SF_SELECTED} | ||||||
|  | 		SectionSetFlags ${SecTranslations} $R0 | ||||||
|  | 		pop $R0 | ||||||
|  | 	no_translations: | ||||||
|  |  | ||||||
|  | 	; Page callbacks are not called if in silent mode, so call these manually | ||||||
|  | 	IfSilent "" +3 | ||||||
|  | 		Call PathPageExit | ||||||
|  | 		Call DirectoryPageExit | ||||||
|  |  | ||||||
|  | FunctionEnd | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  | ; ------------------ POST INSTALL | ||||||
|  |  | ||||||
|  |  | ||||||
|  | var ADD_TO_PATH | ||||||
|  |  | ||||||
|  |  | ||||||
|  | Section -post | ||||||
|  | 	SetShellVarContext all  ; use all user variables as opposed to current user | ||||||
|  |  | ||||||
|  | 	IfSilent PATH_silent | ||||||
|  | 		; Read a value from an InstallOptions INI File | ||||||
|  | 		!insertmacro INSTALLOPTIONS_READ $ADD_TO_PATH "nsi_pathpage.ini" "Field 1" "State" | ||||||
|  | 		StrCmp $ADD_TO_PATH "1" goto_set_path_yes goto_set_path_no | ||||||
|  | 		goto PATH_exit | ||||||
|  | 	PATH_silent: | ||||||
|  | 		; if silent, use the /setpath= option | ||||||
|  | 		StrCmp $install_option_setpath "no" goto_set_path_no goto_set_path_yes | ||||||
|  | 	PATH_exit: | ||||||
|  |  | ||||||
|  |  | ||||||
|  | 	goto_set_path_yes: | ||||||
|  | 		; The user requested to add the libdir to $PATH. | ||||||
|  | 		StrCpy $ADD_TO_PATH "1" | ||||||
|  | 		; Push $LIB_INSTDIR | ||||||
|  | 		; Call AddToPath  ; add $LIB_INSTDIR to system $PATH | ||||||
|  | 		Push $0  ; result PATH | ||||||
|  | 		${EnvVarUpdate} $0 "PATH" "A" "HKLM" "$LIB_INSTDIR" ; Append | ||||||
|  | 		Pop $0 | ||||||
|  | 		; MessageBox MB_ICONINFORMATION|MB_OK "$LIB_INSTDIR added to path" | ||||||
|  | 		goto goto_set_path_exit | ||||||
|  | 	goto_set_path_no: | ||||||
|  | 		StrCpy $ADD_TO_PATH "0" | ||||||
|  | 		goto goto_set_path_exit | ||||||
|  | 	goto_set_path_exit: | ||||||
|  |  | ||||||
|  |  | ||||||
|  | 	; write out uninstaller | ||||||
|  | 	WriteUninstaller "$INSTDIR\gtk3_runtime_uninst.exe" | ||||||
|  |  | ||||||
|  | 	StrCmp $install_option_sideeffects "no" no_sideeffects | ||||||
|  | 		WriteRegStr HKLM "SOFTWARE\${PRODUCT_NAME}" "InstallationDirectory" "$INSTDIR" | ||||||
|  | 		WriteRegStr HKLM "SOFTWARE\${PRODUCT_NAME}" "DllPath" "$LIB_INSTDIR" | ||||||
|  | 		WriteRegStr HKLM "SOFTWARE\${PRODUCT_NAME}" "Vendor" "${PRODUCT_PUBLISHER}" | ||||||
|  | 		WriteRegStr HKLM "SOFTWARE\${PRODUCT_NAME}" "PackageVersion" "${PRODUCT_VERSION}" | ||||||
|  | 		WriteRegStr HKLM "SOFTWARE\${PRODUCT_NAME}" "Version" "${GTK_VERSION}" | ||||||
|  | 		WriteRegStr HKLM "SOFTWARE\${PRODUCT_NAME}" "BinVersion" "${GTK_BIN_VERSION}" | ||||||
|  |  | ||||||
|  | 		WriteRegStr HKLM "SOFTWARE\${PRODUCT_NAME}" "DllDirName" "$DLL_DIR_NAME"  ; lib, bin, or "" | ||||||
|  | 		WriteRegStr HKLM "SOFTWARE\${PRODUCT_NAME}" "UsingSystemPath" $ADD_TO_PATH | ||||||
|  | 		WriteRegStr HKLM "SOFTWARE\${PRODUCT_NAME}" "TranslationsInstalled" $SEC_TRANSLATIONS_INSTALLED | ||||||
|  |  | ||||||
|  | 		; compat with installer from http://gimp-win.sourceforge.net/ | ||||||
|  | 		WriteRegStr HKLM "SOFTWARE\GTK\3.0" "Path" "$INSTDIR" | ||||||
|  | 		WriteRegStr HKLM "SOFTWARE\GTK\3.0" "Version" "${GTK_VERSION}" | ||||||
|  | 		; compat with Dropline's GTK | ||||||
|  | 		WriteRegStr HKLM "SOFTWARE\GTK\3.0" "DllPath" "$LIB_INSTDIR" | ||||||
|  |  | ||||||
|  | 		; Information for the uninstall component in "add/remove programs" | ||||||
|  | 		WriteRegStr HKLM "${PRODUCT_UNINST_KEY}" "DisplayName" "${PRODUCT_NAME}" | ||||||
|  | 		WriteRegStr HKLM "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\gtk3_runtime_uninst.exe" | ||||||
|  | 		WriteRegStr HKLM "${PRODUCT_UNINST_KEY}" "InstallLocation" "$INSTDIR" | ||||||
|  | 		WriteRegStr HKLM "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}" | ||||||
|  | 		WriteRegStr HKLM "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\gtk3-runtime\gtk.ico" | ||||||
|  | 		WriteRegStr HKLM "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}" | ||||||
|  | 		WriteRegStr HKLM "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}" | ||||||
|  | 		WriteRegDWORD HKLM "${PRODUCT_UNINST_KEY}" "NoModify" 1 | ||||||
|  | 		WriteRegDWORD HKLM "${PRODUCT_UNINST_KEY}" "NoRepair" 1 | ||||||
|  |  | ||||||
|  | 		; uninstall shortcut | ||||||
|  | 		CreateDirectory "$SMPROGRAMS\GTK3 Runtime 64-bit" | ||||||
|  | 		CreateShortCut "$SMPROGRAMS\GTK3 Runtime 64-bit\Uninstall GTK3 Runtime.lnk" "$INSTDIR\gtk3_runtime_uninst.exe" "" "" | ||||||
|  | 		WriteIniStr "$SMPROGRAMS\GTK3 Runtime 64-bit\Go to the website.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}" | ||||||
|  |  | ||||||
|  |  | ||||||
|  | 		; Write $INSTDIR\gtk2-runtime\gtk2r-env.bat | ||||||
|  | 		; This script sets the GTK environment variables | ||||||
|  | 		DetailPrint "Generating $INSTDIR\gtk3-runtime\gtk3r-env.bat" | ||||||
|  | 		Push $INSTDIR\gtk3-runtime\gtk3r-env.bat | ||||||
|  | 		Call WriteEnvBat | ||||||
|  | 		DetailPrint "Done" | ||||||
|  |  | ||||||
|  | 	no_sideeffects: | ||||||
|  |  | ||||||
|  | SectionEnd ; post | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  | ; ---------------- UNINSTALL | ||||||
|  |  | ||||||
|  |  | ||||||
|  | ; Note: These options are unsupported unless the uninstaller is launched in silent mode (/S). | ||||||
|  | var uninstall_option_remove_config  ; yes, no (default). | ||||||
|  | var uninstall_option_sideeffects  ; yes (default), no. Use if it was installed with this option. | ||||||
|  | ; These are used only if /sideffects=no : | ||||||
|  | var uninstall_option_dllpath  ; uninstall dlls from: bin (default), lib, root. | ||||||
|  | var uninstall_option_translations  ; uninstall translations: yes, no (default) | ||||||
|  |  | ||||||
|  |  | ||||||
|  | Function un.onInit | ||||||
|  | 	SetRegView 64 | ||||||
|  | 	${GetOptions} "$CMDLINE" "/remove_config=" $uninstall_option_remove_config | ||||||
|  | 	${GetOptions} "$CMDLINE" "/sideeffects=" $uninstall_option_sideeffects | ||||||
|  | 	${GetOptions} "$CMDLINE" "/dllpath=" $uninstall_option_dllpath | ||||||
|  | 	${GetOptions} "$CMDLINE" "/translations=" $uninstall_option_translations | ||||||
|  | FunctionEnd | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  | Function un.onUninstSuccess | ||||||
|  | 	HideWindow | ||||||
|  | 	MessageBox MB_ICONINFORMATION|MB_OK "$(^Name) was successfully removed from your computer." /SD IDOK | ||||||
|  | FunctionEnd | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  | var leave_config  ; don't remove global gtk config (uninstall page option) | ||||||
|  | ;var INST_DIR_REG  ; installation dir from registry (uninstall stage) | ||||||
|  |  | ||||||
|  |  | ||||||
|  | ; This is a separate function to allow multiple calls to it | ||||||
|  | Function un.DeleteDlls | ||||||
|  | 	SetShellVarContext all  ; use all user variables as opposed to current user | ||||||
|  |  | ||||||
|  | 	StrCpy $LIB_INSTDIR "$INSTDIR" | ||||||
|  | 	StrCmp $DLL_DIR_NAME "" un_no_dll_append | ||||||
|  | 		StrCpy $LIB_INSTDIR "$INSTDIR\$DLL_DIR_NAME" | ||||||
|  | 	un_no_dll_append: | ||||||
|  |  | ||||||
|  | 	; bin stuff (they are in the same directory) | ||||||
|  | 	Delete $LIB_INSTDIR\fc-cache.exe | ||||||
|  | 	Delete $LIB_INSTDIR\fc-cat.exe | ||||||
|  | 	Delete $LIB_INSTDIR\fc-list.exe | ||||||
|  | 	Delete $LIB_INSTDIR\fc-match.exe | ||||||
|  | 	Delete $LIB_INSTDIR\fc-pattern.exe | ||||||
|  | 	Delete $LIB_INSTDIR\fc-query.exe | ||||||
|  | 	Delete $LIB_INSTDIR\fc-scan.exe | ||||||
|  | 	Delete $LIB_INSTDIR\fc-validate.exe | ||||||
|  | 	Delete $LIB_INSTDIR\gdk-pixbuf-query-loaders.exe | ||||||
|  | 	Delete $LIB_INSTDIR\gspawn-win64-helper.exe | ||||||
|  | 	Delete $LIB_INSTDIR\gspawn-win64-helper-console.exe | ||||||
|  | 	Delete $LIB_INSTDIR\gtk-query-immodules-3.0.exe | ||||||
|  | 	Delete $LIB_INSTDIR\gtk-update-icon-cache.exe | ||||||
|  | 	Delete $LIB_INSTDIR\pango-querymodules.exe | ||||||
|  |  | ||||||
|  | 	; dlls | ||||||
|  | 	Delete $LIB_INSTDIR\libatk-1.0-0.dll  ; atk | ||||||
|  | 	Delete $LIB_INSTDIR\libatkmm-1.6-1.dll  ; atk | ||||||
|  | 	Delete $LIB_INSTDIR\libcairo-2.dll  ; cairo, needed by gtk | ||||||
|  | 	Delete $LIB_INSTDIR\libcairo-gobject-2.dll  ; cairo. Doesn't seem to be required, but since we're distributing cairo... | ||||||
|  | 	Delete $LIB_INSTDIR\libcairo-script-interpreter-2.dll  ; cairo. Doesn't seem to be required, but since we're distributing cairo... | ||||||
|  | 	Delete $LIB_INSTDIR\libcairomm-1.0-1.dll | ||||||
|  | 	Delete $LIB_INSTDIR\libffi-6.dll  ; libffi is required by glib  | ||||||
|  | 	Delete $LIB_INSTDIR\libfontconfig-1.dll  ; fontconfig is needed for ft2 pango backend | ||||||
|  | 	Delete $LIB_INSTDIR\libfreetype-6.dll  ; freetype is needed for ft2 pango backend | ||||||
|  | 	Delete $LIB_INSTDIR\libgailutil-3-0.dll  ; from gtk | ||||||
|  | 	Delete $LIB_INSTDIR\libgdk_pixbuf-2.0-0.dll  ; from gtk | ||||||
|  | 	Delete $LIB_INSTDIR\libgdk-3-0.dll  ; from gtk | ||||||
|  | 	Delete $LIB_INSTDIR\libgdkmm-3.0-1.dll | ||||||
|  | 	Delete $LIB_INSTDIR\libgio-2.0-0.dll  ; from glib | ||||||
|  | 	Delete $LIB_INSTDIR\libglib-2.0-0.dll  ; glib | ||||||
|  | 	Delete $LIB_INSTDIR\libglibmm-2.4-1.dll  ; glib | ||||||
|  | 	Delete $LIB_INSTDIR\libgiomm-2.4-1.dll  ; glib | ||||||
|  | 	Delete $LIB_INSTDIR\libsigc-2.0-0.dll  ; glib | ||||||
|  | 	Delete $LIB_INSTDIR\libglibmm_generate_extra_defs-2.4-1.dll  ; glib | ||||||
|  | 	Delete $LIB_INSTDIR\libgmodule-2.0-0.dll  ; from glib | ||||||
|  | 	Delete $LIB_INSTDIR\libgobject-2.0-0.dll  ; from glib | ||||||
|  | 	Delete $LIB_INSTDIR\libgthread-2.0-0.dll  ; from glib | ||||||
|  | 	Delete $LIB_INSTDIR\libgtk-3-0.dll  ; gtk | ||||||
|  | 	Delete $LIB_INSTDIR\libgtkmm-3.0-1.dll | ||||||
|  | 	Delete $LIB_INSTDIR\libharfbuzz-0.dll | ||||||
|  | 	Delete $LIB_INSTDIR\libintl-8.dll  ; gettext, needed by all i18n libs | ||||||
|  | 	Delete $LIB_INSTDIR\libpango-1.0-0.dll  ; pango, needed by gtk | ||||||
|  | 	Delete $LIB_INSTDIR\libpangocairo-1.0-0.dll  ; pango, needed by gtk | ||||||
|  | 	Delete $LIB_INSTDIR\libpangowin32-1.0-0.dll  ; pango, needed by gtk | ||||||
|  | 	Delete $LIB_INSTDIR\libpangoft2-1.0-0.dll  ; pango, needed by gtk | ||||||
|  | 	Delete $LIB_INSTDIR\libpangomm-1.4-1.dll | ||||||
|  | 	Delete $LIB_INSTDIR\libpixman-1-0.dll  ; libpixman, needed by cairo | ||||||
|  | 	Delete $LIB_INSTDIR\libpng16-16.dll  ; for gdk_pixbuf loader. | ||||||
|  | 	Delete $LIB_INSTDIR\libxml2-2.dll  ; fontconfig needs this | ||||||
|  | 	Delete $LIB_INSTDIR\zlib1.dll  ; png and many others need this | ||||||
|  | 	Delete $LIB_INSTDIR\libstdc++_64-6.dll | ||||||
|  | 	Delete $LIB_INSTDIR\libgcc_s_seh_64-1.dll | ||||||
|  |  | ||||||
|  |  | ||||||
|  | FunctionEnd | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  | var found_dir | ||||||
|  | var find_handle_lang_dir | ||||||
|  |  | ||||||
|  |  | ||||||
|  | Section Uninstall | ||||||
|  | 	SetShellVarContext all  ; use all user variables as opposed to current user | ||||||
|  | 	SetAutoClose false | ||||||
|  |  | ||||||
|  | 	; Note: Checking if there is a registry key present, and using it to determine | ||||||
|  | 	; if this is a private installation will not work, as it will break if a parallel | ||||||
|  | 	; shared installation is present. | ||||||
|  |  | ||||||
|  | 	; ReadRegStr $INST_DIR_REG HKLM "SOFTWARE\${PRODUCT_NAME}" "InstallationDirectory" | ||||||
|  | 	; StrCmp $INST_DIR_REG "" uninst_no_sideeffects | ||||||
|  | 	StrCmp $uninstall_option_sideeffects "no" uninst_no_sideeffects | ||||||
|  | 		; For PATH removal | ||||||
|  | 		ReadRegStr $LIB_INSTDIR HKLM "SOFTWARE\${PRODUCT_NAME}" "DllPath" | ||||||
|  | 		ReadRegStr $DLL_DIR_NAME HKLM "SOFTWARE\${PRODUCT_NAME}" "DllDirName" | ||||||
|  | 		ReadRegStr $ADD_TO_PATH HKLM "SOFTWARE\${PRODUCT_NAME}" "UsingSystemPath" | ||||||
|  | 		ReadRegStr $SEC_TRANSLATIONS_INSTALLED HKLM "SOFTWARE\${PRODUCT_NAME}" "TranslationsInstalled" | ||||||
|  |  | ||||||
|  | 		DeleteRegKey HKLM "SOFTWARE\GTK\3.0"  ; dropline, etc... | ||||||
|  | 		DeleteRegKey /ifempty HKLM "SOFTWARE\GTK"  ; don't damage other installations | ||||||
|  |  | ||||||
|  | 		DeleteRegKey HKLM "SOFTWARE\${PRODUCT_NAME}" | ||||||
|  | 		DeleteRegKey HKLM "${PRODUCT_UNINST_KEY}" | ||||||
|  |  | ||||||
|  | 		; FIXME: Do we have this registry key? | ||||||
|  | 		; DeleteRegKey HKCU "Software\${PRODUCT_NAME}" | ||||||
|  |  | ||||||
|  | 		Delete "$SMPROGRAMS\GTK3 Runtime 64-bit\Uninstall GTK3 Runtime.lnk" | ||||||
|  | 		Delete "$SMPROGRAMS\GTK3 Runtime 64-bit\Go to the website.url" | ||||||
|  | 		RMDir "$SMPROGRAMS\GTK3 Runtime 64-bit"  ; only if empty, theme selector may still be there | ||||||
|  |  | ||||||
|  | 		; Remove GTK from $PATH | ||||||
|  | 		StrCmp $ADD_TO_PATH "0" un_nopath  ; Setting $PATH was not requested during installation | ||||||
|  | 		; Push $LIB_INSTDIR | ||||||
|  | 		; Call un.RemoveFromPath | ||||||
|  | 		Push $0  ; result PATH | ||||||
|  | 		${un.EnvVarUpdate} $0 "PATH" "R" "HKLM" "$LIB_INSTDIR" ; remove | ||||||
|  | 		Pop $0 | ||||||
|  | 		; MessageBox MB_OK "$LIB_INSTDIR removed from PATH" /SD IDOK | ||||||
|  | 		un_nopath: | ||||||
|  |  | ||||||
|  | 		; $DLL_DIR_NAME is from the registry here | ||||||
|  | 		Call un.DeleteDlls | ||||||
|  |  | ||||||
|  | 		goto delete_dlls_exit | ||||||
|  |  | ||||||
|  |  | ||||||
|  | 	uninst_no_sideeffects: | ||||||
|  |  | ||||||
|  |  | ||||||
|  | 		Strcpy $SEC_TRANSLATIONS_INSTALLED "0" | ||||||
|  | 		StrCmp $uninstall_option_translations "yes" "" nodelete_translations | ||||||
|  | 			Strcpy $SEC_TRANSLATIONS_INSTALLED "1" | ||||||
|  | 		nodelete_translations: | ||||||
|  |  | ||||||
|  |  | ||||||
|  | 		; All dll files. We delete them before /bin and /lib, so that | ||||||
|  | 		; the directories are empty afterwards. | ||||||
|  |  | ||||||
|  | 		; Since we have no registry, we have to remove dlls from all possible locations | ||||||
|  | 		; StrCpy $DLL_DIR_NAME "" | ||||||
|  | 		; Call un.DeleteDlls | ||||||
|  | 		; StrCpy $DLL_DIR_NAME "bin" | ||||||
|  | 		; Call un.DeleteDlls | ||||||
|  | 		; StrCpy $DLL_DIR_NAME "lib" | ||||||
|  | 		; Call un.DeleteDlls | ||||||
|  | 		 | ||||||
|  | 		; Force users to use the command-line argument instead: | ||||||
|  | 		; if silent, use the /dllpath= option | ||||||
|  | 		StrCmp $uninstall_option_dllpath "bin" goto_undll_bin | ||||||
|  | 		StrCmp $uninstall_option_dllpath "lib" goto_undll_lib | ||||||
|  | 		StrCmp $uninstall_option_dllpath "root" goto_undll_none goto_undll_bin  ; default to bin if not matched | ||||||
|  |  | ||||||
|  | 		goto_undll_none: | ||||||
|  | 			StrCpy $DLL_DIR_NAME "" | ||||||
|  | 			goto goto_undll_exit | ||||||
|  | 		goto_undll_lib: | ||||||
|  | 			StrCpy $DLL_DIR_NAME "lib" | ||||||
|  | 			goto goto_undll_exit | ||||||
|  | 		goto_undll_bin: | ||||||
|  | 			StrCpy $DLL_DIR_NAME "bin" | ||||||
|  | 			goto goto_undll_exit | ||||||
|  |  | ||||||
|  | 		goto_undll_exit: | ||||||
|  | 		    Call un.DeleteDlls | ||||||
|  |  | ||||||
|  | 	delete_dlls_exit: | ||||||
|  |  | ||||||
|  |  | ||||||
|  | 	; Delete config file? | ||||||
|  | 	IfSilent "" read_config_page | ||||||
|  | 		StrCmp $uninstall_option_remove_config "yes" delete_config skip_config | ||||||
|  |  | ||||||
|  | 	read_config_page: | ||||||
|  | 		!insertmacro INSTALLOPTIONS_READ $leave_config "nsi_configpage.ini" "Field 1" "State" | ||||||
|  | 		StrCmp $leave_config "1" skip_config | ||||||
|  |  | ||||||
|  | 	delete_config: | ||||||
|  | 		;Delete "$INSTDIR\etc\gtk-2.0\gtkrc" | ||||||
|  | 	skip_config: | ||||||
|  |  | ||||||
|  |  | ||||||
|  | 	;Delete "$INSTDIR\etc\fonts\fonts.conf" | ||||||
|  | 	;RMDir "$INSTDIR\etc\fonts"  ; only if empty | ||||||
|  | 	;Delete "$INSTDIR\etc\pango\pango.modules" | ||||||
|  | 	;RMDir "$INSTDIR\etc\pango"  ; only if empty | ||||||
|  | 	; Delete "$INSTDIR\etc\gtk-2.0\gdk-pixbuf.loaders" | ||||||
|  | 	;Delete "$INSTDIR\etc\gtk-2.0\gtk.immodules" | ||||||
|  | 	;Delete "$INSTDIR\etc\gtk-2.0\gtkrc.default" | ||||||
|  | 	Delete "$INSTDIR\etc\gtk-3.0\im-multipress.conf" | ||||||
|  | 	RMDir "$INSTDIR\etc\gtk-3.0" ; only if empty | ||||||
|  | 	RMDir "$INSTDIR\etc" ; only if empty | ||||||
|  |  | ||||||
|  | 	; some helper files here | ||||||
|  | 	RMDir /r "$INSTDIR\gtk3-runtime" | ||||||
|  |  | ||||||
|  | 	RMDir "$INSTDIR\bin"  ; only if empty | ||||||
|  |  | ||||||
|  | 	; RMDir /r "$INSTDIR\lib" | ||||||
|  | 	; pango modules are gone as of gtk 2.10 | ||||||
|  | 	;  RMDir /r "$INSTDIR\lib\pango" | ||||||
|  | 	 | ||||||
|  | 	Delete "$INSTDIR\lib\gdk-pixbuf-2.0\2.10.0\loaders.cache" | ||||||
|  | 	; RMDir "$INSTDIR\lib\gdk-pixbuf-2.0\${GTK_BIN_VERSION}\loaders"  ; not forced | ||||||
|  | 	RMDir "$INSTDIR\lib\gdk-pixbuf-2.0\2.10.0"  ; not forced | ||||||
|  | 	RMDir "$INSTDIR\lib\gdk-pixbuf-2.0"  ; not forced | ||||||
|  |  | ||||||
|  |  | ||||||
|  | 	;RMDir /r "$INSTDIR\lib\gtk-2.0\modules" | ||||||
|  |  | ||||||
|  | 	; no longer in gtk as of 2.14.5 | ||||||
|  | 	;RMDir /r "$INSTDIR\lib\gtk-3.0\${GTK_BIN_VERSION}\immodules" | ||||||
|  | 	; gone as of gtk 2.16.6-2 | ||||||
|  | 	;RMDir /r "$INSTDIR\lib\gtk-2.0\${GTK_BIN_VERSION}\loaders" | ||||||
|  |  | ||||||
|  | 	;Delete "$INSTDIR\lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libwimp*.dll" | ||||||
|  | 	; there should be no problem deleting this | ||||||
|  | 	;Delete "$INSTDIR\lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libpixmap*.dll" | ||||||
|  |  | ||||||
|  | 	;RMDir "$INSTDIR\lib\gtk-2.0\${GTK_BIN_VERSION}\engines"  ; not forced | ||||||
|  | 	;RMDir "$INSTDIR\lib\gtk-2.0\${GTK_BIN_VERSION}"  ; not forced | ||||||
|  | 	;RMDir "$INSTDIR\lib\gtk-2.0"  ; not forced | ||||||
|  |  | ||||||
|  | 	RMDir "$INSTDIR\lib"  ; not forced | ||||||
|  |  | ||||||
|  | 	Delete "$INSTDIR\share\locale\locale.alias"  ; gettext | ||||||
|  |  | ||||||
|  | 	; Remove our translations only | ||||||
|  | 	StrCmp $SEC_TRANSLATIONS_INSTALLED "1" "" un_notranslations | ||||||
|  | 		FindFirst $find_handle_lang_dir $found_dir "$INSTDIR\share\locale\*" | ||||||
|  | 		find_lang_dir_next: | ||||||
|  | 		; DetailPrint "LOC: $found_dir" | ||||||
|  | 		StrCmp $found_dir "" find_lang_dir_done | ||||||
|  | 		; check if it's a directory | ||||||
|  | 		IfFileExists "$INSTDIR\share\locale\$found_dir\*.*" "" find_lang_dir_continue | ||||||
|  | 		IfFileExists "$INSTDIR\share\locale\$found_dir\LC_MESSAGES\*.*" "" find_lang_dir_continue | ||||||
|  |  | ||||||
|  | 		Delete "$INSTDIR\share\locale\$found_dir\LC_MESSAGES\atk10.mo" | ||||||
|  | 		Delete "$INSTDIR\share\locale\$found_dir\LC_MESSAGES\gdk-pixbuf.mo" | ||||||
|  | 		Delete "$INSTDIR\share\locale\$found_dir\LC_MESSAGES\glib20.mo" | ||||||
|  | 		Delete "$INSTDIR\share\locale\$found_dir\LC_MESSAGES\gtk20.mo" | ||||||
|  | 		Delete "$INSTDIR\share\locale\$found_dir\LC_MESSAGES\gtk20-properties.mo" | ||||||
|  | 		Delete "$INSTDIR\share\locale\$found_dir\LC_MESSAGES\gtk30.mo" | ||||||
|  | 		Delete "$INSTDIR\share\locale\$found_dir\LC_MESSAGES\gtk30-properties.mo" | ||||||
|  | 		Delete "$INSTDIR\share\locale\$found_dir\LC_MESSAGES\gettext-runtime.mo" | ||||||
|  | 		Delete "$INSTDIR\share\locale\$found_dir\LC_MESSAGES\gettext-tools.mo" | ||||||
|  |  | ||||||
|  | 		RmDir "$INSTDIR\share\locale\$found_dir\LC_MESSAGES"  ; only if empty | ||||||
|  | 		RmDir "$INSTDIR\share\locale\$found_dir" | ||||||
|  |  | ||||||
|  | 		find_lang_dir_continue: | ||||||
|  | 		FindNext $find_handle_lang_dir $found_dir | ||||||
|  | 		goto find_lang_dir_next | ||||||
|  | 		find_lang_dir_done: | ||||||
|  | 		FindClose $find_handle_lang_dir | ||||||
|  |  | ||||||
|  | 	un_notranslations: | ||||||
|  | 	RMDir "$INSTDIR\share\locale"  ; only if empty, not to remove the other programs' translations | ||||||
|  |  | ||||||
|  |  | ||||||
|  | 	RMDir /r "$INSTDIR\share\themes\Default" | ||||||
|  | 	RMDir /r "$INSTDIR\share\themes\Emacs" | ||||||
|  |  | ||||||
|  | 	RMDir "$INSTDIR\share\themes"  ; not forced | ||||||
|  | 	RMDir "$INSTDIR\share"  ; not forced | ||||||
|  |  | ||||||
|  | 	Delete "$INSTDIR\gtk3_runtime_uninst.exe" | ||||||
|  |  | ||||||
|  | 	RMDir "$INSTDIR"  ; delete only if empty | ||||||
|  |  | ||||||
|  | SectionEnd ; end of uninstall section | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  | ; --------------- Helpers | ||||||
|  |  | ||||||
|  |  | ||||||
|  | ; WriteEnvBat | ||||||
|  | Function WriteEnvBat | ||||||
|  | 	Pop $R0 ; Output file | ||||||
|  | 	Push $R9 | ||||||
|  | 		FileOpen $R9 $R0 w | ||||||
|  | 		FileWrite $R9 "@set GTK3R_PREFIX=$LIB_INSTDIR$\r$\n" | ||||||
|  | 		FileWrite $R9 "$\r$\n" | ||||||
|  | 		FileWrite $R9 "@echo Setting environment variables for GTK3-Runtime.$\r$\n" | ||||||
|  | 		FileWrite $R9 "@echo.$\r$\n" | ||||||
|  | 		FileWrite $R9 "$\r$\n" | ||||||
|  | 		FileWrite $R9 "@echo set PATH=%GTK3R_PREFIX%;%%PATH%%$\r$\n" | ||||||
|  | 		FileWrite $R9 "@set PATH=%GTK3R_PREFIX%;%PATH%$\r$\n" | ||||||
|  | 		FileWrite $R9 "$\r$\n" | ||||||
|  | 		FileWrite $R9 "@echo.$\r$\n" | ||||||
|  | 		FileClose $R9 | ||||||
|  | 	Pop $R9 | ||||||
|  | FunctionEnd | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  | ; WritePostInstall | ||||||
|  | Function WritePostInstall | ||||||
|  | 	SetShellVarContext all  ; use all user variables as opposed to current user | ||||||
|  | 	Pop $R0 ; Output file | ||||||
|  | 	Push $R9 | ||||||
|  | 		FileOpen $R9 $R0 w | ||||||
|  | 		FileWrite $R9 "@echo off$\r$\n" | ||||||
|  | 		FileWrite $R9 "$\"$INSTDIR\bin\pango-querymodules.exe$\" > $\"$INSTDIR\etc\pango\pango.modules$\"$\r$\n" | ||||||
|  | 		FileWrite $R9 "rem $\"$INSTDIR\bin\gdk-pixbuf-query-loaders.exe$\" > $\"$INSTDIR\etc\gtk-3.0\gdk-pixbuf.loaders$\"$\r$\n" | ||||||
|  | 		FileWrite $R9 "$\"$INSTDIR\bin\gtk-query-immodules-3.0.exe$\" > $\"$INSTDIR\etc\gtk-3.0\gtk.immodules$\"$\r$\n" | ||||||
|  | 		FileWrite $R9 "rem $\"$INSTDIR\bin\gtk-update-icon-cache.exe$\"$\r$\n" | ||||||
|  | 		FileClose $R9 | ||||||
|  | 	Pop $R9 | ||||||
|  | FunctionEnd | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  | ; Detect previous installation | ||||||
|  | Function DetectPrevInstallation | ||||||
|  | 	; if /removeold=no option is given, don't check anything. | ||||||
|  | 	StrCmp $install_option_removeold "no" old_detect_done | ||||||
|  |  | ||||||
|  | 	SetShellVarContext all  ; use all user variables as opposed to current user | ||||||
|  | 	push $R0 | ||||||
|  |  | ||||||
|  | 	; detect previous installation | ||||||
|  | 	ReadRegStr $R0 HKLM "${PRODUCT_UNINST_KEY}" "UninstallString" | ||||||
|  | 	StrCmp $R0 "" old_detect_done | ||||||
|  |  | ||||||
|  | 	MessageBox MB_OKCANCEL|MB_ICONEXCLAMATION \ | ||||||
|  | 		"${PRODUCT_NAME} is already installed. $\n$\nClick `OK` to remove the \ | ||||||
|  | 		previous version or `Cancel` to continue anyway." \ | ||||||
|  | 		/SD IDOK IDOK old_uninst | ||||||
|  | 		; Abort | ||||||
|  | 		goto old_detect_done | ||||||
|  |  | ||||||
|  | 	; Run the old uninstaller | ||||||
|  | 	old_uninst: | ||||||
|  | 		ClearErrors | ||||||
|  | 		IfSilent old_silent_uninst old_nosilent_uninst | ||||||
|  |  | ||||||
|  | 		old_nosilent_uninst: | ||||||
|  | 			ExecWait '$R0' | ||||||
|  | 			goto old_uninst_continue | ||||||
|  |  | ||||||
|  | 		old_silent_uninst: | ||||||
|  | 			; We assume it's an NSIS-generated uninstaller. | ||||||
|  | 			ExecWait '$R0 /S _?=$INSTDIR' | ||||||
|  |  | ||||||
|  | 		old_uninst_continue: | ||||||
|  |  | ||||||
|  | 		IfErrors old_no_remove_uninstaller | ||||||
|  |  | ||||||
|  | 		; You can either use Delete /REBOOTOK in the uninstaller or add some code | ||||||
|  | 		; here to remove to remove the uninstaller. Use a registry key to check | ||||||
|  | 		; whether the user has chosen to uninstall. If you are using an uninstaller | ||||||
|  | 		; components page, make sure all sections are uninstalled. | ||||||
|  | 		old_no_remove_uninstaller: | ||||||
|  |  | ||||||
|  | 	old_detect_done: ; old installation not found, all ok | ||||||
|  |  | ||||||
|  | 	pop $R0 | ||||||
|  | FunctionEnd | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  | ; Prevent running multiple instances of the installer | ||||||
|  | Function PreventMultipleInstances | ||||||
|  | 	Push $R0 | ||||||
|  | 	System::Call 'kernel32::CreateMutexA(i 0, i 0, t ${PRODUCT_NAME}) ?e' | ||||||
|  | 	Pop $R0 | ||||||
|  | 	StrCmp $R0 0 +3 | ||||||
|  | 		MessageBox MB_OK|MB_ICONEXCLAMATION "The installer is already running." /SD IDOK | ||||||
|  | 		Abort | ||||||
|  | 	Pop $R0 | ||||||
|  | FunctionEnd | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  | ; eof | ||||||
| @@ -1,30 +1,23 @@ | |||||||
|  |  | ||||||
| You can find the latest version of this software at http://gtk-win.sourceforge.net. | You can find the latest version of this software at https://github.com/tschoonj/GTK-for-Windows-Runtime-Environment-Installer  | ||||||
| You may reach the packager (Alexander Shaduri) by email at ashaduri 'at' gmail.com | You may reach the packager (Tom Schoonjans and Alexander Shaduri) by email at tom.schoonjans 'at' gmail.com and ashaduri 'at' gmail.com | ||||||
|  |  | ||||||
| The authors make NO WARRANTY or representation, either express or implied, with respect to this software, its quality, accuracy, merchantability, or fitness for a particular purpose.  This software is provided "AS IS", and you, its user, assume the entire risk as to its quality and accuracy. | The authors make NO WARRANTY or representation, either express or implied, with respect to this software, its quality, accuracy, merchantability, or fitness for a particular purpose.  This software is provided "AS IS", and you, its user, assume the entire risk as to its quality and accuracy. | ||||||
|  |  | ||||||
| This package contains the following software (or pieces of it): | This package contains the following software (or pieces of it): | ||||||
| GTK+, ATK, Pango, GLib, gdk_pixbuf: http://www.gtk.org/; | GTK+, ATK, Pango, GLib, gdk_pixbuf, atkmm, glibmm, gtkmm, pangomm, libsigc++: http://www.gtk.org/; | ||||||
| Cairo: http://cairographics.org/; | Cairo, pixman, cairomm: http://cairographics.org/; | ||||||
| Expat: http://expat.sourceforge.net/; | Libxml2: http://xmlsoft.org/; | ||||||
| Fontconfig: http://www.fontconfig.org/; | Fontconfig: http://www.fontconfig.org/; | ||||||
| Freetype2: http://www.freetype.org/; | Freetype2: http://www.freetype.org/; | ||||||
| intl library (from gettext): http://www.gnu.org/software/gettext/; | intl library (from gettext): http://www.gnu.org/software/gettext/; | ||||||
| JPEG library: http://www.ijg.org/; | libiconv: https://code.google.com/p/win-iconv/; | ||||||
| libiconv: http://www.gnu.org/software/libiconv/; |  | ||||||
| libpng: http://www.libpng.org/pub/png/libpng.html; | libpng: http://www.libpng.org/pub/png/libpng.html; | ||||||
| LibTIFF: http://www.libtiff.org/; | harfbuzz: http://www.freedesktop.org/wiki/Software/HarfBuzz/; | ||||||
|  | libffi: https://sourceware.org/libffi/; | ||||||
| zlib: http://www.zlib.net/. | zlib: http://www.zlib.net/. | ||||||
|  |  | ||||||
| You may obtain the respective sources at the URLs listed above. | You may obtain the respective sources as well as their corresponding licenses at the URLs listed above. | ||||||
|  |  | ||||||
| The binaries distributed with this package come from either their official sites (listed above), or from the following locations: | All binaries contained within this installer were compiled by the author using GCC 4.9.2 64-bit provided by the TDM-GCC project (http://tdm-gcc.tdragon.net/). | ||||||
| GTK+, ATK, Pango, GLib, gdk_pixbuf, Cairo and their dependencies can be obtained from http://ftp.gnome.org/pub/gnome/binaries/win32/. |  | ||||||
| Most other binaries can be obtained from http://gnuwin32.sourceforge.net/. |  | ||||||
|  |  | ||||||
| This package contains the licenses of libraries distributed in it: |  | ||||||
| license_lgpl.txt contains a license for GTK+, ATK, Pango, GLib, gdk_pixbuf, Cairo, Expat, Fontconfig, Freetype2, intl, libiconv, LibTIFF; |  | ||||||
| license_jpeg.txt contains a license for libjpeg; |  | ||||||
| license_png.txt contains a license for libpng; |  | ||||||
| license_zlib.txt contains a license for zlib. |  | ||||||
|   | |||||||
| @@ -1,340 +0,0 @@ | |||||||
| 		    GNU GENERAL PUBLIC LICENSE |  | ||||||
| 		       Version 2, June 1991 |  | ||||||
|  |  | ||||||
|  Copyright (C) 1989, 1991 Free Software Foundation, Inc. |  | ||||||
|      59 Temple Place, Suite 330, Boston, MA  02111-1307  USA |  | ||||||
|  Everyone is permitted to copy and distribute verbatim copies |  | ||||||
|  of this license document, but changing it is not allowed. |  | ||||||
|  |  | ||||||
| 			    Preamble |  | ||||||
|  |  | ||||||
|   The licenses for most software are designed to take away your |  | ||||||
| freedom to share and change it.  By contrast, the GNU General Public |  | ||||||
| License is intended to guarantee your freedom to share and change free |  | ||||||
| software--to make sure the software is free for all its users.  This |  | ||||||
| General Public License applies to most of the Free Software |  | ||||||
| Foundation's software and to any other program whose authors commit to |  | ||||||
| using it.  (Some other Free Software Foundation software is covered by |  | ||||||
| the GNU Library General Public License instead.)  You can apply it to |  | ||||||
| your programs, too. |  | ||||||
|  |  | ||||||
|   When we speak of free software, we are referring to freedom, not |  | ||||||
| price.  Our General Public Licenses are designed to make sure that you |  | ||||||
| have the freedom to distribute copies of free software (and charge for |  | ||||||
| this service if you wish), that you receive source code or can get it |  | ||||||
| if you want it, that you can change the software or use pieces of it |  | ||||||
| in new free programs; and that you know you can do these things. |  | ||||||
|  |  | ||||||
|   To protect your rights, we need to make restrictions that forbid |  | ||||||
| anyone to deny you these rights or to ask you to surrender the rights. |  | ||||||
| These restrictions translate to certain responsibilities for you if you |  | ||||||
| distribute copies of the software, or if you modify it. |  | ||||||
|  |  | ||||||
|   For example, if you distribute copies of such a program, whether |  | ||||||
| gratis or for a fee, you must give the recipients all the rights that |  | ||||||
| you have.  You must make sure that they, too, receive or can get the |  | ||||||
| source code.  And you must show them these terms so they know their |  | ||||||
| rights. |  | ||||||
|  |  | ||||||
|   We protect your rights with two steps: (1) copyright the software, and |  | ||||||
| (2) offer you this license which gives you legal permission to copy, |  | ||||||
| distribute and/or modify the software. |  | ||||||
|  |  | ||||||
|   Also, for each author's protection and ours, we want to make certain |  | ||||||
| that everyone understands that there is no warranty for this free |  | ||||||
| software.  If the software is modified by someone else and passed on, we |  | ||||||
| want its recipients to know that what they have is not the original, so |  | ||||||
| that any problems introduced by others will not reflect on the original |  | ||||||
| authors' reputations. |  | ||||||
|  |  | ||||||
|   Finally, any free program is threatened constantly by software |  | ||||||
| patents.  We wish to avoid the danger that redistributors of a free |  | ||||||
| program will individually obtain patent licenses, in effect making the |  | ||||||
| program proprietary.  To prevent this, we have made it clear that any |  | ||||||
| patent must be licensed for everyone's free use or not licensed at all. |  | ||||||
|  |  | ||||||
|   The precise terms and conditions for copying, distribution and |  | ||||||
| modification follow. |  | ||||||
|  |  | ||||||
| 		    GNU GENERAL PUBLIC LICENSE |  | ||||||
|    TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION |  | ||||||
|  |  | ||||||
|   0. This License applies to any program or other work which contains |  | ||||||
| a notice placed by the copyright holder saying it may be distributed |  | ||||||
| under the terms of this General Public License.  The "Program", below, |  | ||||||
| refers to any such program or work, and a "work based on the Program" |  | ||||||
| means either the Program or any derivative work under copyright law: |  | ||||||
| that is to say, a work containing the Program or a portion of it, |  | ||||||
| either verbatim or with modifications and/or translated into another |  | ||||||
| language.  (Hereinafter, translation is included without limitation in |  | ||||||
| the term "modification".)  Each licensee is addressed as "you". |  | ||||||
|  |  | ||||||
| Activities other than copying, distribution and modification are not |  | ||||||
| covered by this License; they are outside its scope.  The act of |  | ||||||
| running the Program is not restricted, and the output from the Program |  | ||||||
| is covered only if its contents constitute a work based on the |  | ||||||
| Program (independent of having been made by running the Program). |  | ||||||
| Whether that is true depends on what the Program does. |  | ||||||
|  |  | ||||||
|   1. You may copy and distribute verbatim copies of the Program's |  | ||||||
| source code as you receive it, in any medium, provided that you |  | ||||||
| conspicuously and appropriately publish on each copy an appropriate |  | ||||||
| copyright notice and disclaimer of warranty; keep intact all the |  | ||||||
| notices that refer to this License and to the absence of any warranty; |  | ||||||
| and give any other recipients of the Program a copy of this License |  | ||||||
| along with the Program. |  | ||||||
|  |  | ||||||
| You may charge a fee for the physical act of transferring a copy, and |  | ||||||
| you may at your option offer warranty protection in exchange for a fee. |  | ||||||
|  |  | ||||||
|   2. You may modify your copy or copies of the Program or any portion |  | ||||||
| of it, thus forming a work based on the Program, and copy and |  | ||||||
| distribute such modifications or work under the terms of Section 1 |  | ||||||
| above, provided that you also meet all of these conditions: |  | ||||||
|  |  | ||||||
|     a) You must cause the modified files to carry prominent notices |  | ||||||
|     stating that you changed the files and the date of any change. |  | ||||||
|  |  | ||||||
|     b) You must cause any work that you distribute or publish, that in |  | ||||||
|     whole or in part contains or is derived from the Program or any |  | ||||||
|     part thereof, to be licensed as a whole at no charge to all third |  | ||||||
|     parties under the terms of this License. |  | ||||||
|  |  | ||||||
|     c) If the modified program normally reads commands interactively |  | ||||||
|     when run, you must cause it, when started running for such |  | ||||||
|     interactive use in the most ordinary way, to print or display an |  | ||||||
|     announcement including an appropriate copyright notice and a |  | ||||||
|     notice that there is no warranty (or else, saying that you provide |  | ||||||
|     a warranty) and that users may redistribute the program under |  | ||||||
|     these conditions, and telling the user how to view a copy of this |  | ||||||
|     License.  (Exception: if the Program itself is interactive but |  | ||||||
|     does not normally print such an announcement, your work based on |  | ||||||
|     the Program is not required to print an announcement.) |  | ||||||
|  |  | ||||||
| These requirements apply to the modified work as a whole.  If |  | ||||||
| identifiable sections of that work are not derived from the Program, |  | ||||||
| and can be reasonably considered independent and separate works in |  | ||||||
| themselves, then this License, and its terms, do not apply to those |  | ||||||
| sections when you distribute them as separate works.  But when you |  | ||||||
| distribute the same sections as part of a whole which is a work based |  | ||||||
| on the Program, the distribution of the whole must be on the terms of |  | ||||||
| this License, whose permissions for other licensees extend to the |  | ||||||
| entire whole, and thus to each and every part regardless of who wrote it. |  | ||||||
|  |  | ||||||
| Thus, it is not the intent of this section to claim rights or contest |  | ||||||
| your rights to work written entirely by you; rather, the intent is to |  | ||||||
| exercise the right to control the distribution of derivative or |  | ||||||
| collective works based on the Program. |  | ||||||
|  |  | ||||||
| In addition, mere aggregation of another work not based on the Program |  | ||||||
| with the Program (or with a work based on the Program) on a volume of |  | ||||||
| a storage or distribution medium does not bring the other work under |  | ||||||
| the scope of this License. |  | ||||||
|  |  | ||||||
|   3. You may copy and distribute the Program (or a work based on it, |  | ||||||
| under Section 2) in object code or executable form under the terms of |  | ||||||
| Sections 1 and 2 above provided that you also do one of the following: |  | ||||||
|  |  | ||||||
|     a) Accompany it with the complete corresponding machine-readable |  | ||||||
|     source code, which must be distributed under the terms of Sections |  | ||||||
|     1 and 2 above on a medium customarily used for software interchange; or, |  | ||||||
|  |  | ||||||
|     b) Accompany it with a written offer, valid for at least three |  | ||||||
|     years, to give any third party, for a charge no more than your |  | ||||||
|     cost of physically performing source distribution, a complete |  | ||||||
|     machine-readable copy of the corresponding source code, to be |  | ||||||
|     distributed under the terms of Sections 1 and 2 above on a medium |  | ||||||
|     customarily used for software interchange; or, |  | ||||||
|  |  | ||||||
|     c) Accompany it with the information you received as to the offer |  | ||||||
|     to distribute corresponding source code.  (This alternative is |  | ||||||
|     allowed only for noncommercial distribution and only if you |  | ||||||
|     received the program in object code or executable form with such |  | ||||||
|     an offer, in accord with Subsection b above.) |  | ||||||
|  |  | ||||||
| The source code for a work means the preferred form of the work for |  | ||||||
| making modifications to it.  For an executable work, complete source |  | ||||||
| code means all the source code for all modules it contains, plus any |  | ||||||
| associated interface definition files, plus the scripts used to |  | ||||||
| control compilation and installation of the executable.  However, as a |  | ||||||
| special exception, the source code distributed need not include |  | ||||||
| anything that is normally distributed (in either source or binary |  | ||||||
| form) with the major components (compiler, kernel, and so on) of the |  | ||||||
| operating system on which the executable runs, unless that component |  | ||||||
| itself accompanies the executable. |  | ||||||
|  |  | ||||||
| If distribution of executable or object code is made by offering |  | ||||||
| access to copy from a designated place, then offering equivalent |  | ||||||
| access to copy the source code from the same place counts as |  | ||||||
| distribution of the source code, even though third parties are not |  | ||||||
| compelled to copy the source along with the object code. |  | ||||||
|  |  | ||||||
|   4. You may not copy, modify, sublicense, or distribute the Program |  | ||||||
| except as expressly provided under this License.  Any attempt |  | ||||||
| otherwise to copy, modify, sublicense or distribute the Program is |  | ||||||
| void, and will automatically terminate your rights under this License. |  | ||||||
| However, parties who have received copies, or rights, from you under |  | ||||||
| this License will not have their licenses terminated so long as such |  | ||||||
| parties remain in full compliance. |  | ||||||
|  |  | ||||||
|   5. You are not required to accept this License, since you have not |  | ||||||
| signed it.  However, nothing else grants you permission to modify or |  | ||||||
| distribute the Program or its derivative works.  These actions are |  | ||||||
| prohibited by law if you do not accept this License.  Therefore, by |  | ||||||
| modifying or distributing the Program (or any work based on the |  | ||||||
| Program), you indicate your acceptance of this License to do so, and |  | ||||||
| all its terms and conditions for copying, distributing or modifying |  | ||||||
| the Program or works based on it. |  | ||||||
|  |  | ||||||
|   6. Each time you redistribute the Program (or any work based on the |  | ||||||
| Program), the recipient automatically receives a license from the |  | ||||||
| original licensor to copy, distribute or modify the Program subject to |  | ||||||
| these terms and conditions.  You may not impose any further |  | ||||||
| restrictions on the recipients' exercise of the rights granted herein. |  | ||||||
| You are not responsible for enforcing compliance by third parties to |  | ||||||
| this License. |  | ||||||
|  |  | ||||||
|   7. If, as a consequence of a court judgment or allegation of patent |  | ||||||
| infringement or for any other reason (not limited to patent issues), |  | ||||||
| conditions are imposed on you (whether by court order, agreement or |  | ||||||
| otherwise) that contradict the conditions of this License, they do not |  | ||||||
| excuse you from the conditions of this License.  If you cannot |  | ||||||
| distribute so as to satisfy simultaneously your obligations under this |  | ||||||
| License and any other pertinent obligations, then as a consequence you |  | ||||||
| may not distribute the Program at all.  For example, if a patent |  | ||||||
| license would not permit royalty-free redistribution of the Program by |  | ||||||
| all those who receive copies directly or indirectly through you, then |  | ||||||
| the only way you could satisfy both it and this License would be to |  | ||||||
| refrain entirely from distribution of the Program. |  | ||||||
|  |  | ||||||
| If any portion of this section is held invalid or unenforceable under |  | ||||||
| any particular circumstance, the balance of the section is intended to |  | ||||||
| apply and the section as a whole is intended to apply in other |  | ||||||
| circumstances. |  | ||||||
|  |  | ||||||
| It is not the purpose of this section to induce you to infringe any |  | ||||||
| patents or other property right claims or to contest validity of any |  | ||||||
| such claims; this section has the sole purpose of protecting the |  | ||||||
| integrity of the free software distribution system, which is |  | ||||||
| implemented by public license practices.  Many people have made |  | ||||||
| generous contributions to the wide range of software distributed |  | ||||||
| through that system in reliance on consistent application of that |  | ||||||
| system; it is up to the author/donor to decide if he or she is willing |  | ||||||
| to distribute software through any other system and a licensee cannot |  | ||||||
| impose that choice. |  | ||||||
|  |  | ||||||
| This section is intended to make thoroughly clear what is believed to |  | ||||||
| be a consequence of the rest of this License. |  | ||||||
|  |  | ||||||
|   8. If the distribution and/or use of the Program is restricted in |  | ||||||
| certain countries either by patents or by copyrighted interfaces, the |  | ||||||
| original copyright holder who places the Program under this License |  | ||||||
| may add an explicit geographical distribution limitation excluding |  | ||||||
| those countries, so that distribution is permitted only in or among |  | ||||||
| countries not thus excluded.  In such case, this License incorporates |  | ||||||
| the limitation as if written in the body of this License. |  | ||||||
|  |  | ||||||
|   9. The Free Software Foundation may publish revised and/or new versions |  | ||||||
| of the General Public License from time to time.  Such new versions will |  | ||||||
| be similar in spirit to the present version, but may differ in detail to |  | ||||||
| address new problems or concerns. |  | ||||||
|  |  | ||||||
| Each version is given a distinguishing version number.  If the Program |  | ||||||
| specifies a version number of this License which applies to it and "any |  | ||||||
| later version", you have the option of following the terms and conditions |  | ||||||
| either of that version or of any later version published by the Free |  | ||||||
| Software Foundation.  If the Program does not specify a version number of |  | ||||||
| this License, you may choose any version ever published by the Free Software |  | ||||||
| Foundation. |  | ||||||
|  |  | ||||||
|   10. If you wish to incorporate parts of the Program into other free |  | ||||||
| programs whose distribution conditions are different, write to the author |  | ||||||
| to ask for permission.  For software which is copyrighted by the Free |  | ||||||
| Software Foundation, write to the Free Software Foundation; we sometimes |  | ||||||
| make exceptions for this.  Our decision will be guided by the two goals |  | ||||||
| of preserving the free status of all derivatives of our free software and |  | ||||||
| of promoting the sharing and reuse of software generally. |  | ||||||
|  |  | ||||||
| 			    NO WARRANTY |  | ||||||
|  |  | ||||||
|   11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY |  | ||||||
| FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN |  | ||||||
| OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES |  | ||||||
| PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED |  | ||||||
| OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |  | ||||||
| MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS |  | ||||||
| TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE |  | ||||||
| PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, |  | ||||||
| REPAIR OR CORRECTION. |  | ||||||
|  |  | ||||||
|   12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING |  | ||||||
| WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR |  | ||||||
| REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, |  | ||||||
| INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING |  | ||||||
| OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED |  | ||||||
| TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY |  | ||||||
| YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER |  | ||||||
| PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE |  | ||||||
| POSSIBILITY OF SUCH DAMAGES. |  | ||||||
|  |  | ||||||
| 		     END OF TERMS AND CONDITIONS |  | ||||||
|  |  | ||||||
| 	    How to Apply These Terms to Your New Programs |  | ||||||
|  |  | ||||||
|   If you develop a new program, and you want it to be of the greatest |  | ||||||
| possible use to the public, the best way to achieve this is to make it |  | ||||||
| free software which everyone can redistribute and change under these terms. |  | ||||||
|  |  | ||||||
|   To do so, attach the following notices to the program.  It is safest |  | ||||||
| to attach them to the start of each source file to most effectively |  | ||||||
| convey the exclusion of warranty; and each file should have at least |  | ||||||
| the "copyright" line and a pointer to where the full notice is found. |  | ||||||
|  |  | ||||||
|     <one line to give the program's name and a brief idea of what it does.> |  | ||||||
|     Copyright (C) <year>  <name of author> |  | ||||||
|  |  | ||||||
|     This program is free software; you can redistribute it and/or modify |  | ||||||
|     it under the terms of the GNU General Public License as published by |  | ||||||
|     the Free Software Foundation; either version 2 of the License, or |  | ||||||
|     (at your option) any later version. |  | ||||||
|  |  | ||||||
|     This program is distributed in the hope that it will be useful, |  | ||||||
|     but WITHOUT ANY WARRANTY; without even the implied warranty of |  | ||||||
|     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the |  | ||||||
|     GNU General Public License for more details. |  | ||||||
|  |  | ||||||
|     You should have received a copy of the GNU General Public License |  | ||||||
|     along with this program; if not, write to the Free Software |  | ||||||
|     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA |  | ||||||
|  |  | ||||||
|  |  | ||||||
| Also add information on how to contact you by electronic and paper mail. |  | ||||||
|  |  | ||||||
| If the program is interactive, make it output a short notice like this |  | ||||||
| when it starts in an interactive mode: |  | ||||||
|  |  | ||||||
|     Gnomovision version 69, Copyright (C) year  name of author |  | ||||||
|     Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. |  | ||||||
|     This is free software, and you are welcome to redistribute it |  | ||||||
|     under certain conditions; type `show c' for details. |  | ||||||
|  |  | ||||||
| The hypothetical commands `show w' and `show c' should show the appropriate |  | ||||||
| parts of the General Public License.  Of course, the commands you use may |  | ||||||
| be called something other than `show w' and `show c'; they could even be |  | ||||||
| mouse-clicks or menu items--whatever suits your program. |  | ||||||
|  |  | ||||||
| You should also get your employer (if you work as a programmer) or your |  | ||||||
| school, if any, to sign a "copyright disclaimer" for the program, if |  | ||||||
| necessary.  Here is a sample; alter the names: |  | ||||||
|  |  | ||||||
|   Yoyodyne, Inc., hereby disclaims all copyright interest in the program |  | ||||||
|   `Gnomovision' (which makes passes at compilers) written by James Hacker. |  | ||||||
|  |  | ||||||
|   <signature of Ty Coon>, 1 April 1989 |  | ||||||
|   Ty Coon, President of Vice |  | ||||||
|  |  | ||||||
| This General Public License does not permit incorporating your program into |  | ||||||
| proprietary programs.  If your program is a subroutine library, you may |  | ||||||
| consider it more useful to permit linking proprietary applications with the |  | ||||||
| library.  If this is what you want to do, use the GNU Library General |  | ||||||
| Public License instead of this License. |  | ||||||
| @@ -1,50 +0,0 @@ | |||||||
|  |  | ||||||
| LEGAL ISSUES |  | ||||||
| ============ |  | ||||||
|  |  | ||||||
| In plain English: |  | ||||||
|  |  | ||||||
| 1. We don't promise that this software works.  (But if you find any bugs, |  | ||||||
|    please let us know!) |  | ||||||
| 2. You can use this software for whatever you want.  You don't have to pay us. |  | ||||||
| 3. You may not pretend that you wrote this software.  If you use it in a |  | ||||||
|    program, you must acknowledge somewhere in your documentation that |  | ||||||
|    you've used the IJG code. |  | ||||||
|  |  | ||||||
| In legalese: |  | ||||||
|  |  | ||||||
| The authors make NO WARRANTY or representation, either express or implied, |  | ||||||
| with respect to this software, its quality, accuracy, merchantability, or |  | ||||||
| fitness for a particular purpose.  This software is provided "AS IS", and you, |  | ||||||
| its user, assume the entire risk as to its quality and accuracy. |  | ||||||
|  |  | ||||||
| This software is copyright (C) 1991-1998, Thomas G. Lane. |  | ||||||
| All Rights Reserved except as specified below. |  | ||||||
|  |  | ||||||
| Permission is hereby granted to use, copy, modify, and distribute this |  | ||||||
| software (or portions thereof) for any purpose, without fee, subject to these |  | ||||||
| conditions: |  | ||||||
| (1) If any part of the source code for this software is distributed, then this |  | ||||||
| README file must be included, with this copyright and no-warranty notice |  | ||||||
| unaltered; and any additions, deletions, or changes to the original files |  | ||||||
| must be clearly indicated in accompanying documentation. |  | ||||||
| (2) If only executable code is distributed, then the accompanying |  | ||||||
| documentation must state that "this software is based in part on the work of |  | ||||||
| the Independent JPEG Group". |  | ||||||
| (3) Permission for use of this software is granted only if the user accepts |  | ||||||
| full responsibility for any undesirable consequences; the authors accept |  | ||||||
| NO LIABILITY for damages of any kind. |  | ||||||
|  |  | ||||||
| These conditions apply to any software derived from or based on the IJG code, |  | ||||||
| not just to the unmodified library.  If you use our work, you ought to |  | ||||||
| acknowledge us. |  | ||||||
|  |  | ||||||
| Permission is NOT granted for the use of any IJG author's name or company name |  | ||||||
| in advertising or publicity relating to this software or products derived from |  | ||||||
| it.  This software may be referred to only as "the Independent JPEG Group's |  | ||||||
| software". |  | ||||||
|  |  | ||||||
| We specifically permit and encourage the use of this software as the basis of |  | ||||||
| commercial products, provided that all warranty or liability claims are |  | ||||||
| assumed by the product vendor. |  | ||||||
|  |  | ||||||
| @@ -1,437 +0,0 @@ | |||||||
| 		  GNU LIBRARY GENERAL PUBLIC LICENSE |  | ||||||
| 		       Version 2, June 1991 |  | ||||||
|  |  | ||||||
|  Copyright (C) 1991 Free Software Foundation, Inc. |  | ||||||
|     		    59 Temple Place, Suite 330, Boston, MA  02111-1307  USA |  | ||||||
|  Everyone is permitted to copy and distribute verbatim copies |  | ||||||
|  of this license document, but changing it is not allowed. |  | ||||||
|  |  | ||||||
| [This is the first released version of the library GPL.  It is |  | ||||||
|  numbered 2 because it goes with version 2 of the ordinary GPL.] |  | ||||||
|  |  | ||||||
| 			    Preamble |  | ||||||
|  |  | ||||||
|   The licenses for most software are designed to take away your |  | ||||||
| freedom to share and change it.  By contrast, the GNU General Public |  | ||||||
| Licenses are intended to guarantee your freedom to share and change |  | ||||||
| free software--to make sure the software is free for all its users. |  | ||||||
|  |  | ||||||
|   This license, the Library General Public License, applies to some |  | ||||||
| specially designated Free Software Foundation software, and to any |  | ||||||
| other libraries whose authors decide to use it.  You can use it for |  | ||||||
| your libraries, too. |  | ||||||
|  |  | ||||||
|   When we speak of free software, we are referring to freedom, not |  | ||||||
| price.  Our General Public Licenses are designed to make sure that you |  | ||||||
| have the freedom to distribute copies of free software (and charge for |  | ||||||
| this service if you wish), that you receive source code or can get it |  | ||||||
| if you want it, that you can change the software or use pieces of it |  | ||||||
| in new free programs; and that you know you can do these things. |  | ||||||
|  |  | ||||||
|   To protect your rights, we need to make restrictions that forbid |  | ||||||
| anyone to deny you these rights or to ask you to surrender the rights. |  | ||||||
| These restrictions translate to certain responsibilities for you if |  | ||||||
| you distribute copies of the library, or if you modify it. |  | ||||||
|  |  | ||||||
|   For example, if you distribute copies of the library, whether gratis |  | ||||||
| or for a fee, you must give the recipients all the rights that we gave |  | ||||||
| you.  You must make sure that they, too, receive or can get the source |  | ||||||
| code.  If you link a program with the library, you must provide |  | ||||||
| complete object files to the recipients so that they can relink them |  | ||||||
| with the library, after making changes to the library and recompiling |  | ||||||
| it.  And you must show them these terms so they know their rights. |  | ||||||
|  |  | ||||||
|   Our method of protecting your rights has two steps: (1) copyright |  | ||||||
| the library, and (2) offer you this license which gives you legal |  | ||||||
| permission to copy, distribute and/or modify the library. |  | ||||||
|  |  | ||||||
|   Also, for each distributor's protection, we want to make certain |  | ||||||
| that everyone understands that there is no warranty for this free |  | ||||||
| library.  If the library is modified by someone else and passed on, we |  | ||||||
| want its recipients to know that what they have is not the original |  | ||||||
| version, so that any problems introduced by others will not reflect on |  | ||||||
| the original authors' reputations. |  | ||||||
|  |  | ||||||
|   Finally, any free program is threatened constantly by software |  | ||||||
| patents.  We wish to avoid the danger that companies distributing free |  | ||||||
| software will individually obtain patent licenses, thus in effect |  | ||||||
| transforming the program into proprietary software.  To prevent this, |  | ||||||
| we have made it clear that any patent must be licensed for everyone's |  | ||||||
| free use or not licensed at all. |  | ||||||
|  |  | ||||||
|   Most GNU software, including some libraries, is covered by the ordinary |  | ||||||
| GNU General Public License, which was designed for utility programs.  This |  | ||||||
| license, the GNU Library General Public License, applies to certain |  | ||||||
| designated libraries.  This license is quite different from the ordinary |  | ||||||
| one; be sure to read it in full, and don't assume that anything in it is |  | ||||||
| the same as in the ordinary license. |  | ||||||
|  |  | ||||||
|   The reason we have a separate public license for some libraries is that |  | ||||||
| they blur the distinction we usually make between modifying or adding to a |  | ||||||
| program and simply using it.  Linking a program with a library, without |  | ||||||
| changing the library, is in some sense simply using the library, and is |  | ||||||
| analogous to running a utility program or application program.  However, in |  | ||||||
| a textual and legal sense, the linked executable is a combined work, a |  | ||||||
| derivative of the original library, and the ordinary General Public License |  | ||||||
| treats it as such. |  | ||||||
|  |  | ||||||
|   Because of this blurred distinction, using the ordinary General |  | ||||||
| Public License for libraries did not effectively promote software |  | ||||||
| sharing, because most developers did not use the libraries.  We |  | ||||||
| concluded that weaker conditions might promote sharing better. |  | ||||||
|  |  | ||||||
|   However, unrestricted linking of non-free programs would deprive the |  | ||||||
| users of those programs of all benefit from the free status of the |  | ||||||
| libraries themselves.  This Library General Public License is intended to |  | ||||||
| permit developers of non-free programs to use free libraries, while |  | ||||||
| preserving your freedom as a user of such programs to change the free |  | ||||||
| libraries that are incorporated in them.  (We have not seen how to achieve |  | ||||||
| this as regards changes in header files, but we have achieved it as regards |  | ||||||
| changes in the actual functions of the Library.)  The hope is that this |  | ||||||
| will lead to faster development of free libraries. |  | ||||||
|  |  | ||||||
|   The precise terms and conditions for copying, distribution and |  | ||||||
| modification follow.  Pay close attention to the difference between a |  | ||||||
| "work based on the library" and a "work that uses the library".  The |  | ||||||
| former contains code derived from the library, while the latter only |  | ||||||
| works together with the library. |  | ||||||
|  |  | ||||||
|   Note that it is possible for a library to be covered by the ordinary |  | ||||||
| General Public License rather than by this special one. |  | ||||||
|  |  | ||||||
| 		  GNU LIBRARY GENERAL PUBLIC LICENSE |  | ||||||
|    TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION |  | ||||||
|  |  | ||||||
|   0. This License Agreement applies to any software library which |  | ||||||
| contains a notice placed by the copyright holder or other authorized |  | ||||||
| party saying it may be distributed under the terms of this Library |  | ||||||
| General Public License (also called "this License").  Each licensee is |  | ||||||
| addressed as "you". |  | ||||||
|  |  | ||||||
|   A "library" means a collection of software functions and/or data |  | ||||||
| prepared so as to be conveniently linked with application programs |  | ||||||
| (which use some of those functions and data) to form executables. |  | ||||||
|  |  | ||||||
|   The "Library", below, refers to any such software library or work |  | ||||||
| which has been distributed under these terms.  A "work based on the |  | ||||||
| Library" means either the Library or any derivative work under |  | ||||||
| copyright law: that is to say, a work containing the Library or a |  | ||||||
| portion of it, either verbatim or with modifications and/or translated |  | ||||||
| straightforwardly into another language.  (Hereinafter, translation is |  | ||||||
| included without limitation in the term "modification".) |  | ||||||
|  |  | ||||||
|   "Source code" for a work means the preferred form of the work for |  | ||||||
| making modifications to it.  For a library, complete source code means |  | ||||||
| all the source code for all modules it contains, plus any associated |  | ||||||
| interface definition files, plus the scripts used to control compilation |  | ||||||
| and installation of the library. |  | ||||||
|  |  | ||||||
|   Activities other than copying, distribution and modification are not |  | ||||||
| covered by this License; they are outside its scope.  The act of |  | ||||||
| running a program using the Library is not restricted, and output from |  | ||||||
| such a program is covered only if its contents constitute a work based |  | ||||||
| on the Library (independent of the use of the Library in a tool for |  | ||||||
| writing it).  Whether that is true depends on what the Library does |  | ||||||
| and what the program that uses the Library does. |  | ||||||
|    |  | ||||||
|   1. You may copy and distribute verbatim copies of the Library's |  | ||||||
| complete source code as you receive it, in any medium, provided that |  | ||||||
| you conspicuously and appropriately publish on each copy an |  | ||||||
| appropriate copyright notice and disclaimer of warranty; keep intact |  | ||||||
| all the notices that refer to this License and to the absence of any |  | ||||||
| warranty; and distribute a copy of this License along with the |  | ||||||
| Library. |  | ||||||
|  |  | ||||||
|   You may charge a fee for the physical act of transferring a copy, |  | ||||||
| and you may at your option offer warranty protection in exchange for a |  | ||||||
| fee. |  | ||||||
|  |  | ||||||
|   2. You may modify your copy or copies of the Library or any portion |  | ||||||
| of it, thus forming a work based on the Library, and copy and |  | ||||||
| distribute such modifications or work under the terms of Section 1 |  | ||||||
| above, provided that you also meet all of these conditions: |  | ||||||
|  |  | ||||||
|     a) The modified work must itself be a software library. |  | ||||||
|  |  | ||||||
|     b) You must cause the files modified to carry prominent notices |  | ||||||
|     stating that you changed the files and the date of any change. |  | ||||||
|  |  | ||||||
|     c) You must cause the whole of the work to be licensed at no |  | ||||||
|     charge to all third parties under the terms of this License. |  | ||||||
|  |  | ||||||
|     d) If a facility in the modified Library refers to a function or a |  | ||||||
|     table of data to be supplied by an application program that uses |  | ||||||
|     the facility, other than as an argument passed when the facility |  | ||||||
|     is invoked, then you must make a good faith effort to ensure that, |  | ||||||
|     in the event an application does not supply such function or |  | ||||||
|     table, the facility still operates, and performs whatever part of |  | ||||||
|     its purpose remains meaningful. |  | ||||||
|  |  | ||||||
|     (For example, a function in a library to compute square roots has |  | ||||||
|     a purpose that is entirely well-defined independent of the |  | ||||||
|     application.  Therefore, Subsection 2d requires that any |  | ||||||
|     application-supplied function or table used by this function must |  | ||||||
|     be optional: if the application does not supply it, the square |  | ||||||
|     root function must still compute square roots.) |  | ||||||
|  |  | ||||||
| These requirements apply to the modified work as a whole.  If |  | ||||||
| identifiable sections of that work are not derived from the Library, |  | ||||||
| and can be reasonably considered independent and separate works in |  | ||||||
| themselves, then this License, and its terms, do not apply to those |  | ||||||
| sections when you distribute them as separate works.  But when you |  | ||||||
| distribute the same sections as part of a whole which is a work based |  | ||||||
| on the Library, the distribution of the whole must be on the terms of |  | ||||||
| this License, whose permissions for other licensees extend to the |  | ||||||
| entire whole, and thus to each and every part regardless of who wrote |  | ||||||
| it. |  | ||||||
|  |  | ||||||
| Thus, it is not the intent of this section to claim rights or contest |  | ||||||
| your rights to work written entirely by you; rather, the intent is to |  | ||||||
| exercise the right to control the distribution of derivative or |  | ||||||
| collective works based on the Library. |  | ||||||
|  |  | ||||||
| In addition, mere aggregation of another work not based on the Library |  | ||||||
| with the Library (or with a work based on the Library) on a volume of |  | ||||||
| a storage or distribution medium does not bring the other work under |  | ||||||
| the scope of this License. |  | ||||||
|  |  | ||||||
|   3. You may opt to apply the terms of the ordinary GNU General Public |  | ||||||
| License instead of this License to a given copy of the Library.  To do |  | ||||||
| this, you must alter all the notices that refer to this License, so |  | ||||||
| that they refer to the ordinary GNU General Public License, version 2, |  | ||||||
| instead of to this License.  (If a newer version than version 2 of the |  | ||||||
| ordinary GNU General Public License has appeared, then you can specify |  | ||||||
| that version instead if you wish.)  Do not make any other change in |  | ||||||
| these notices. |  | ||||||
|  |  | ||||||
|   Once this change is made in a given copy, it is irreversible for |  | ||||||
| that copy, so the ordinary GNU General Public License applies to all |  | ||||||
| subsequent copies and derivative works made from that copy. |  | ||||||
|  |  | ||||||
|   This option is useful when you wish to copy part of the code of |  | ||||||
| the Library into a program that is not a library. |  | ||||||
|  |  | ||||||
|   4. You may copy and distribute the Library (or a portion or |  | ||||||
| derivative of it, under Section 2) in object code or executable form |  | ||||||
| under the terms of Sections 1 and 2 above provided that you accompany |  | ||||||
| it with the complete corresponding machine-readable source code, which |  | ||||||
| must be distributed under the terms of Sections 1 and 2 above on a |  | ||||||
| medium customarily used for software interchange. |  | ||||||
|  |  | ||||||
|   If distribution of object code is made by offering access to copy |  | ||||||
| from a designated place, then offering equivalent access to copy the |  | ||||||
| source code from the same place satisfies the requirement to |  | ||||||
| distribute the source code, even though third parties are not |  | ||||||
| compelled to copy the source along with the object code. |  | ||||||
|  |  | ||||||
|   5. A program that contains no derivative of any portion of the |  | ||||||
| Library, but is designed to work with the Library by being compiled or |  | ||||||
| linked with it, is called a "work that uses the Library".  Such a |  | ||||||
| work, in isolation, is not a derivative work of the Library, and |  | ||||||
| therefore falls outside the scope of this License. |  | ||||||
|  |  | ||||||
|   However, linking a "work that uses the Library" with the Library |  | ||||||
| creates an executable that is a derivative of the Library (because it |  | ||||||
| contains portions of the Library), rather than a "work that uses the |  | ||||||
| library".  The executable is therefore covered by this License. |  | ||||||
| Section 6 states terms for distribution of such executables. |  | ||||||
|  |  | ||||||
|   When a "work that uses the Library" uses material from a header file |  | ||||||
| that is part of the Library, the object code for the work may be a |  | ||||||
| derivative work of the Library even though the source code is not. |  | ||||||
| Whether this is true is especially significant if the work can be |  | ||||||
| linked without the Library, or if the work is itself a library.  The |  | ||||||
| threshold for this to be true is not precisely defined by law. |  | ||||||
|  |  | ||||||
|   If such an object file uses only numerical parameters, data |  | ||||||
| structure layouts and accessors, and small macros and small inline |  | ||||||
| functions (ten lines or less in length), then the use of the object |  | ||||||
| file is unrestricted, regardless of whether it is legally a derivative |  | ||||||
| work.  (Executables containing this object code plus portions of the |  | ||||||
| Library will still fall under Section 6.) |  | ||||||
|  |  | ||||||
|   Otherwise, if the work is a derivative of the Library, you may |  | ||||||
| distribute the object code for the work under the terms of Section 6. |  | ||||||
| Any executables containing that work also fall under Section 6, |  | ||||||
| whether or not they are linked directly with the Library itself. |  | ||||||
|  |  | ||||||
|   6. As an exception to the Sections above, you may also compile or |  | ||||||
| link a "work that uses the Library" with the Library to produce a |  | ||||||
| work containing portions of the Library, and distribute that work |  | ||||||
| under terms of your choice, provided that the terms permit |  | ||||||
| modification of the work for the customer's own use and reverse |  | ||||||
| engineering for debugging such modifications. |  | ||||||
|  |  | ||||||
|   You must give prominent notice with each copy of the work that the |  | ||||||
| Library is used in it and that the Library and its use are covered by |  | ||||||
| this License.  You must supply a copy of this License.  If the work |  | ||||||
| during execution displays copyright notices, you must include the |  | ||||||
| copyright notice for the Library among them, as well as a reference |  | ||||||
| directing the user to the copy of this License.  Also, you must do one |  | ||||||
| of these things: |  | ||||||
|  |  | ||||||
|     a) Accompany the work with the complete corresponding |  | ||||||
|     machine-readable source code for the Library including whatever |  | ||||||
|     changes were used in the work (which must be distributed under |  | ||||||
|     Sections 1 and 2 above); and, if the work is an executable linked |  | ||||||
|     with the Library, with the complete machine-readable "work that |  | ||||||
|     uses the Library", as object code and/or source code, so that the |  | ||||||
|     user can modify the Library and then relink to produce a modified |  | ||||||
|     executable containing the modified Library.  (It is understood |  | ||||||
|     that the user who changes the contents of definitions files in the |  | ||||||
|     Library will not necessarily be able to recompile the application |  | ||||||
|     to use the modified definitions.) |  | ||||||
|  |  | ||||||
|     b) Accompany the work with a written offer, valid for at |  | ||||||
|     least three years, to give the same user the materials |  | ||||||
|     specified in Subsection 6a, above, for a charge no more |  | ||||||
|     than the cost of performing this distribution. |  | ||||||
|  |  | ||||||
|     c) If distribution of the work is made by offering access to copy |  | ||||||
|     from a designated place, offer equivalent access to copy the above |  | ||||||
|     specified materials from the same place. |  | ||||||
|  |  | ||||||
|     d) Verify that the user has already received a copy of these |  | ||||||
|     materials or that you have already sent this user a copy. |  | ||||||
|  |  | ||||||
|   For an executable, the required form of the "work that uses the |  | ||||||
| Library" must include any data and utility programs needed for |  | ||||||
| reproducing the executable from it.  However, as a special exception, |  | ||||||
| the source code distributed need not include anything that is normally |  | ||||||
| distributed (in either source or binary form) with the major |  | ||||||
| components (compiler, kernel, and so on) of the operating system on |  | ||||||
| which the executable runs, unless that component itself accompanies |  | ||||||
| the executable. |  | ||||||
|  |  | ||||||
|   It may happen that this requirement contradicts the license |  | ||||||
| restrictions of other proprietary libraries that do not normally |  | ||||||
| accompany the operating system.  Such a contradiction means you cannot |  | ||||||
| use both them and the Library together in an executable that you |  | ||||||
| distribute. |  | ||||||
|  |  | ||||||
|   7. You may place library facilities that are a work based on the |  | ||||||
| Library side-by-side in a single library together with other library |  | ||||||
| facilities not covered by this License, and distribute such a combined |  | ||||||
| library, provided that the separate distribution of the work based on |  | ||||||
| the Library and of the other library facilities is otherwise |  | ||||||
| permitted, and provided that you do these two things: |  | ||||||
|  |  | ||||||
|     a) Accompany the combined library with a copy of the same work |  | ||||||
|     based on the Library, uncombined with any other library |  | ||||||
|     facilities.  This must be distributed under the terms of the |  | ||||||
|     Sections above. |  | ||||||
|  |  | ||||||
|     b) Give prominent notice with the combined library of the fact |  | ||||||
|     that part of it is a work based on the Library, and explaining |  | ||||||
|     where to find the accompanying uncombined form of the same work. |  | ||||||
|  |  | ||||||
|   8. You may not copy, modify, sublicense, link with, or distribute |  | ||||||
| the Library except as expressly provided under this License.  Any |  | ||||||
| attempt otherwise to copy, modify, sublicense, link with, or |  | ||||||
| distribute the Library is void, and will automatically terminate your |  | ||||||
| rights under this License.  However, parties who have received copies, |  | ||||||
| or rights, from you under this License will not have their licenses |  | ||||||
| terminated so long as such parties remain in full compliance. |  | ||||||
|  |  | ||||||
|   9. You are not required to accept this License, since you have not |  | ||||||
| signed it.  However, nothing else grants you permission to modify or |  | ||||||
| distribute the Library or its derivative works.  These actions are |  | ||||||
| prohibited by law if you do not accept this License.  Therefore, by |  | ||||||
| modifying or distributing the Library (or any work based on the |  | ||||||
| Library), you indicate your acceptance of this License to do so, and |  | ||||||
| all its terms and conditions for copying, distributing or modifying |  | ||||||
| the Library or works based on it. |  | ||||||
|  |  | ||||||
|   10. Each time you redistribute the Library (or any work based on the |  | ||||||
| Library), the recipient automatically receives a license from the |  | ||||||
| original licensor to copy, distribute, link with or modify the Library |  | ||||||
| subject to these terms and conditions.  You may not impose any further |  | ||||||
| restrictions on the recipients' exercise of the rights granted herein. |  | ||||||
| You are not responsible for enforcing compliance by third parties to |  | ||||||
| this License. |  | ||||||
|  |  | ||||||
|   11. If, as a consequence of a court judgment or allegation of patent |  | ||||||
| infringement or for any other reason (not limited to patent issues), |  | ||||||
| conditions are imposed on you (whether by court order, agreement or |  | ||||||
| otherwise) that contradict the conditions of this License, they do not |  | ||||||
| excuse you from the conditions of this License.  If you cannot |  | ||||||
| distribute so as to satisfy simultaneously your obligations under this |  | ||||||
| License and any other pertinent obligations, then as a consequence you |  | ||||||
| may not distribute the Library at all.  For example, if a patent |  | ||||||
| license would not permit royalty-free redistribution of the Library by |  | ||||||
| all those who receive copies directly or indirectly through you, then |  | ||||||
| the only way you could satisfy both it and this License would be to |  | ||||||
| refrain entirely from distribution of the Library. |  | ||||||
|  |  | ||||||
| If any portion of this section is held invalid or unenforceable under any |  | ||||||
| particular circumstance, the balance of the section is intended to apply, |  | ||||||
| and the section as a whole is intended to apply in other circumstances. |  | ||||||
|  |  | ||||||
| It is not the purpose of this section to induce you to infringe any |  | ||||||
| patents or other property right claims or to contest validity of any |  | ||||||
| such claims; this section has the sole purpose of protecting the |  | ||||||
| integrity of the free software distribution system which is |  | ||||||
| implemented by public license practices.  Many people have made |  | ||||||
| generous contributions to the wide range of software distributed |  | ||||||
| through that system in reliance on consistent application of that |  | ||||||
| system; it is up to the author/donor to decide if he or she is willing |  | ||||||
| to distribute software through any other system and a licensee cannot |  | ||||||
| impose that choice. |  | ||||||
|  |  | ||||||
| This section is intended to make thoroughly clear what is believed to |  | ||||||
| be a consequence of the rest of this License. |  | ||||||
|  |  | ||||||
|   12. If the distribution and/or use of the Library is restricted in |  | ||||||
| certain countries either by patents or by copyrighted interfaces, the |  | ||||||
| original copyright holder who places the Library under this License may add |  | ||||||
| an explicit geographical distribution limitation excluding those countries, |  | ||||||
| so that distribution is permitted only in or among countries not thus |  | ||||||
| excluded.  In such case, this License incorporates the limitation as if |  | ||||||
| written in the body of this License. |  | ||||||
|  |  | ||||||
|   13. The Free Software Foundation may publish revised and/or new |  | ||||||
| versions of the Library General Public License from time to time. |  | ||||||
| Such new versions will be similar in spirit to the present version, |  | ||||||
| but may differ in detail to address new problems or concerns. |  | ||||||
|  |  | ||||||
| Each version is given a distinguishing version number.  If the Library |  | ||||||
| specifies a version number of this License which applies to it and |  | ||||||
| "any later version", you have the option of following the terms and |  | ||||||
| conditions either of that version or of any later version published by |  | ||||||
| the Free Software Foundation.  If the Library does not specify a |  | ||||||
| license version number, you may choose any version ever published by |  | ||||||
| the Free Software Foundation. |  | ||||||
|  |  | ||||||
|   14. If you wish to incorporate parts of the Library into other free |  | ||||||
| programs whose distribution conditions are incompatible with these, |  | ||||||
| write to the author to ask for permission.  For software which is |  | ||||||
| copyrighted by the Free Software Foundation, write to the Free |  | ||||||
| Software Foundation; we sometimes make exceptions for this.  Our |  | ||||||
| decision will be guided by the two goals of preserving the free status |  | ||||||
| of all derivatives of our free software and of promoting the sharing |  | ||||||
| and reuse of software generally. |  | ||||||
|  |  | ||||||
| 			    NO WARRANTY |  | ||||||
|  |  | ||||||
|   15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO |  | ||||||
| WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. |  | ||||||
| EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR |  | ||||||
| OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY |  | ||||||
| KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE |  | ||||||
| IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |  | ||||||
| PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE |  | ||||||
| LIBRARY IS WITH YOU.  SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME |  | ||||||
| THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. |  | ||||||
|  |  | ||||||
|   16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN |  | ||||||
| WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY |  | ||||||
| AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU |  | ||||||
| FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR |  | ||||||
| CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE |  | ||||||
| LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING |  | ||||||
| RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A |  | ||||||
| FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF |  | ||||||
| SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH |  | ||||||
| DAMAGES. |  | ||||||
|  |  | ||||||
| 		     END OF TERMS AND CONDITIONS |  | ||||||
| @@ -1,98 +0,0 @@ | |||||||
|  |  | ||||||
| COPYRIGHT NOTICE, DISCLAIMER, and LICENSE: |  | ||||||
|  |  | ||||||
| If you modify libpng you may insert additional notices immediately following |  | ||||||
| this sentence. |  | ||||||
|  |  | ||||||
| libpng versions 1.0.7, July 1, 2000, through 1.0.8, July 24, 2000, are |  | ||||||
| Copyright (c) 2000 Glenn Randers-Pehrson |  | ||||||
| and are distributed according to the same disclaimer and license as libpng-1.0.6 |  | ||||||
| with the following individuals added to the list of Contributing Authors |  | ||||||
|  |  | ||||||
|    Simon-Pierre Cadieux |  | ||||||
|    Eric S. Raymond |  | ||||||
|    Gilles Vollant |  | ||||||
|  |  | ||||||
| and with the following additions to the disclaimer: |  | ||||||
|  |  | ||||||
|    There is no warranty against interference with your enjoyment of the |  | ||||||
|    library or against infringement.  There is no warranty that our |  | ||||||
|    efforts or the library will fulfill any of your particular purposes |  | ||||||
|    or needs.  This library is provided with all faults, and the entire |  | ||||||
|    risk of satisfactory quality, performance, accuracy, and effort is with |  | ||||||
|    the user. |  | ||||||
|  |  | ||||||
| libpng versions 0.97, January 1998, through 1.0.6, March 20, 2000, are |  | ||||||
| Copyright (c) 1998, 1999 Glenn Randers-Pehrson, and are |  | ||||||
| distributed according to the same disclaimer and license as libpng-0.96, |  | ||||||
| with the following individuals added to the list of Contributing Authors: |  | ||||||
|  |  | ||||||
|    Tom Lane |  | ||||||
|    Glenn Randers-Pehrson |  | ||||||
|    Willem van Schaik |  | ||||||
|  |  | ||||||
| libpng versions 0.89, June 1996, through 0.96, May 1997, are |  | ||||||
| Copyright (c) 1996, 1997 Andreas Dilger |  | ||||||
| Distributed according to the same disclaimer and license as libpng-0.88, |  | ||||||
| with the following individuals added to the list of Contributing Authors: |  | ||||||
|  |  | ||||||
|    John Bowler |  | ||||||
|    Kevin Bracey |  | ||||||
|    Sam Bushell |  | ||||||
|    Magnus Holmgren |  | ||||||
|    Greg Roelofs |  | ||||||
|    Tom Tanner |  | ||||||
|  |  | ||||||
| libpng versions 0.5, May 1995, through 0.88, January 1996, are |  | ||||||
| Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc. |  | ||||||
|  |  | ||||||
| For the purposes of this copyright and license, "Contributing Authors" |  | ||||||
| is defined as the following set of individuals: |  | ||||||
|  |  | ||||||
|    Andreas Dilger |  | ||||||
|    Dave Martindale |  | ||||||
|    Guy Eric Schalnat |  | ||||||
|    Paul Schmidt |  | ||||||
|    Tim Wegner |  | ||||||
|  |  | ||||||
| The PNG Reference Library is supplied "AS IS".  The Contributing Authors |  | ||||||
| and Group 42, Inc. disclaim all warranties, expressed or implied, |  | ||||||
| including, without limitation, the warranties of merchantability and of |  | ||||||
| fitness for any purpose.  The Contributing Authors and Group 42, Inc. |  | ||||||
| assume no liability for direct, indirect, incidental, special, exemplary, |  | ||||||
| or consequential damages, which may result from the use of the PNG |  | ||||||
| Reference Library, even if advised of the possibility of such damage. |  | ||||||
|  |  | ||||||
| Permission is hereby granted to use, copy, modify, and distribute this |  | ||||||
| source code, or portions hereof, for any purpose, without fee, subject |  | ||||||
| to the following restrictions: |  | ||||||
|  |  | ||||||
| 1. The origin of this source code must not be misrepresented. |  | ||||||
|  |  | ||||||
| 2. Altered versions must be plainly marked as such and must not |  | ||||||
|    be misrepresented as being the original source. |  | ||||||
|  |  | ||||||
| 3. This Copyright notice may not be removed or altered from any |  | ||||||
|    source or altered source distribution. |  | ||||||
|  |  | ||||||
| The Contributing Authors and Group 42, Inc. specifically permit, without |  | ||||||
| fee, and encourage the use of this source code as a component to |  | ||||||
| supporting the PNG file format in commercial products.  If you use this |  | ||||||
| source code in a product, acknowledgment is not required but would be |  | ||||||
| appreciated. |  | ||||||
|  |  | ||||||
|  |  | ||||||
| A "png_get_copyright" function is available, for convenient use in "about" |  | ||||||
| boxes and the like: |  | ||||||
|  |  | ||||||
|    printf("%s",png_get_copyright(NULL)); |  | ||||||
|  |  | ||||||
| Also, the PNG logo (in PNG format, of course) is supplied in the |  | ||||||
| files "pngbar.png" and "pngbar.jpg (88x31) and "pngnow.png" (98x31). |  | ||||||
|  |  | ||||||
| Libpng is OSI Certified Open Source Software.  OSI Certified Open Source is a |  | ||||||
| certification mark of the Open Source Initiative. |  | ||||||
|  |  | ||||||
| Glenn Randers-Pehrson |  | ||||||
| randeg@alum.rpi.edu |  | ||||||
| July 24, 2000 |  | ||||||
| @@ -1,32 +0,0 @@ | |||||||
|  |  | ||||||
| Copyright notice: |  | ||||||
|  |  | ||||||
|  (C) 1995-1998 Jean-loup Gailly and Mark Adler |  | ||||||
|  |  | ||||||
|   This software is provided 'as-is', without any express or implied |  | ||||||
|   warranty.  In no event will the authors be held liable for any damages |  | ||||||
|   arising from the use of this software. |  | ||||||
|  |  | ||||||
|   Permission is granted to anyone to use this software for any purpose, |  | ||||||
|   including commercial applications, and to alter it and redistribute it |  | ||||||
|   freely, subject to the following restrictions: |  | ||||||
|  |  | ||||||
|   1. The origin of this software must not be misrepresented; you must not |  | ||||||
|      claim that you wrote the original software. If you use this software |  | ||||||
|      in a product, an acknowledgment in the product documentation would be |  | ||||||
|      appreciated but is not required. |  | ||||||
|   2. Altered source versions must be plainly marked as such, and must not be |  | ||||||
|      misrepresented as being the original software. |  | ||||||
|   3. This notice may not be removed or altered from any source distribution. |  | ||||||
|  |  | ||||||
|   Jean-loup Gailly        Mark Adler |  | ||||||
|   jloup@gzip.org          madler@alumni.caltech.edu |  | ||||||
|  |  | ||||||
| If you use the zlib library in a product, we would appreciate *not* |  | ||||||
| receiving lengthy legal documents to sign. The sources are provided |  | ||||||
| for free but without warranty of any kind.  The library has been |  | ||||||
| entirely written by Jean-loup Gailly and Mark Adler; it does not |  | ||||||
| include third-party code. |  | ||||||
|  |  | ||||||
| If you redistribute modified sources, we would appreciate that you include |  | ||||||
| in the file ChangeLog history information documenting your changes. |  | ||||||
		Reference in New Issue
	
	Block a user