Browse Source

* packages removed

git-svn-id: trunk@9953 -
marco 17 years ago
parent
commit
dbdc280e71
45 changed files with 0 additions and 14506 deletions
  1. 0 43
      .gitattributes
  2. 0 14
      .gitignore
  3. 0 2544
      packages/base/gdbint/Makefile
  4. 0 151
      packages/base/gdbint/Makefile.fpc
  5. 0 12
      packages/base/gdbint/fpmake.inc
  6. 0 17
      packages/base/gdbint/fpmake.pp
  7. 0 239
      packages/base/gdbint/freadlin.pp
  8. 0 346
      packages/base/gdbint/gdbcon.pp
  9. 0 2621
      packages/base/gdbint/gdbint.pp
  10. 0 182
      packages/base/gdbint/gdbobjs.inc
  11. 0 104
      packages/base/gdbint/gdbver.pp
  12. 0 1
      packages/base/gdbint/gdbver_nogdb.inc
  13. 0 77
      packages/base/gdbint/symify.pp
  14. 0 55
      packages/base/gdbint/testgdb.pp
  15. 0 2289
      packages/base/imagemagick/Makefile
  16. 0 31
      packages/base/imagemagick/Makefile.fpc
  17. 0 29
      packages/base/imagemagick/buildim.pp
  18. BIN
      packages/base/imagemagick/demo1/image.png
  19. 0 111
      packages/base/imagemagick/demo1/wanddemo.dpr
  20. 0 59
      packages/base/imagemagick/demo1/wanddemo.lpr
  21. 0 151
      packages/base/imagemagick/demo2/screenshot.lpr
  22. 0 52
      packages/base/imagemagick/magick/cache_view.inc
  23. 0 44
      packages/base/imagemagick/magick/compare.inc
  24. 0 45
      packages/base/imagemagick/magick/constitute.inc
  25. 0 298
      packages/base/imagemagick/magick/draw.inc
  26. 0 71
      packages/base/imagemagick/magick/effect.inc
  27. 0 63
      packages/base/imagemagick/magick/fx.inc
  28. 0 118
      packages/base/imagemagick/magick/imagemagick.pas
  29. 0 640
      packages/base/imagemagick/magick/magick_type.inc
  30. 0 82
      packages/base/imagemagick/magick/pixel.inc
  31. 0 50
      packages/base/imagemagick/magick/quantize.inc
  32. 0 37
      packages/base/imagemagick/magick/semaphore.inc
  33. 0 53
      packages/base/imagemagick/magick/statistic.inc
  34. 0 88
      packages/base/imagemagick/magick/type.inc
  35. 0 283
      packages/base/imagemagick/wand/drawing_wand.inc
  36. 0 80
      packages/base/imagemagick/wand/magick_attribute.inc
  37. 0 420
      packages/base/imagemagick/wand/magick_image.inc
  38. 0 79
      packages/base/imagemagick/wand/magick_wand.pas
  39. 0 74
      packages/base/imagemagick/wand/pixel_iterator.inc
  40. 0 109
      packages/base/imagemagick/wand/pixel_wand.inc
  41. 0 2049
      packages/extra/libpng/Makefile
  42. 0 26
      packages/extra/libpng/Makefile.fpc
  43. 0 10
      packages/extra/libpng/fpmake.inc
  44. 0 17
      packages/extra/libpng/fpmake.pp
  45. 0 642
      packages/extra/libpng/png.pp

+ 0 - 43
.gitattributes

@@ -706,18 +706,6 @@ packages/Makefile svneol=native#text/plain
 packages/Makefile.fpc svneol=native#text/plain
 packages/Makefile.fpc svneol=native#text/plain
 packages/base/Makefile svneol=native#text/plain
 packages/base/Makefile svneol=native#text/plain
 packages/base/Makefile.fpc svneol=native#text/plain
 packages/base/Makefile.fpc svneol=native#text/plain
-packages/base/gdbint/Makefile svneol=native#text/plain
-packages/base/gdbint/Makefile.fpc svneol=native#text/plain
-packages/base/gdbint/fpmake.inc svneol=native#text/plain
-packages/base/gdbint/fpmake.pp svneol=native#text/plain
-packages/base/gdbint/freadlin.pp svneol=native#text/x-pascal
-packages/base/gdbint/gdbcon.pp svneol=native#text/plain
-packages/base/gdbint/gdbint.pp svneol=native#text/plain
-packages/base/gdbint/gdbobjs.inc svneol=native#text/plain
-packages/base/gdbint/gdbver.pp svneol=native#text/plain
-packages/base/gdbint/gdbver_nogdb.inc svneol=native#text/x-pascal
-packages/base/gdbint/symify.pp svneol=native#text/plain
-packages/base/gdbint/testgdb.pp svneol=native#text/plain
 packages/base/httpd/Makefile svneol=native#text/plain
 packages/base/httpd/Makefile svneol=native#text/plain
 packages/base/httpd/Makefile.fpc svneol=native#text/plain
 packages/base/httpd/Makefile.fpc svneol=native#text/plain
 packages/base/httpd/examples/Makefile svneol=native#text/plain
 packages/base/httpd/examples/Makefile svneol=native#text/plain
@@ -852,32 +840,6 @@ packages/base/httpd/httpd-2.2/util_filter.inc svneol=native#text/plain
 packages/base/httpd/httpd-2.2/util_md5.inc svneol=native#text/plain
 packages/base/httpd/httpd-2.2/util_md5.inc svneol=native#text/plain
 packages/base/httpd/httpd-2.2/util_script.inc svneol=native#text/plain
 packages/base/httpd/httpd-2.2/util_script.inc svneol=native#text/plain
 packages/base/httpd/httpd-2.2/util_time.inc svneol=native#text/plain
 packages/base/httpd/httpd-2.2/util_time.inc svneol=native#text/plain
-packages/base/imagemagick/Makefile svneol=native#text/plain
-packages/base/imagemagick/Makefile.fpc svneol=native#text/plain
-packages/base/imagemagick/buildim.pp svneol=native#text/plain
-packages/base/imagemagick/demo1/image.png -text svneol=unset#image/png
-packages/base/imagemagick/demo1/wanddemo.dpr -text
-packages/base/imagemagick/demo1/wanddemo.lpr -text
-packages/base/imagemagick/demo2/screenshot.lpr -text
-packages/base/imagemagick/magick/cache_view.inc svneol=native#text/plain
-packages/base/imagemagick/magick/compare.inc svneol=native#text/plain
-packages/base/imagemagick/magick/constitute.inc svneol=native#text/plain
-packages/base/imagemagick/magick/draw.inc svneol=native#text/plain
-packages/base/imagemagick/magick/effect.inc svneol=native#text/plain
-packages/base/imagemagick/magick/fx.inc svneol=native#text/plain
-packages/base/imagemagick/magick/imagemagick.pas svneol=native#text/plain
-packages/base/imagemagick/magick/magick_type.inc svneol=native#text/plain
-packages/base/imagemagick/magick/pixel.inc svneol=native#text/plain
-packages/base/imagemagick/magick/quantize.inc svneol=native#text/plain
-packages/base/imagemagick/magick/semaphore.inc svneol=native#text/plain
-packages/base/imagemagick/magick/statistic.inc svneol=native#text/plain
-packages/base/imagemagick/magick/type.inc svneol=native#text/plain
-packages/base/imagemagick/wand/drawing_wand.inc svneol=native#text/plain
-packages/base/imagemagick/wand/magick_attribute.inc svneol=native#text/plain
-packages/base/imagemagick/wand/magick_image.inc svneol=native#text/plain
-packages/base/imagemagick/wand/magick_wand.pas svneol=native#text/plain
-packages/base/imagemagick/wand/pixel_iterator.inc svneol=native#text/plain
-packages/base/imagemagick/wand/pixel_wand.inc svneol=native#text/plain
 packages/base/mysql/ver322/mysql.pp svneol=native#text/plain
 packages/base/mysql/ver322/mysql.pp svneol=native#text/plain
 packages/base/mysql/ver322/mysql_com.pp svneol=native#text/plain
 packages/base/mysql/ver322/mysql_com.pp svneol=native#text/plain
 packages/base/mysql/ver322/mysql_version.pp svneol=native#text/plain
 packages/base/mysql/ver322/mysql_version.pp svneol=native#text/plain
@@ -2243,11 +2205,6 @@ packages/extra/libndsfpc/nds/system.inc svneol=native#text/plain
 packages/extra/libndsfpc/nds/timers.inc svneol=native#text/plain
 packages/extra/libndsfpc/nds/timers.inc svneol=native#text/plain
 packages/extra/libndsfpc/nds7.pp svneol=native#text/plain
 packages/extra/libndsfpc/nds7.pp svneol=native#text/plain
 packages/extra/libndsfpc/nds9.pp svneol=native#text/plain
 packages/extra/libndsfpc/nds9.pp svneol=native#text/plain
-packages/extra/libpng/Makefile svneol=native#text/plain
-packages/extra/libpng/Makefile.fpc svneol=native#text/plain
-packages/extra/libpng/fpmake.inc svneol=native#text/plain
-packages/extra/libpng/fpmake.pp svneol=native#text/plain
-packages/extra/libpng/png.pp svneol=native#text/plain
 packages/extra/lua/Makefile svneol=native#text/plain
 packages/extra/lua/Makefile svneol=native#text/plain
 packages/extra/lua/Makefile.fpc svneol=native#text/plain
 packages/extra/lua/Makefile.fpc svneol=native#text/plain
 packages/extra/lua/fpmake.inc svneol=native#text/plain
 packages/extra/lua/fpmake.inc svneol=native#text/plain

+ 0 - 14
.gitignore

@@ -214,13 +214,6 @@ packages/base/*.o
 packages/base/*.ppu
 packages/base/*.ppu
 packages/base/*.s
 packages/base/*.s
 packages/base/fpcmade.*
 packages/base/fpcmade.*
-packages/base/gdbint/*.bak
-packages/base/gdbint/*.exe
-packages/base/gdbint/*.o
-packages/base/gdbint/*.ppu
-packages/base/gdbint/*.s
-packages/base/gdbint/fpcmade.*
-packages/base/gdbint/units
 packages/base/mysql/*.bak
 packages/base/mysql/*.bak
 packages/base/mysql/*.exe
 packages/base/mysql/*.exe
 packages/base/mysql/*.o
 packages/base/mysql/*.o
@@ -1024,13 +1017,6 @@ packages/extra/libgd/*.ppu
 packages/extra/libgd/*.s
 packages/extra/libgd/*.s
 packages/extra/libgd/fpcmade.*
 packages/extra/libgd/fpcmade.*
 packages/extra/libgd/units
 packages/extra/libgd/units
-packages/extra/libpng/*.bak
-packages/extra/libpng/*.exe
-packages/extra/libpng/*.o
-packages/extra/libpng/*.ppu
-packages/extra/libpng/*.s
-packages/extra/libpng/fpcmade.*
-packages/extra/libpng/units
 packages/extra/newt/*.bak
 packages/extra/newt/*.bak
 packages/extra/newt/*.exe
 packages/extra/newt/*.exe
 packages/extra/newt/*.o
 packages/extra/newt/*.o

+ 0 - 2544
packages/base/gdbint/Makefile

@@ -1,2544 +0,0 @@
-#
-# Don't edit, this file is generated by FPCMake Version 2.0.0 [2007/11/08]
-#
-default: all
-MAKEFILETARGETS=i386-linux i386-go32v2 i386-win32 i386-os2 i386-freebsd i386-beos i386-netbsd i386-solaris i386-qnx i386-netware i386-openbsd i386-wdosx i386-darwin i386-emx i386-watcom i386-netwlibc i386-wince i386-embedded i386-symbian m68k-linux m68k-freebsd m68k-netbsd m68k-amiga m68k-atari m68k-openbsd m68k-palmos m68k-embedded powerpc-linux powerpc-netbsd powerpc-amiga powerpc-macos powerpc-darwin powerpc-morphos powerpc-embedded sparc-linux sparc-netbsd sparc-solaris sparc-embedded x86_64-linux x86_64-freebsd x86_64-darwin x86_64-win64 x86_64-embedded arm-linux arm-palmos arm-wince arm-gba arm-nds arm-embedded arm-symbian powerpc64-linux powerpc64-darwin powerpc64-embedded
-BSDs = freebsd netbsd openbsd darwin
-UNIXs = linux $(BSDs) solaris qnx
-LIMIT83fs = go32v2 os2 emx watcom
-OSNeedsComspecToRunBatch = go32v2 watcom
-FORCE:
-.PHONY: FORCE
-override PATH:=$(patsubst %/,%,$(subst \,/,$(PATH)))
-ifneq ($(findstring darwin,$(OSTYPE)),)
-inUnix=1 #darwin
-SEARCHPATH:=$(filter-out .,$(subst :, ,$(PATH)))
-else
-ifeq ($(findstring ;,$(PATH)),)
-inUnix=1
-SEARCHPATH:=$(filter-out .,$(subst :, ,$(PATH)))
-else
-SEARCHPATH:=$(subst ;, ,$(PATH))
-endif
-endif
-SEARCHPATH+=$(patsubst %/,%,$(subst \,/,$(dir $(MAKE))))
-PWD:=$(strip $(wildcard $(addsuffix /pwd.exe,$(SEARCHPATH))))
-ifeq ($(PWD),)
-PWD:=$(strip $(wildcard $(addsuffix /pwd,$(SEARCHPATH))))
-ifeq ($(PWD),)
-$(error You need the GNU utils package to use this Makefile)
-else
-PWD:=$(firstword $(PWD))
-SRCEXEEXT=
-endif
-else
-PWD:=$(firstword $(PWD))
-SRCEXEEXT=.exe
-endif
-ifndef inUnix
-ifeq ($(OS),Windows_NT)
-inWinNT=1
-else
-ifdef OS2_SHELL
-inOS2=1
-endif
-endif
-else
-ifneq ($(findstring cygdrive,$(PATH)),)
-inCygWin=1
-endif
-endif
-ifdef inUnix
-SRCBATCHEXT=.sh
-else
-ifdef inOS2
-SRCBATCHEXT=.cmd
-else
-SRCBATCHEXT=.bat
-endif
-endif
-ifdef COMSPEC
-ifneq ($(findstring $(OS_SOURCE),$(OSNeedsComspecToRunBatch)),)
-RUNBATCH=$(COMSPEC) /C
-endif
-endif
-ifdef inUnix
-PATHSEP=/
-else
-PATHSEP:=$(subst /,\,/)
-ifdef inCygWin
-PATHSEP=/
-endif
-endif
-ifdef PWD
-BASEDIR:=$(subst \,/,$(shell $(PWD)))
-ifdef inCygWin
-ifneq ($(findstring /cygdrive/,$(BASEDIR)),)
-BASENODIR:=$(patsubst /cygdrive%,%,$(BASEDIR))
-BASEDRIVE:=$(firstword $(subst /, ,$(BASENODIR)))
-BASEDIR:=$(subst /cygdrive/$(BASEDRIVE)/,$(BASEDRIVE):/,$(BASEDIR))
-endif
-endif
-else
-BASEDIR=.
-endif
-ifdef inOS2
-ifndef ECHO
-ECHO:=$(strip $(wildcard $(addsuffix /gecho$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(ECHO),)
-ECHO:=$(strip $(wildcard $(addsuffix /echo$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(ECHO),)
-ECHO=echo
-else
-ECHO:=$(firstword $(ECHO))
-endif
-else
-ECHO:=$(firstword $(ECHO))
-endif
-endif
-export ECHO
-endif
-override DEFAULT_FPCDIR=../../..
-ifndef FPC
-ifdef PP
-FPC=$(PP)
-endif
-endif
-ifndef FPC
-FPCPROG:=$(strip $(wildcard $(addsuffix /fpc$(SRCEXEEXT),$(SEARCHPATH))))
-ifneq ($(FPCPROG),)
-FPCPROG:=$(firstword $(FPCPROG))
-ifneq ($(CPU_TARGET),)
-FPC:=$(shell $(FPCPROG) -P$(CPU_TARGET) -PB)
-else
-FPC:=$(shell $(FPCPROG) -PB)
-endif
-ifneq ($(findstring Error,$(FPC)),)
-override FPC=$(firstword $(strip $(wildcard $(addsuffix /ppc386$(SRCEXEEXT),$(SEARCHPATH)))))
-endif
-else
-override FPC=$(firstword $(strip $(wildcard $(addsuffix /ppc386$(SRCEXEEXT),$(SEARCHPATH)))))
-endif
-endif
-override FPC:=$(subst $(SRCEXEEXT),,$(FPC))
-override FPC:=$(subst \,/,$(FPC))$(SRCEXEEXT)
-FOUNDFPC:=$(strip $(wildcard $(FPC)))
-ifeq ($(FOUNDFPC),)
-FOUNDFPC=$(strip $(wildcard $(addsuffix /$(FPC),$(SEARCHPATH))))
-ifeq ($(FOUNDFPC),)
-$(error Compiler $(FPC) not found)
-endif
-endif
-ifndef FPC_COMPILERINFO
-FPC_COMPILERINFO:=$(shell $(FPC) -iVSPTPSOTO)
-endif
-ifndef FPC_VERSION
-FPC_VERSION:=$(word 1,$(FPC_COMPILERINFO))
-endif
-export FPC FPC_VERSION FPC_COMPILERINFO
-unexport CHECKDEPEND ALLDEPENDENCIES
-ifndef CPU_TARGET
-ifdef CPU_TARGET_DEFAULT
-CPU_TARGET=$(CPU_TARGET_DEFAULT)
-endif
-endif
-ifndef OS_TARGET
-ifdef OS_TARGET_DEFAULT
-OS_TARGET=$(OS_TARGET_DEFAULT)
-endif
-endif
-ifneq ($(words $(FPC_COMPILERINFO)),5)
-FPC_COMPILERINFO+=$(shell $(FPC) -iSP)
-FPC_COMPILERINFO+=$(shell $(FPC) -iTP)
-FPC_COMPILERINFO+=$(shell $(FPC) -iSO)
-FPC_COMPILERINFO+=$(shell $(FPC) -iTO)
-endif
-ifndef CPU_SOURCE
-CPU_SOURCE:=$(word 2,$(FPC_COMPILERINFO))
-endif
-ifndef CPU_TARGET
-CPU_TARGET:=$(word 3,$(FPC_COMPILERINFO))
-endif
-ifndef OS_SOURCE
-OS_SOURCE:=$(word 4,$(FPC_COMPILERINFO))
-endif
-ifndef OS_TARGET
-OS_TARGET:=$(word 5,$(FPC_COMPILERINFO))
-endif
-FULL_TARGET=$(CPU_TARGET)-$(OS_TARGET)
-FULL_SOURCE=$(CPU_SOURCE)-$(OS_SOURCE)
-ifneq ($(findstring $(OS_SOURCE),$(LIMIT83fs)),)
-TARGETSUFFIX=$(OS_TARGET)
-SOURCESUFFIX=$(OS_SOURCE)
-else
-TARGETSUFFIX=$(FULL_TARGET)
-SOURCESUFFIX=$(FULL_SOURCE)
-endif
-ifneq ($(FULL_TARGET),$(FULL_SOURCE))
-CROSSCOMPILE=1
-endif
-ifeq ($(findstring makefile,$(MAKECMDGOALS)),)
-ifeq ($(findstring $(FULL_TARGET),$(MAKEFILETARGETS)),)
-$(error The Makefile doesn't support target $(FULL_TARGET), please run fpcmake first)
-endif
-endif
-ifneq ($(findstring $(OS_TARGET),$(BSDs)),)
-BSDhier=1
-endif
-ifeq ($(OS_TARGET),linux)
-linuxHier=1
-endif
-export OS_TARGET OS_SOURCE CPU_TARGET CPU_SOURCE FULL_TARGET FULL_SOURCE TARGETSUFFIX SOURCESUFFIX CROSSCOMPILE
-ifdef FPCDIR
-override FPCDIR:=$(subst \,/,$(FPCDIR))
-ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
-override FPCDIR=wrong
-endif
-else
-override FPCDIR=wrong
-endif
-ifdef DEFAULT_FPCDIR
-ifeq ($(FPCDIR),wrong)
-override FPCDIR:=$(subst \,/,$(DEFAULT_FPCDIR))
-ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
-override FPCDIR=wrong
-endif
-endif
-endif
-ifeq ($(FPCDIR),wrong)
-ifdef inUnix
-override FPCDIR=/usr/local/lib/fpc/$(FPC_VERSION)
-ifeq ($(wildcard $(FPCDIR)/units),)
-override FPCDIR=/usr/lib/fpc/$(FPC_VERSION)
-endif
-else
-override FPCDIR:=$(subst /$(FPC),,$(firstword $(strip $(wildcard $(addsuffix /$(FPC),$(SEARCHPATH))))))
-override FPCDIR:=$(FPCDIR)/..
-ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
-override FPCDIR:=$(FPCDIR)/..
-ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
-override FPCDIR:=$(BASEDIR)
-ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
-override FPCDIR=c:/pp
-endif
-endif
-endif
-endif
-endif
-ifndef CROSSBINDIR
-CROSSBINDIR:=$(wildcard $(FPCDIR)/bin/$(TARGETSUFFIX))
-endif
-ifndef BINUTILSPREFIX
-ifndef CROSSBINDIR
-ifdef CROSSCOMPILE
-BINUTILSPREFIX=$(CPU_TARGET)-$(OS_TARGET)-
-endif
-endif
-endif
-UNITSDIR:=$(wildcard $(FPCDIR)/units/$(TARGETSUFFIX))
-ifeq ($(UNITSDIR),)
-UNITSDIR:=$(wildcard $(FPCDIR)/units/$(OS_TARGET))
-endif
-PACKAGESDIR:=$(wildcard $(FPCDIR) $(FPCDIR)/packages $(FPCDIR)/packages/base $(FPCDIR)/packages/extra)
-override PACKAGE_NAME=gdbint
-override PACKAGE_VERSION=2.0.0
-ifdef inUnix
-CURRDIR=./
-else
-CURRDIR=
-endif
-ifdef GDBLIBDIR
-override LIBGDBFILE:=$(firstword $(wildcard $(addsuffix /libgdb.a,$(GDBLIBDIR))))
-endif
-ifeq ($(LIBGDBFILE),)
-override GDBLIBDIR=$(wildcard $(FPCDIR)/libgdb/$(OS_TARGET)/$(CPU_TARGET))
-ifeq ($(GDBLIBDIR),)
-override GDBLIBDIR=$(FPCDIR)/libgdb/$(OS_TARGET)
-endif
-override LIBGDBFILE:=$(firstword $(wildcard $(addsuffix /libgdb.a,$(GDBLIBDIR))))
-endif
-ifeq ($(LIBGDBFILE),)
-GDBFOUND=0
-else
-GDBFOUND=1
-endif
-ifeq ($(FULL_TARGET),i386-linux)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),i386-go32v2)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),i386-win32)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),i386-os2)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),i386-freebsd)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),i386-beos)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),i386-netbsd)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),i386-solaris)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),i386-qnx)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),i386-netware)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),i386-openbsd)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),i386-wdosx)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),i386-darwin)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),i386-emx)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),i386-watcom)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),i386-netwlibc)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),i386-wince)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),i386-embedded)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),i386-symbian)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),m68k-linux)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),m68k-freebsd)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),m68k-netbsd)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),m68k-amiga)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),m68k-atari)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),m68k-openbsd)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),m68k-palmos)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),m68k-embedded)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),powerpc-linux)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),powerpc-netbsd)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),powerpc-amiga)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),powerpc-macos)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),powerpc-darwin)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),powerpc-morphos)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),powerpc-embedded)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),sparc-linux)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),sparc-netbsd)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),sparc-solaris)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),sparc-embedded)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),x86_64-linux)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),x86_64-freebsd)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),x86_64-darwin)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),x86_64-win64)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),x86_64-embedded)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),arm-linux)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),arm-palmos)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),arm-wince)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),arm-gba)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),arm-nds)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),arm-embedded)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),arm-symbian)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),powerpc64-linux)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),powerpc64-darwin)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),powerpc64-embedded)
-override TARGET_UNITS+=gdbint gdbcon
-endif
-ifeq ($(FULL_TARGET),i386-linux)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),i386-go32v2)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),i386-win32)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),i386-os2)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),i386-freebsd)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),i386-beos)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),i386-netbsd)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),i386-solaris)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),i386-qnx)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),i386-netware)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),i386-openbsd)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),i386-wdosx)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),i386-darwin)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),i386-emx)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),i386-watcom)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),i386-netwlibc)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),i386-wince)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),i386-embedded)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),i386-symbian)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),m68k-linux)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),m68k-freebsd)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),m68k-netbsd)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),m68k-amiga)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),m68k-atari)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),m68k-openbsd)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),m68k-palmos)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),m68k-embedded)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),powerpc-linux)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),powerpc-netbsd)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),powerpc-amiga)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),powerpc-macos)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),powerpc-darwin)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),powerpc-morphos)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),powerpc-embedded)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),sparc-linux)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),sparc-netbsd)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),sparc-solaris)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),sparc-embedded)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),x86_64-linux)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),x86_64-freebsd)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),x86_64-darwin)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),x86_64-win64)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),x86_64-embedded)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),arm-linux)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),arm-palmos)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),arm-wince)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),arm-gba)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),arm-nds)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),arm-embedded)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),arm-symbian)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),powerpc64-linux)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),powerpc64-darwin)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-ifeq ($(FULL_TARGET),powerpc64-embedded)
-override TARGET_EXAMPLES+=testgdb symify
-endif
-override INSTALL_FPCPACKAGE=y
-ifeq ($(FULL_TARGET),i386-linux)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),i386-go32v2)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),i386-win32)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),i386-os2)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),i386-freebsd)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),i386-beos)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),i386-netbsd)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),i386-solaris)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),i386-qnx)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),i386-netware)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),i386-openbsd)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),i386-wdosx)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),i386-darwin)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),i386-emx)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),i386-watcom)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),i386-netwlibc)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),i386-wince)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),i386-embedded)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),i386-symbian)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),m68k-linux)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),m68k-freebsd)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),m68k-netbsd)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),m68k-amiga)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),m68k-atari)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),m68k-openbsd)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),m68k-palmos)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),m68k-embedded)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),powerpc-linux)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),powerpc-netbsd)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),powerpc-amiga)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),powerpc-macos)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),powerpc-darwin)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),powerpc-morphos)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),powerpc-embedded)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),sparc-linux)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),sparc-netbsd)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),sparc-solaris)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),sparc-embedded)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),x86_64-linux)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),x86_64-freebsd)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),x86_64-darwin)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),x86_64-win64)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),x86_64-embedded)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),arm-linux)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),arm-palmos)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),arm-wince)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),arm-gba)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),arm-nds)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),arm-embedded)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),arm-symbian)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),powerpc64-linux)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),powerpc64-darwin)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),powerpc64-embedded)
-override COMPILER_OBJECTDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),i386-linux)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),i386-go32v2)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),i386-win32)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),i386-os2)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),i386-freebsd)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),i386-beos)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),i386-netbsd)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),i386-solaris)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),i386-qnx)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),i386-netware)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),i386-openbsd)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),i386-wdosx)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),i386-darwin)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),i386-emx)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),i386-watcom)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),i386-netwlibc)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),i386-wince)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),i386-embedded)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),i386-symbian)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),m68k-linux)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),m68k-freebsd)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),m68k-netbsd)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),m68k-amiga)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),m68k-atari)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),m68k-openbsd)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),m68k-palmos)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),m68k-embedded)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),powerpc-linux)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),powerpc-netbsd)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),powerpc-amiga)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),powerpc-macos)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),powerpc-darwin)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),powerpc-morphos)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),powerpc-embedded)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),sparc-linux)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),sparc-netbsd)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),sparc-solaris)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),sparc-embedded)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),x86_64-linux)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),x86_64-freebsd)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),x86_64-darwin)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),x86_64-win64)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),x86_64-embedded)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),arm-linux)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),arm-palmos)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),arm-wince)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),arm-gba)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),arm-nds)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),arm-embedded)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),arm-symbian)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),powerpc64-linux)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),powerpc64-darwin)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifeq ($(FULL_TARGET),powerpc64-embedded)
-override COMPILER_LIBRARYDIR+=$(GDBLIBDIR)
-endif
-ifdef REQUIRE_UNITSDIR
-override UNITSDIR+=$(REQUIRE_UNITSDIR)
-endif
-ifdef REQUIRE_PACKAGESDIR
-override PACKAGESDIR+=$(REQUIRE_PACKAGESDIR)
-endif
-ifdef ZIPINSTALL
-ifneq ($(findstring $(OS_TARGET),$(UNIXs)),)
-UNIXHier=1
-endif
-else
-ifneq ($(findstring $(OS_SOURCE),$(UNIXs)),)
-UNIXHier=1
-endif
-endif
-ifndef INSTALL_PREFIX
-ifdef PREFIX
-INSTALL_PREFIX=$(PREFIX)
-endif
-endif
-ifndef INSTALL_PREFIX
-ifdef UNIXHier
-INSTALL_PREFIX=/usr/local
-else
-ifdef INSTALL_FPCPACKAGE
-INSTALL_BASEDIR:=/pp
-else
-INSTALL_BASEDIR:=/$(PACKAGE_NAME)
-endif
-endif
-endif
-export INSTALL_PREFIX
-ifdef INSTALL_FPCSUBDIR
-export INSTALL_FPCSUBDIR
-endif
-ifndef DIST_DESTDIR
-DIST_DESTDIR:=$(BASEDIR)
-endif
-export DIST_DESTDIR
-ifndef COMPILER_UNITTARGETDIR
-ifdef PACKAGEDIR_MAIN
-COMPILER_UNITTARGETDIR=$(PACKAGEDIR_MAIN)/units/$(TARGETSUFFIX)
-else
-COMPILER_UNITTARGETDIR=units/$(TARGETSUFFIX)
-endif
-endif
-ifndef COMPILER_TARGETDIR
-COMPILER_TARGETDIR=.
-endif
-ifndef INSTALL_BASEDIR
-ifdef UNIXHier
-ifdef INSTALL_FPCPACKAGE
-INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/fpc/$(FPC_VERSION)
-else
-INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/$(PACKAGE_NAME)
-endif
-else
-INSTALL_BASEDIR:=$(INSTALL_PREFIX)
-endif
-endif
-ifndef INSTALL_BINDIR
-ifdef UNIXHier
-INSTALL_BINDIR:=$(INSTALL_PREFIX)/bin
-else
-INSTALL_BINDIR:=$(INSTALL_BASEDIR)/bin
-ifdef INSTALL_FPCPACKAGE
-ifdef CROSSCOMPILE
-ifdef CROSSINSTALL
-INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(SOURCESUFFIX)
-else
-INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX)
-endif
-else
-INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX)
-endif
-endif
-endif
-endif
-ifndef INSTALL_UNITDIR
-INSTALL_UNITDIR:=$(INSTALL_BASEDIR)/units/$(TARGETSUFFIX)
-ifdef INSTALL_FPCPACKAGE
-ifdef PACKAGE_NAME
-INSTALL_UNITDIR:=$(INSTALL_UNITDIR)/$(PACKAGE_NAME)
-endif
-endif
-endif
-ifndef INSTALL_LIBDIR
-ifdef UNIXHier
-INSTALL_LIBDIR:=$(INSTALL_PREFIX)/lib
-else
-INSTALL_LIBDIR:=$(INSTALL_UNITDIR)
-endif
-endif
-ifndef INSTALL_SOURCEDIR
-ifdef UNIXHier
-ifdef BSDhier
-SRCPREFIXDIR=share/src
-else
-ifdef linuxHier
-SRCPREFIXDIR=share/src
-else
-SRCPREFIXDIR=src
-endif
-endif
-ifdef INSTALL_FPCPACKAGE
-ifdef INSTALL_FPCSUBDIR
-INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/fpc-$(FPC_VERSION)/$(INSTALL_FPCSUBDIR)/$(PACKAGE_NAME)
-else
-INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
-endif
-else
-INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
-endif
-else
-ifdef INSTALL_FPCPACKAGE
-ifdef INSTALL_FPCSUBDIR
-INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source/$(INSTALL_FPCSUBDIR)/$(PACKAGE_NAME)
-else
-INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source/$(PACKAGE_NAME)
-endif
-else
-INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source
-endif
-endif
-endif
-ifndef INSTALL_DOCDIR
-ifdef UNIXHier
-ifdef BSDhier
-DOCPREFIXDIR=share/doc
-else
-ifdef linuxHier
-DOCPREFIXDIR=share/doc
-else
-DOCPREFIXDIR=doc
-endif
-endif
-ifdef INSTALL_FPCPACKAGE
-INSTALL_DOCDIR:=$(INSTALL_PREFIX)/$(DOCPREFIXDIR)/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
-else
-INSTALL_DOCDIR:=$(INSTALL_PREFIX)/$(DOCPREFIXDIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
-endif
-else
-ifdef INSTALL_FPCPACKAGE
-INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc/$(PACKAGE_NAME)
-else
-INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc
-endif
-endif
-endif
-ifndef INSTALL_EXAMPLEDIR
-ifdef UNIXHier
-ifdef INSTALL_FPCPACKAGE
-ifdef BSDhier
-INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/share/examples/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
-else
-ifdef linuxHier
-INSTALL_EXAMPLEDIR:=$(INSTALL_DOCDIR)/examples
-else
-INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/fpc-$(FPC_VERSION)/examples/$(PACKAGE_NAME)
-endif
-endif
-else
-ifdef BSDhier
-INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/share/examples/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
-else
-ifdef linuxHier
-INSTALL_EXAMPLEDIR:=$(INSTALL_DOCDIR)/examples/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
-else
-INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
-endif
-endif
-endif
-else
-ifdef INSTALL_FPCPACKAGE
-INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples/$(PACKAGE_NAME)
-else
-INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples
-endif
-endif
-endif
-ifndef INSTALL_DATADIR
-INSTALL_DATADIR=$(INSTALL_BASEDIR)
-endif
-ifndef INSTALL_SHAREDDIR
-INSTALL_SHAREDDIR=$(INSTALL_PREFIX)/lib
-endif
-ifdef CROSSCOMPILE
-ifndef CROSSBINDIR
-CROSSBINDIR:=$(wildcard $(CROSSTARGETDIR)/bin/$(SOURCESUFFIX))
-ifeq ($(CROSSBINDIR),)
-CROSSBINDIR:=$(wildcard $(INSTALL_BASEDIR)/cross/$(TARGETSUFFIX)/bin/$(FULL_SOURCE))
-endif
-endif
-else
-CROSSBINDIR=
-endif
-ifeq ($(OS_SOURCE),linux)
-ifndef GCCLIBDIR
-ifeq ($(CPU_TARGET),i386)
-ifneq ($(findstring x86_64,$(shell uname -a)),)
-ifeq ($(BINUTILSPREFIX),)
-GCCLIBDIR:=$(shell dirname `gcc -m32 -print-libgcc-file-name`)
-endif
-endif
-endif
-ifeq ($(CPU_TARGET),powerpc64)
-ifeq ($(BINUTILSPREFIX),)
-GCCLIBDIR:=$(shell dirname `gcc -m64 -print-libgcc-file-name`)
-endif
-endif
-endif
-ifndef GCCLIBDIR
-CROSSGCC=$(strip $(wildcard $(addsuffix /$(BINUTILSPREFIX)gcc$(SRCEXEEXT),$(SEARCHPATH))))
-ifneq ($(CROSSGCC),)
-GCCLIBDIR:=$(shell dirname `$(CROSSGCC) -print-libgcc-file-name`)
-endif
-endif
-ifndef OTHERLIBDIR
-OTHERLIBDIR:=$(shell grep -v "^\#" /etc/ld.so.conf | awk '{ ORS=" "; print $1 }')
-endif
-endif
-ifdef inUnix
-ifeq ($(OS_SOURCE),netbsd)
-OTHERLIBDIR+=/usr/pkg/lib
-endif
-export GCCLIBDIR OTHERLIB
-endif
-BATCHEXT=.bat
-LOADEREXT=.as
-EXEEXT=.exe
-PPLEXT=.ppl
-PPUEXT=.ppu
-OEXT=.o
-ASMEXT=.s
-SMARTEXT=.sl
-STATICLIBEXT=.a
-SHAREDLIBEXT=.so
-SHAREDLIBPREFIX=libfp
-STATICLIBPREFIX=libp
-IMPORTLIBPREFIX=libimp
-RSTEXT=.rst
-ifeq ($(findstring 1.0.,$(FPC_VERSION)),)
-ifeq ($(OS_TARGET),go32v1)
-STATICLIBPREFIX=
-SHORTSUFFIX=v1
-endif
-ifeq ($(OS_TARGET),go32v2)
-STATICLIBPREFIX=
-SHORTSUFFIX=dos
-endif
-ifeq ($(OS_TARGET),watcom)
-STATICLIBPREFIX=
-OEXT=.obj
-ASMEXT=.asm
-SHAREDLIBEXT=.dll
-SHORTSUFFIX=wat
-endif
-ifeq ($(OS_TARGET),linux)
-BATCHEXT=.sh
-EXEEXT=
-HASSHAREDLIB=1
-SHORTSUFFIX=lnx
-endif
-ifeq ($(OS_TARGET),freebsd)
-BATCHEXT=.sh
-EXEEXT=
-HASSHAREDLIB=1
-SHORTSUFFIX=fbs
-endif
-ifeq ($(OS_TARGET),netbsd)
-BATCHEXT=.sh
-EXEEXT=
-HASSHAREDLIB=1
-SHORTSUFFIX=nbs
-endif
-ifeq ($(OS_TARGET),openbsd)
-BATCHEXT=.sh
-EXEEXT=
-HASSHAREDLIB=1
-SHORTSUFFIX=obs
-endif
-ifeq ($(OS_TARGET),win32)
-SHAREDLIBEXT=.dll
-SHORTSUFFIX=w32
-endif
-ifeq ($(OS_TARGET),os2)
-BATCHEXT=.cmd
-AOUTEXT=.out
-STATICLIBPREFIX=
-SHAREDLIBEXT=.dll
-SHORTSUFFIX=os2
-ECHO=echo
-endif
-ifeq ($(OS_TARGET),emx)
-BATCHEXT=.cmd
-AOUTEXT=.out
-STATICLIBPREFIX=
-SHAREDLIBEXT=.dll
-SHORTSUFFIX=emx
-ECHO=echo
-endif
-ifeq ($(OS_TARGET),amiga)
-EXEEXT=
-SHAREDLIBEXT=.library
-SHORTSUFFIX=amg
-endif
-ifeq ($(OS_TARGET),morphos)
-EXEEXT=
-SHAREDLIBEXT=.library
-SHORTSUFFIX=mos
-endif
-ifeq ($(OS_TARGET),atari)
-EXEEXT=.ttp
-SHORTSUFFIX=ata
-endif
-ifeq ($(OS_TARGET),beos)
-BATCHEXT=.sh
-EXEEXT=
-SHORTSUFFIX=be
-endif
-ifeq ($(OS_TARGET),solaris)
-BATCHEXT=.sh
-EXEEXT=
-SHORTSUFFIX=sun
-endif
-ifeq ($(OS_TARGET),qnx)
-BATCHEXT=.sh
-EXEEXT=
-SHORTSUFFIX=qnx
-endif
-ifeq ($(OS_TARGET),netware)
-EXEEXT=.nlm
-STATICLIBPREFIX=
-SHORTSUFFIX=nw
-endif
-ifeq ($(OS_TARGET),netwlibc)
-EXEEXT=.nlm
-STATICLIBPREFIX=
-SHORTSUFFIX=nwl
-endif
-ifeq ($(OS_TARGET),macos)
-BATCHEXT=
-EXEEXT=
-DEBUGSYMEXT=.xcoff
-SHORTSUFFIX=mac
-endif
-ifeq ($(OS_TARGET),darwin)
-BATCHEXT=.sh
-EXEEXT=
-HASSHAREDLIB=1
-SHORTSUFFIX=dwn
-endif
-ifeq ($(OS_TARGET),gba)
-EXEEXT=.gba
-SHAREDLIBEXT=.so
-SHORTSUFFIX=gba
-endif
-ifeq ($(OS_TARGET),symbian)
-SHAREDLIBEXT=.dll
-SHORTSUFFIX=symbian
-endif
-else
-ifeq ($(OS_TARGET),go32v1)
-PPUEXT=.pp1
-OEXT=.o1
-ASMEXT=.s1
-SMARTEXT=.sl1
-STATICLIBEXT=.a1
-SHAREDLIBEXT=.so1
-STATICLIBPREFIX=
-SHORTSUFFIX=v1
-endif
-ifeq ($(OS_TARGET),go32v2)
-STATICLIBPREFIX=
-SHORTSUFFIX=dos
-endif
-ifeq ($(OS_TARGET),watcom)
-STATICLIBPREFIX=
-SHORTSUFFIX=wat
-endif
-ifeq ($(OS_TARGET),linux)
-BATCHEXT=.sh
-EXEEXT=
-HASSHAREDLIB=1
-SHORTSUFFIX=lnx
-endif
-ifeq ($(OS_TARGET),freebsd)
-BATCHEXT=.sh
-EXEEXT=
-HASSHAREDLIB=1
-SHORTSUFFIX=fbs
-endif
-ifeq ($(OS_TARGET),netbsd)
-BATCHEXT=.sh
-EXEEXT=
-HASSHAREDLIB=1
-SHORTSUFFIX=nbs
-endif
-ifeq ($(OS_TARGET),openbsd)
-BATCHEXT=.sh
-EXEEXT=
-HASSHAREDLIB=1
-SHORTSUFFIX=obs
-endif
-ifeq ($(OS_TARGET),win32)
-PPUEXT=.ppw
-OEXT=.ow
-ASMEXT=.sw
-SMARTEXT=.slw
-STATICLIBEXT=.aw
-SHAREDLIBEXT=.dll
-SHORTSUFFIX=w32
-endif
-ifeq ($(OS_TARGET),os2)
-BATCHEXT=.cmd
-PPUEXT=.ppo
-ASMEXT=.so2
-OEXT=.oo2
-AOUTEXT=.out
-SMARTEXT=.sl2
-STATICLIBPREFIX=
-STATICLIBEXT=.ao2
-SHAREDLIBEXT=.dll
-SHORTSUFFIX=os2
-ECHO=echo
-endif
-ifeq ($(OS_TARGET),amiga)
-EXEEXT=
-PPUEXT=.ppu
-ASMEXT=.s
-OEXT=.o
-SMARTEXT=.sl
-STATICLIBEXT=.a
-SHAREDLIBEXT=.library
-SHORTSUFFIX=amg
-endif
-ifeq ($(OS_TARGET),atari)
-PPUEXT=.ppu
-ASMEXT=.s
-OEXT=.o
-SMARTEXT=.sl
-STATICLIBEXT=.a
-EXEEXT=.ttp
-SHORTSUFFIX=ata
-endif
-ifeq ($(OS_TARGET),beos)
-BATCHEXT=.sh
-PPUEXT=.ppu
-ASMEXT=.s
-OEXT=.o
-SMARTEXT=.sl
-STATICLIBEXT=.a
-EXEEXT=
-SHORTSUFFIX=be
-endif
-ifeq ($(OS_TARGET),solaris)
-BATCHEXT=.sh
-PPUEXT=.ppu
-ASMEXT=.s
-OEXT=.o
-SMARTEXT=.sl
-STATICLIBEXT=.a
-EXEEXT=
-SHORTSUFFIX=sun
-endif
-ifeq ($(OS_TARGET),qnx)
-BATCHEXT=.sh
-PPUEXT=.ppu
-ASMEXT=.s
-OEXT=.o
-SMARTEXT=.sl
-STATICLIBEXT=.a
-EXEEXT=
-SHORTSUFFIX=qnx
-endif
-ifeq ($(OS_TARGET),netware)
-STATICLIBPREFIX=
-PPUEXT=.ppu
-OEXT=.o
-ASMEXT=.s
-SMARTEXT=.sl
-STATICLIBEXT=.a
-SHAREDLIBEXT=.nlm
-EXEEXT=.nlm
-SHORTSUFFIX=nw
-endif
-ifeq ($(OS_TARGET),netwlibc)
-STATICLIBPREFIX=
-PPUEXT=.ppu
-OEXT=.o
-ASMEXT=.s
-SMARTEXT=.sl
-STATICLIBEXT=.a
-SHAREDLIBEXT=.nlm
-EXEEXT=.nlm
-SHORTSUFFIX=nwl
-endif
-ifeq ($(OS_TARGET),macos)
-BATCHEXT=
-PPUEXT=.ppu
-ASMEXT=.s
-OEXT=.o
-SMARTEXT=.sl
-STATICLIBEXT=.a
-EXEEXT=
-DEBUGSYMEXT=.xcoff
-SHORTSUFFIX=mac
-endif
-endif
-ifneq ($(findstring $(OS_SOURCE),$(LIMIT83fs)),)
-FPCMADE=fpcmade.$(SHORTSUFFIX)
-ZIPSUFFIX=$(SHORTSUFFIX)
-ZIPCROSSPREFIX=
-ZIPSOURCESUFFIX=src
-ZIPEXAMPLESUFFIX=exm
-else
-FPCMADE=fpcmade.$(TARGETSUFFIX)
-ZIPSOURCESUFFIX=.source
-ZIPEXAMPLESUFFIX=.examples
-ifdef CROSSCOMPILE
-ZIPSUFFIX=.$(SOURCESUFFIX)
-ZIPCROSSPREFIX=$(TARGETSUFFIX)-
-else
-ZIPSUFFIX=.$(TARGETSUFFIX)
-ZIPCROSSPREFIX=
-endif
-endif
-ifndef ECHO
-ECHO:=$(strip $(wildcard $(addsuffix /gecho$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(ECHO),)
-ECHO:=$(strip $(wildcard $(addsuffix /echo$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(ECHO),)
-ECHO= __missing_command_ECHO
-else
-ECHO:=$(firstword $(ECHO))
-endif
-else
-ECHO:=$(firstword $(ECHO))
-endif
-endif
-export ECHO
-ifndef DATE
-DATE:=$(strip $(wildcard $(addsuffix /gdate$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(DATE),)
-DATE:=$(strip $(wildcard $(addsuffix /date$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(DATE),)
-DATE= __missing_command_DATE
-else
-DATE:=$(firstword $(DATE))
-endif
-else
-DATE:=$(firstword $(DATE))
-endif
-endif
-export DATE
-ifndef GINSTALL
-GINSTALL:=$(strip $(wildcard $(addsuffix /ginstall$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(GINSTALL),)
-GINSTALL:=$(strip $(wildcard $(addsuffix /install$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(GINSTALL),)
-GINSTALL= __missing_command_GINSTALL
-else
-GINSTALL:=$(firstword $(GINSTALL))
-endif
-else
-GINSTALL:=$(firstword $(GINSTALL))
-endif
-endif
-export GINSTALL
-ifndef CPPROG
-CPPROG:=$(strip $(wildcard $(addsuffix /cp$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(CPPROG),)
-CPPROG= __missing_command_CPPROG
-else
-CPPROG:=$(firstword $(CPPROG))
-endif
-endif
-export CPPROG
-ifndef RMPROG
-RMPROG:=$(strip $(wildcard $(addsuffix /rm$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(RMPROG),)
-RMPROG= __missing_command_RMPROG
-else
-RMPROG:=$(firstword $(RMPROG))
-endif
-endif
-export RMPROG
-ifndef MVPROG
-MVPROG:=$(strip $(wildcard $(addsuffix /mv$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(MVPROG),)
-MVPROG= __missing_command_MVPROG
-else
-MVPROG:=$(firstword $(MVPROG))
-endif
-endif
-export MVPROG
-ifndef MKDIRPROG
-MKDIRPROG:=$(strip $(wildcard $(addsuffix /gmkdir$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(MKDIRPROG),)
-MKDIRPROG:=$(strip $(wildcard $(addsuffix /mkdir$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(MKDIRPROG),)
-MKDIRPROG= __missing_command_MKDIRPROG
-else
-MKDIRPROG:=$(firstword $(MKDIRPROG))
-endif
-else
-MKDIRPROG:=$(firstword $(MKDIRPROG))
-endif
-endif
-export MKDIRPROG
-ifndef ECHOREDIR
-ifndef inUnix
-ECHOREDIR=echo
-else
-ECHOREDIR=$(ECHO)
-endif
-endif
-ifndef COPY
-COPY:=$(CPPROG) -fp
-endif
-ifndef COPYTREE
-COPYTREE:=$(CPPROG) -Rfp
-endif
-ifndef MKDIRTREE
-MKDIRTREE:=$(MKDIRPROG) -p
-endif
-ifndef MOVE
-MOVE:=$(MVPROG) -f
-endif
-ifndef DEL
-DEL:=$(RMPROG) -f
-endif
-ifndef DELTREE
-DELTREE:=$(RMPROG) -rf
-endif
-ifndef INSTALL
-ifdef inUnix
-INSTALL:=$(GINSTALL) -c -m 644
-else
-INSTALL:=$(COPY)
-endif
-endif
-ifndef INSTALLEXE
-ifdef inUnix
-INSTALLEXE:=$(GINSTALL) -c -m 755
-else
-INSTALLEXE:=$(COPY)
-endif
-endif
-ifndef MKDIR
-MKDIR:=$(GINSTALL) -m 755 -d
-endif
-export ECHOREDIR COPY COPYTREE MOVE DEL DELTREE INSTALL INSTALLEXE MKDIR
-ifndef PPUMOVE
-PPUMOVE:=$(strip $(wildcard $(addsuffix /ppumove$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(PPUMOVE),)
-PPUMOVE= __missing_command_PPUMOVE
-else
-PPUMOVE:=$(firstword $(PPUMOVE))
-endif
-endif
-export PPUMOVE
-ifndef FPCMAKE
-FPCMAKE:=$(strip $(wildcard $(addsuffix /fpcmake$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(FPCMAKE),)
-FPCMAKE= __missing_command_FPCMAKE
-else
-FPCMAKE:=$(firstword $(FPCMAKE))
-endif
-endif
-export FPCMAKE
-ifndef ZIPPROG
-ZIPPROG:=$(strip $(wildcard $(addsuffix /zip$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(ZIPPROG),)
-ZIPPROG= __missing_command_ZIPPROG
-else
-ZIPPROG:=$(firstword $(ZIPPROG))
-endif
-endif
-export ZIPPROG
-ifndef TARPROG
-TARPROG:=$(strip $(wildcard $(addsuffix /gtar$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(TARPROG),)
-TARPROG:=$(strip $(wildcard $(addsuffix /tar$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(TARPROG),)
-TARPROG= __missing_command_TARPROG
-else
-TARPROG:=$(firstword $(TARPROG))
-endif
-else
-TARPROG:=$(firstword $(TARPROG))
-endif
-endif
-export TARPROG
-ASNAME=$(BINUTILSPREFIX)as
-LDNAME=$(BINUTILSPREFIX)ld
-ARNAME=$(BINUTILSPREFIX)ar
-RCNAME=$(BINUTILSPREFIX)rc
-ifneq ($(findstring 1.0.,$(FPC_VERSION)),)
-ifeq ($(OS_TARGET),win32)
-ifeq ($(CROSSBINDIR),)
-ASNAME=asw
-LDNAME=ldw
-ARNAME=arw
-endif
-endif
-endif
-ifndef ASPROG
-ifdef CROSSBINDIR
-ASPROG=$(CROSSBINDIR)/$(ASNAME)$(SRCEXEEXT)
-else
-ASPROG=$(ASNAME)
-endif
-endif
-ifndef LDPROG
-ifdef CROSSBINDIR
-LDPROG=$(CROSSBINDIR)/$(LDNAME)$(SRCEXEEXT)
-else
-LDPROG=$(LDNAME)
-endif
-endif
-ifndef RCPROG
-ifdef CROSSBINDIR
-RCPROG=$(CROSSBINDIR)/$(RCNAME)$(SRCEXEEXT)
-else
-RCPROG=$(RCNAME)
-endif
-endif
-ifndef ARPROG
-ifdef CROSSBINDIR
-ARPROG=$(CROSSBINDIR)/$(ARNAME)$(SRCEXEEXT)
-else
-ARPROG=$(ARNAME)
-endif
-endif
-AS=$(ASPROG)
-LD=$(LDPROG)
-RC=$(RCPROG)
-AR=$(ARPROG)
-PPAS=ppas$(SRCBATCHEXT)
-ifdef inUnix
-LDCONFIG=ldconfig
-else
-LDCONFIG=
-endif
-ifdef DATE
-DATESTR:=$(shell $(DATE) +%Y%m%d)
-else
-DATESTR=
-endif
-ifndef UPXPROG
-ifeq ($(OS_TARGET),go32v2)
-UPXPROG:=1
-endif
-ifeq ($(OS_TARGET),win32)
-UPXPROG:=1
-endif
-ifdef UPXPROG
-UPXPROG:=$(strip $(wildcard $(addsuffix /upx$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(UPXPROG),)
-UPXPROG=
-else
-UPXPROG:=$(firstword $(UPXPROG))
-endif
-else
-UPXPROG=
-endif
-endif
-export UPXPROG
-ZIPOPT=-9
-ZIPEXT=.zip
-ifeq ($(USETAR),bz2)
-TAROPT=vj
-TAREXT=.tar.bz2
-else
-TAROPT=vz
-TAREXT=.tar.gz
-endif
-override REQUIRE_PACKAGES=rtl 
-ifeq ($(FULL_TARGET),i386-linux)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),i386-go32v2)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),i386-win32)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),i386-os2)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),i386-freebsd)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),i386-beos)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),i386-netbsd)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),i386-solaris)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),i386-qnx)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),i386-netware)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),i386-openbsd)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),i386-wdosx)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),i386-darwin)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),i386-emx)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),i386-watcom)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),i386-netwlibc)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),i386-wince)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),i386-embedded)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),i386-symbian)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),m68k-linux)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),m68k-freebsd)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),m68k-netbsd)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),m68k-amiga)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),m68k-atari)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),m68k-openbsd)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),m68k-palmos)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),m68k-embedded)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),powerpc-linux)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),powerpc-netbsd)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),powerpc-amiga)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),powerpc-macos)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),powerpc-darwin)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),powerpc-morphos)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),powerpc-embedded)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),sparc-linux)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),sparc-netbsd)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),sparc-solaris)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),sparc-embedded)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),x86_64-linux)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),x86_64-freebsd)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),x86_64-darwin)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),x86_64-win64)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),x86_64-embedded)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),arm-linux)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),arm-palmos)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),arm-wince)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),arm-gba)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),arm-nds)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),arm-embedded)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),arm-symbian)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),powerpc64-linux)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),powerpc64-darwin)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),powerpc64-embedded)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifdef REQUIRE_PACKAGES_RTL
-PACKAGEDIR_RTL:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /rtl/Makefile.fpc,$(PACKAGESDIR))))))
-ifneq ($(PACKAGEDIR_RTL),)
-ifneq ($(wildcard $(PACKAGEDIR_RTL)/units/$(TARGETSUFFIX)),)
-UNITDIR_RTL=$(PACKAGEDIR_RTL)/units/$(TARGETSUFFIX)
-else
-UNITDIR_RTL=$(PACKAGEDIR_RTL)
-endif
-ifdef CHECKDEPEND
-$(PACKAGEDIR_RTL)/$(FPCMADE):
-	$(MAKE) -C $(PACKAGEDIR_RTL) $(FPCMADE)
-override ALLDEPENDENCIES+=$(PACKAGEDIR_RTL)/$(FPCMADE)
-endif
-else
-PACKAGEDIR_RTL=
-UNITDIR_RTL:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /rtl/Package.fpc,$(UNITSDIR)))))
-ifneq ($(UNITDIR_RTL),)
-UNITDIR_RTL:=$(firstword $(UNITDIR_RTL))
-else
-UNITDIR_RTL=
-endif
-endif
-ifdef UNITDIR_RTL
-override COMPILER_UNITDIR+=$(UNITDIR_RTL)
-endif
-endif
-ifndef NOCPUDEF
-override FPCOPTDEF=$(CPU_TARGET)
-endif
-ifneq ($(OS_TARGET),$(OS_SOURCE))
-override FPCOPT+=-T$(OS_TARGET)
-endif
-ifneq ($(CPU_TARGET),$(CPU_SOURCE))
-override FPCOPT+=-P$(CPU_TARGET)
-endif
-ifeq ($(OS_SOURCE),openbsd)
-override FPCOPT+=-FD$(NEW_BINUTILS_PATH)
-endif
-ifndef CROSSBOOTSTRAP
-ifneq ($(BINUTILSPREFIX),)
-override FPCOPT+=-XP$(BINUTILSPREFIX)
-endif
-ifneq ($(BINUTILSPREFIX),)
-override FPCOPT+=-Xr$(RLINKPATH)
-endif
-endif
-ifdef UNITDIR
-override FPCOPT+=$(addprefix -Fu,$(UNITDIR))
-endif
-ifdef LIBDIR
-override FPCOPT+=$(addprefix -Fl,$(LIBDIR))
-endif
-ifdef OBJDIR
-override FPCOPT+=$(addprefix -Fo,$(OBJDIR))
-endif
-ifdef INCDIR
-override FPCOPT+=$(addprefix -Fi,$(INCDIR))
-endif
-ifdef LINKSMART
-override FPCOPT+=-XX
-endif
-ifdef CREATESMART
-override FPCOPT+=-CX
-endif
-ifdef DEBUG
-override FPCOPT+=-gl
-override FPCOPTDEF+=DEBUG
-endif
-ifdef RELEASE
-ifneq ($(findstring 2.0.,$(FPC_VERSION)),)
-ifeq ($(CPU_TARGET),i386)
-FPCCPUOPT:=-OG2p3
-endif
-ifeq ($(CPU_TARGET),powerpc)
-FPCCPUOPT:=-O1r
-endif
-else
-FPCCPUOPT:=-O2
-endif
-override FPCOPT+=-Ur -Xs $(FPCCPUOPT) -n
-override FPCOPTDEF+=RELEASE
-endif
-ifdef STRIP
-override FPCOPT+=-Xs
-endif
-ifdef OPTIMIZE
-override FPCOPT+=-O2
-endif
-ifdef VERBOSE
-override FPCOPT+=-vwni
-endif
-ifdef COMPILER_OPTIONS
-override FPCOPT+=$(COMPILER_OPTIONS)
-endif
-ifdef COMPILER_UNITDIR
-override FPCOPT+=$(addprefix -Fu,$(COMPILER_UNITDIR))
-endif
-ifdef COMPILER_LIBRARYDIR
-override FPCOPT+=$(addprefix -Fl,$(COMPILER_LIBRARYDIR))
-endif
-ifdef COMPILER_OBJECTDIR
-override FPCOPT+=$(addprefix -Fo,$(COMPILER_OBJECTDIR))
-endif
-ifdef COMPILER_INCLUDEDIR
-override FPCOPT+=$(addprefix -Fi,$(COMPILER_INCLUDEDIR))
-endif
-ifdef CROSSBINDIR
-override FPCOPT+=-FD$(CROSSBINDIR)
-endif
-ifdef COMPILER_TARGETDIR
-override FPCOPT+=-FE$(COMPILER_TARGETDIR)
-ifeq ($(COMPILER_TARGETDIR),.)
-override TARGETDIRPREFIX=
-else
-override TARGETDIRPREFIX=$(COMPILER_TARGETDIR)/
-endif
-endif
-ifdef COMPILER_UNITTARGETDIR
-override FPCOPT+=-FU$(COMPILER_UNITTARGETDIR)
-ifeq ($(COMPILER_UNITTARGETDIR),.)
-override UNITTARGETDIRPREFIX=
-else
-override UNITTARGETDIRPREFIX=$(COMPILER_UNITTARGETDIR)/
-endif
-else
-ifdef COMPILER_TARGETDIR
-override COMPILER_UNITTARGETDIR=$(COMPILER_TARGETDIR)
-override UNITTARGETDIRPREFIX=$(TARGETDIRPREFIX)
-endif
-endif
-ifdef CREATESHARED
-override FPCOPT+=-Cg
-ifeq ($(CPU_TARGET),i386)
-override FPCOPT+=-Aas
-endif
-endif
-ifeq ($(findstring 2.0.,$(FPC_VERSION)),)
-ifeq ($(OS_TARGET),linux)
-ifeq ($(CPU_TARGET),x86_64)
-override FPCOPT+=-Cg
-endif
-endif
-endif
-ifdef LINKSHARED
-endif
-ifdef GCCLIBDIR
-override FPCOPT+=-Fl$(GCCLIBDIR)
-endif
-ifdef OTHERLIBDIR
-override FPCOPT+=$(addprefix -Fl,$(OTHERLIBDIR))
-endif
-ifdef OPT
-override FPCOPT+=$(OPT)
-endif
-ifdef FPCOPTDEF
-override FPCOPT+=$(addprefix -d,$(FPCOPTDEF))
-endif
-ifdef CFGFILE
-override FPCOPT+=@$(CFGFILE)
-endif
-ifdef USEENV
-override FPCEXTCMD:=$(FPCOPT)
-override FPCOPT:=!FPCEXTCMD
-export FPCEXTCMD
-endif
-override AFULL_TARGET=$(CPU_TARGET)-$(OS_TARGET)
-override AFULL_SOURCE=$(CPU_SOURCE)-$(OS_SOURCE)
-ifneq ($(AFULL_TARGET),$(AFULL_SOURCE))
-override ACROSSCOMPILE=1
-endif
-ifdef ACROSSCOMPILE
-override FPCOPT+=$(CROSSOPT)
-endif
-override COMPILER:=$(FPC) $(FPCOPT)
-ifeq (,$(findstring -s ,$(COMPILER)))
-EXECPPAS=
-else
-ifeq ($(FULL_SOURCE),$(FULL_TARGET))
-ifdef RUNBATCH
-EXECPPAS:=@$(RUNBATCH) $(PPAS)
-else
-EXECPPAS:=@$(PPAS)
-endif
-endif
-endif
-.PHONY: fpc_units
-ifneq ($(TARGET_UNITS),)
-override ALLTARGET+=fpc_units
-override UNITPPUFILES=$(addsuffix $(PPUEXT),$(TARGET_UNITS))
-override IMPLICITUNITPPUFILES=$(addsuffix $(PPUEXT),$(TARGET_IMPLICITUNITS))
-override INSTALLPPUFILES+=$(UNITPPUFILES) $(IMPLICITUNITPPUFILES)
-override CLEANPPUFILES+=$(UNITPPUFILES) $(IMPLICITUNITPPUFILES)
-endif
-fpc_units: $(COMPILER_UNITTARGETDIR) $(UNITPPUFILES)
-ifdef TARGET_RSTS
-override RSTFILES=$(addsuffix $(RSTEXT),$(TARGET_RSTS))
-override CLEANRSTFILES+=$(RSTFILES)
-endif
-.PHONY: fpc_examples
-ifneq ($(TARGET_EXAMPLES),)
-HASEXAMPLES=1
-override EXAMPLESOURCEFILES:=$(wildcard $(addsuffix .pp,$(TARGET_EXAMPLES)) $(addsuffix .pas,$(TARGET_EXAMPLES)) $(addsuffix .lpr,$(TARGET_EXAMPLES)) $(addsuffix .dpr,$(TARGET_EXAMPLES)))
-override EXAMPLEFILES:=$(addsuffix $(EXEEXT),$(TARGET_EXAMPLES))
-override EXAMPLEOFILES:=$(addsuffix $(OEXT),$(TARGET_EXAMPLES)) $(addprefix $(STATICLIBPREFIX),$(addsuffix $(STATICLIBEXT),$(TARGET_EXAMPLES))) $(addprefix $(IMPORTLIBPREFIX),$(addsuffix $(STATICLIBEXT),$(TARGET_EXAMPLES)))
-override CLEANEXEFILES+=$(EXAMPLEFILES) $(EXAMPLEOFILES)
-ifeq ($(OS_TARGET),os2)
-override CLEANEXEFILES+=$(addsuffix $(AOUTEXT),$(TARGET_EXAMPLES))
-endif
-ifeq ($(OS_TARGET),emx)
-override CLEANEXEFILES+=$(addsuffix $(AOUTEXT),$(TARGET_EXAMPLES))
-endif
-endif
-ifneq ($(TARGET_EXAMPLEDIRS),)
-HASEXAMPLES=1
-endif
-fpc_examples: all $(EXAMPLEFILES) $(addsuffix _all,$(TARGET_EXAMPLEDIRS))
-.PHONY: fpc_all fpc_smart fpc_debug fpc_release fpc_shared
-$(FPCMADE): $(ALLDEPENDENCIES) $(ALLTARGET)
-	@$(ECHOREDIR) Compiled > $(FPCMADE)
-fpc_all: $(FPCMADE)
-fpc_smart:
-	$(MAKE) all LINKSMART=1 CREATESMART=1
-fpc_debug:
-	$(MAKE) all DEBUG=1
-fpc_release:
-	$(MAKE) all RELEASE=1
-.SUFFIXES: $(EXEEXT) $(PPUEXT) $(OEXT) .pas .lpr .dpr .pp .rc .res
-$(COMPILER_UNITTARGETDIR):
-	$(MKDIRTREE) $(COMPILER_UNITTARGETDIR)
-$(COMPILER_TARGETDIR):
-	$(MKDIRTREE) $(COMPILER_TARGETDIR)
-%$(PPUEXT): %.pp
-	$(COMPILER) $<
-	$(EXECPPAS)
-%$(PPUEXT): %.pas
-	$(COMPILER) $<
-	$(EXECPPAS)
-%$(EXEEXT): %.pp
-	$(COMPILER) $<
-	$(EXECPPAS)
-%$(EXEEXT): %.pas
-	$(COMPILER) $<
-	$(EXECPPAS)
-%$(EXEEXT): %.lpr
-	$(COMPILER) $<
-	$(EXECPPAS)
-%$(EXEEXT): %.dpr
-	$(COMPILER) $<
-	$(EXECPPAS)
-%.res: %.rc
-	windres -i $< -o $@
-vpath %.pp $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
-vpath %.pas $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
-vpath %.lpr $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
-vpath %.dpr $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
-vpath %.inc $(COMPILER_INCLUDEDIR)
-vpath %$(OEXT) $(COMPILER_UNITTARGETDIR)
-vpath %$(PPUEXT) $(COMPILER_UNITTARGETDIR)
-.PHONY: fpc_shared
-override INSTALLTARGET+=fpc_shared_install
-ifndef SHARED_LIBVERSION
-SHARED_LIBVERSION=$(FPC_VERSION)
-endif
-ifndef SHARED_LIBNAME
-SHARED_LIBNAME=$(PACKAGE_NAME)
-endif
-ifndef SHARED_FULLNAME
-SHARED_FULLNAME=$(SHAREDLIBPREFIX)$(SHARED_LIBNAME)-$(SHARED_LIBVERSION)$(SHAREDLIBEXT)
-endif
-ifndef SHARED_LIBUNITS
-SHARED_LIBUNITS:=$(TARGET_UNITS) $(TARGET_IMPLICITUNITS)
-override SHARED_LIBUNITS:=$(filter-out $(INSTALL_BUILDUNIT),$(SHARED_LIBUNITS))
-endif
-fpc_shared:
-ifdef HASSHAREDLIB
-	$(MAKE) all CREATESHARED=1 LINKSHARED=1 CREATESMART=1
-ifneq ($(SHARED_BUILD),n)
-	$(PPUMOVE) -q $(SHARED_LIBUNITS) -i$(COMPILER_UNITTARGETDIR) -o$(SHARED_FULLNAME) -d$(COMPILER_UNITTARGETDIR)
-endif
-else
-	@$(ECHO) Shared Libraries not supported
-endif
-fpc_shared_install:
-ifneq ($(SHARED_BUILD),n)
-ifneq ($(SHARED_LIBUNITS),)
-ifneq ($(wildcard $(COMPILER_UNITTARGETDIR)/$(SHARED_FULLNAME)),)
-	$(INSTALL) $(COMPILER_UNITTARGETDIR)/$(SHARED_FULLNAME) $(INSTALL_SHAREDDIR)
-endif
-endif
-endif
-.PHONY: fpc_install fpc_sourceinstall fpc_exampleinstall
-ifdef INSTALL_UNITS
-override INSTALLPPUFILES+=$(addsuffix $(PPUEXT),$(INSTALL_UNITS))
-endif
-ifdef INSTALL_BUILDUNIT
-override INSTALLPPUFILES:=$(filter-out $(INSTALL_BUILDUNIT)$(PPUEXT),$(INSTALLPPUFILES))
-endif
-ifdef INSTALLPPUFILES
-override INSTALLPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(INSTALLPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(INSTALLPPUFILES))) $(addprefix $(IMPORTLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(INSTALLPPUFILES)))
-ifneq ($(UNITTARGETDIRPREFIX),)
-override INSTALLPPUFILES:=$(addprefix $(UNITTARGETDIRPREFIX),$(notdir $(INSTALLPPUFILES)))
-override INSTALLPPULINKFILES:=$(wildcard $(addprefix $(UNITTARGETDIRPREFIX),$(notdir $(INSTALLPPULINKFILES))))
-endif
-override INSTALL_CREATEPACKAGEFPC=1
-endif
-ifdef INSTALLEXEFILES
-ifneq ($(TARGETDIRPREFIX),)
-override INSTALLEXEFILES:=$(addprefix $(TARGETDIRPREFIX),$(notdir $(INSTALLEXEFILES)))
-endif
-endif
-fpc_install: all $(INSTALLTARGET)
-ifdef INSTALLEXEFILES
-	$(MKDIR) $(INSTALL_BINDIR)
-ifdef UPXPROG
-	-$(UPXPROG) $(INSTALLEXEFILES)
-endif
-	$(INSTALLEXE) $(INSTALLEXEFILES) $(INSTALL_BINDIR)
-endif
-ifdef INSTALL_CREATEPACKAGEFPC
-ifdef FPCMAKE
-ifdef PACKAGE_VERSION
-ifneq ($(wildcard Makefile.fpc),)
-	$(FPCMAKE) -p -T$(CPU_TARGET)-$(OS_TARGET) Makefile.fpc
-	$(MKDIR) $(INSTALL_UNITDIR)
-	$(INSTALL) Package.fpc $(INSTALL_UNITDIR)
-endif
-endif
-endif
-endif
-ifdef INSTALLPPUFILES
-	$(MKDIR) $(INSTALL_UNITDIR)
-	$(INSTALL) $(INSTALLPPUFILES) $(INSTALL_UNITDIR)
-ifneq ($(INSTALLPPULINKFILES),)
-	$(INSTALL) $(INSTALLPPULINKFILES) $(INSTALL_UNITDIR)
-endif
-ifneq ($(wildcard $(LIB_FULLNAME)),)
-	$(MKDIR) $(INSTALL_LIBDIR)
-	$(INSTALL) $(LIB_FULLNAME) $(INSTALL_LIBDIR)
-ifdef inUnix
-	ln -sf $(LIB_FULLNAME) $(INSTALL_LIBDIR)/$(LIB_NAME)
-endif
-endif
-endif
-ifdef INSTALL_FILES
-	$(MKDIR) $(INSTALL_DATADIR)
-	$(INSTALL) $(INSTALL_FILES) $(INSTALL_DATADIR)
-endif
-fpc_sourceinstall: distclean
-	$(MKDIR) $(INSTALL_SOURCEDIR)
-	$(COPYTREE) $(BASEDIR)/* $(INSTALL_SOURCEDIR)
-fpc_exampleinstall: $(addsuffix _distclean,$(TARGET_EXAMPLEDIRS))
-ifdef HASEXAMPLES
-	$(MKDIR) $(INSTALL_EXAMPLEDIR)
-endif
-ifdef EXAMPLESOURCEFILES
-	$(COPY) $(EXAMPLESOURCEFILES) $(INSTALL_EXAMPLEDIR)
-endif
-ifdef TARGET_EXAMPLEDIRS
-	$(COPYTREE) $(addsuffix /*,$(TARGET_EXAMPLEDIRS)) $(INSTALL_EXAMPLEDIR)
-endif
-.PHONY: fpc_distinstall
-fpc_distinstall: install exampleinstall
-.PHONY: fpc_zipinstall fpc_zipsourceinstall fpc_zipexampleinstall
-ifndef PACKDIR
-ifndef inUnix
-PACKDIR=$(BASEDIR)/../fpc-pack
-else
-PACKDIR=/tmp/fpc-pack
-endif
-endif
-ifndef ZIPNAME
-ifdef DIST_ZIPNAME
-ZIPNAME=$(DIST_ZIPNAME)
-else
-ZIPNAME=$(PACKAGE_NAME)
-endif
-endif
-ifndef FULLZIPNAME
-FULLZIPNAME=$(ZIPCROSSPREFIX)$(ZIPPREFIX)$(ZIPNAME)$(ZIPSUFFIX)
-endif
-ifndef ZIPTARGET
-ifdef DIST_ZIPTARGET
-ZIPTARGET=DIST_ZIPTARGET
-else
-ZIPTARGET=install
-endif
-endif
-ifndef USEZIP
-ifdef inUnix
-USETAR=1
-endif
-endif
-ifndef inUnix
-USEZIPWRAPPER=1
-endif
-ifdef USEZIPWRAPPER
-ZIPPATHSEP=$(PATHSEP)
-ZIPWRAPPER=$(subst /,$(PATHSEP),$(DIST_DESTDIR)/fpczip$(SRCBATCHEXT))
-else
-ZIPPATHSEP=/
-endif
-ZIPCMD_CDPACK:=cd $(subst /,$(ZIPPATHSEP),$(PACKDIR))
-ZIPCMD_CDBASE:=cd $(subst /,$(ZIPPATHSEP),$(BASEDIR))
-ifdef USETAR
-ZIPDESTFILE:=$(DIST_DESTDIR)/$(FULLZIPNAME)$(TAREXT)
-ZIPCMD_ZIP:=$(TARPROG) cf$(TAROPT) $(ZIPDESTFILE) *
-else
-ZIPDESTFILE:=$(DIST_DESTDIR)/$(FULLZIPNAME)$(ZIPEXT)
-ZIPCMD_ZIP:=$(subst /,$(ZIPPATHSEP),$(ZIPPROG)) -Dr $(ZIPOPT) $(ZIPDESTFILE) *
-endif
-fpc_zipinstall:
-	$(MAKE) $(ZIPTARGET) INSTALL_PREFIX=$(PACKDIR) ZIPINSTALL=1
-	$(MKDIR) $(DIST_DESTDIR)
-	$(DEL) $(ZIPDESTFILE)
-ifdef USEZIPWRAPPER
-ifneq ($(ECHOREDIR),echo)
-	$(ECHOREDIR) -e "$(subst \,\\,$(ZIPCMD_CDPACK))" > $(ZIPWRAPPER)
-	$(ECHOREDIR) -e "$(subst \,\\,$(ZIPCMD_ZIP))" >> $(ZIPWRAPPER)
-	$(ECHOREDIR) -e "$(subst \,\\,$(ZIPCMD_CDBASE))" >> $(ZIPWRAPPER)
-else
-	echo $(ZIPCMD_CDPACK) > $(ZIPWRAPPER)
-	echo $(ZIPCMD_ZIP) >> $(ZIPWRAPPER)
-	echo $(ZIPCMD_CDBASE) >> $(ZIPWRAPPER)
-endif
-ifdef inUnix
-	/bin/sh $(ZIPWRAPPER)
-else
-ifdef RUNBATCH
-	$(RUNBATCH) (ZIPWRAPPER)
-else
-	$(ZIPWRAPPER)
-endif
-endif
-	$(DEL) $(ZIPWRAPPER)
-else
-	$(ZIPCMD_CDPACK) ; $(ZIPCMD_ZIP) ; $(ZIPCMD_CDBASE)
-endif
-	$(DELTREE) $(PACKDIR)
-fpc_zipsourceinstall:
-	$(MAKE) fpc_zipinstall ZIPTARGET=sourceinstall ZIPSUFFIX=$(ZIPSOURCESUFFIX)
-fpc_zipexampleinstall:
-ifdef HASEXAMPLES
-	$(MAKE) fpc_zipinstall ZIPTARGET=exampleinstall ZIPSUFFIX=$(ZIPEXAMPLESUFFIX)
-endif
-fpc_zipdistinstall:
-	$(MAKE) fpc_zipinstall ZIPTARGET=distinstall
-.PHONY: fpc_clean fpc_cleanall fpc_distclean
-ifdef EXEFILES
-override CLEANEXEFILES:=$(addprefix $(TARGETDIRPREFIX),$(CLEANEXEFILES))
-endif
-ifdef CLEAN_UNITS
-override CLEANPPUFILES+=$(addsuffix $(PPUEXT),$(CLEAN_UNITS))
-endif
-ifdef CLEANPPUFILES
-override CLEANPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(CLEANPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(CLEANPPUFILES))) $(addprefix $(IMPORTLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(CLEANPPUFILES)))
-ifdef DEBUGSYMEXT
-override CLEANPPULINKFILES+=$(subst $(PPUEXT),$(DEBUGSYMEXT),$(CLEANPPUFILES))
-endif
-override CLEANPPUFILES:=$(addprefix $(UNITTARGETDIRPREFIX),$(CLEANPPUFILES))
-override CLEANPPULINKFILES:=$(wildcard $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANPPULINKFILES)))
-endif
-fpc_clean: $(CLEANTARGET)
-ifdef CLEANEXEFILES
-	-$(DEL) $(CLEANEXEFILES)
-endif
-ifdef CLEANPPUFILES
-	-$(DEL) $(CLEANPPUFILES)
-endif
-ifneq ($(CLEANPPULINKFILES),)
-	-$(DEL) $(CLEANPPULINKFILES)
-endif
-ifdef CLEANRSTFILES
-	-$(DEL) $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANRSTFILES))
-endif
-ifdef CLEAN_FILES
-	-$(DEL) $(CLEAN_FILES)
-endif
-ifdef LIB_NAME
-	-$(DEL) $(LIB_NAME) $(LIB_FULLNAME)
-endif
-	-$(DEL) $(FPCMADE) Package.fpc $(PPAS) script.res link.res $(FPCEXTFILE) $(REDIRFILE)
-	-$(DEL) *$(ASMEXT) *_ppas$(BATCHEXT)
-fpc_cleanall: $(CLEANTARGET)
-ifdef CLEANEXEFILES
-	-$(DEL) $(CLEANEXEFILES)
-endif
-ifdef COMPILER_UNITTARGETDIR
-ifdef CLEANPPUFILES
-	-$(DEL) $(CLEANPPUFILES)
-endif
-ifneq ($(CLEANPPULINKFILES),)
-	-$(DEL) $(CLEANPPULINKFILES)
-endif
-ifdef CLEANRSTFILES
-	-$(DEL) $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANRSTFILES))
-endif
-endif
-	-$(DELTREE) units
-	-$(DEL) *$(OEXT) *$(PPUEXT) *$(RSTEXT) *$(ASMEXT) *$(STATICLIBEXT) *$(SHAREDLIBEXT) *$(PPLEXT)
-ifneq ($(PPUEXT),.ppu)
-	-$(DEL) *.o *.ppu *.a
-endif
-	-$(DELTREE) *$(SMARTEXT)
-	-$(DEL) fpcmade.* Package.fpc $(PPAS) script.res link.res $(FPCEXTFILE) $(REDIRFILE)
-	-$(DEL) *_ppas$(BATCHEXT)
-ifdef AOUTEXT
-	-$(DEL) *$(AOUTEXT)
-endif
-ifdef DEBUGSYMEXT
-	-$(DEL) *$(DEBUGSYMEXT)
-endif
-fpc_distclean: cleanall
-.PHONY: fpc_baseinfo
-override INFORULES+=fpc_baseinfo
-fpc_baseinfo:
-	@$(ECHO)
-	@$(ECHO)  == Package info ==
-	@$(ECHO)  Package Name..... $(PACKAGE_NAME)
-	@$(ECHO)  Package Version.. $(PACKAGE_VERSION)
-	@$(ECHO)
-	@$(ECHO)  == Configuration info ==
-	@$(ECHO)
-	@$(ECHO)  FPC.......... $(FPC)
-	@$(ECHO)  FPC Version.. $(FPC_VERSION)
-	@$(ECHO)  Source CPU... $(CPU_SOURCE)
-	@$(ECHO)  Target CPU... $(CPU_TARGET)
-	@$(ECHO)  Source OS.... $(OS_SOURCE)
-	@$(ECHO)  Target OS.... $(OS_TARGET)
-	@$(ECHO)  Full Source.. $(FULL_SOURCE)
-	@$(ECHO)  Full Target.. $(FULL_TARGET)
-	@$(ECHO)  SourceSuffix. $(SOURCESUFFIX)
-	@$(ECHO)  TargetSuffix. $(TARGETSUFFIX)
-	@$(ECHO)
-	@$(ECHO)  == Directory info ==
-	@$(ECHO)
-	@$(ECHO)  Required pkgs... $(REQUIRE_PACKAGES)
-	@$(ECHO)
-	@$(ECHO)  Basedir......... $(BASEDIR)
-	@$(ECHO)  FPCDir.......... $(FPCDIR)
-	@$(ECHO)  CrossBinDir..... $(CROSSBINDIR)
-	@$(ECHO)  UnitsDir........ $(UNITSDIR)
-	@$(ECHO)  PackagesDir..... $(PACKAGESDIR)
-	@$(ECHO)
-	@$(ECHO)  GCC library..... $(GCCLIBDIR)
-	@$(ECHO)  Other library... $(OTHERLIBDIR)
-	@$(ECHO)
-	@$(ECHO)  == Tools info ==
-	@$(ECHO)
-	@$(ECHO)  As........ $(AS)
-	@$(ECHO)  Ld........ $(LD)
-	@$(ECHO)  Ar........ $(AR)
-	@$(ECHO)  Rc........ $(RC)
-	@$(ECHO)
-	@$(ECHO)  Mv........ $(MVPROG)
-	@$(ECHO)  Cp........ $(CPPROG)
-	@$(ECHO)  Rm........ $(RMPROG)
-	@$(ECHO)  GInstall.. $(GINSTALL)
-	@$(ECHO)  Echo...... $(ECHO)
-	@$(ECHO)  Shell..... $(SHELL)
-	@$(ECHO)  Date...... $(DATE)
-	@$(ECHO)  FPCMake... $(FPCMAKE)
-	@$(ECHO)  PPUMove... $(PPUMOVE)
-	@$(ECHO)  Upx....... $(UPXPROG)
-	@$(ECHO)  Zip....... $(ZIPPROG)
-	@$(ECHO)
-	@$(ECHO)  == Object info ==
-	@$(ECHO)
-	@$(ECHO)  Target Loaders........ $(TARGET_LOADERS)
-	@$(ECHO)  Target Units.......... $(TARGET_UNITS)
-	@$(ECHO)  Target Implicit Units. $(TARGET_IMPLICITUNITS)
-	@$(ECHO)  Target Programs....... $(TARGET_PROGRAMS)
-	@$(ECHO)  Target Dirs........... $(TARGET_DIRS)
-	@$(ECHO)  Target Examples....... $(TARGET_EXAMPLES)
-	@$(ECHO)  Target ExampleDirs.... $(TARGET_EXAMPLEDIRS)
-	@$(ECHO)
-	@$(ECHO)  Clean Units......... $(CLEAN_UNITS)
-	@$(ECHO)  Clean Files......... $(CLEAN_FILES)
-	@$(ECHO)
-	@$(ECHO)  Install Units....... $(INSTALL_UNITS)
-	@$(ECHO)  Install Files....... $(INSTALL_FILES)
-	@$(ECHO)
-	@$(ECHO)  == Install info ==
-	@$(ECHO)
-	@$(ECHO)  DateStr.............. $(DATESTR)
-	@$(ECHO)  ZipName.............. $(ZIPNAME)
-	@$(ECHO)  ZipPrefix............ $(ZIPPREFIX)
-	@$(ECHO)  ZipCrossPrefix....... $(ZIPCROSSPREFIX)
-	@$(ECHO)  ZipSuffix............ $(ZIPSUFFIX)
-	@$(ECHO)  FullZipName.......... $(FULLZIPNAME)
-	@$(ECHO)  Install FPC Package.. $(INSTALL_FPCPACKAGE)
-	@$(ECHO)
-	@$(ECHO)  Install base dir..... $(INSTALL_BASEDIR)
-	@$(ECHO)  Install binary dir... $(INSTALL_BINDIR)
-	@$(ECHO)  Install library dir.. $(INSTALL_LIBDIR)
-	@$(ECHO)  Install units dir.... $(INSTALL_UNITDIR)
-	@$(ECHO)  Install source dir... $(INSTALL_SOURCEDIR)
-	@$(ECHO)  Install doc dir...... $(INSTALL_DOCDIR)
-	@$(ECHO)  Install example dir.. $(INSTALL_EXAMPLEDIR)
-	@$(ECHO)  Install data dir..... $(INSTALL_DATADIR)
-	@$(ECHO)
-	@$(ECHO)  Dist destination dir. $(DIST_DESTDIR)
-	@$(ECHO)  Dist zip name........ $(DIST_ZIPNAME)
-	@$(ECHO)
-.PHONY: fpc_info
-fpc_info: $(INFORULES)
-.PHONY: fpc_makefile fpc_makefiles fpc_makefile_sub1 fpc_makefile_sub2 \
-	fpc_makefile_dirs
-fpc_makefile:
-	$(FPCMAKE) -w -T$(OS_TARGET) Makefile.fpc
-fpc_makefile_sub1:
-ifdef TARGET_DIRS
-	$(FPCMAKE) -w -T$(OS_TARGET) $(addsuffix /Makefile.fpc,$(TARGET_DIRS))
-endif
-ifdef TARGET_EXAMPLEDIRS
-	$(FPCMAKE) -w -T$(OS_TARGET) $(addsuffix /Makefile.fpc,$(TARGET_EXAMPLEDIRS))
-endif
-fpc_makefile_sub2: $(addsuffix _makefile_dirs,$(TARGET_DIRS) $(TARGET_EXAMPLEDIRS))
-fpc_makefile_dirs: fpc_makefile_sub1 fpc_makefile_sub2
-fpc_makefiles: fpc_makefile fpc_makefile_dirs
-all: fpc_all
-debug: fpc_debug
-smart: fpc_smart
-release: fpc_release
-units: fpc_units
-examples: fpc_examples
-shared: fpc_shared
-install: fpc_install
-sourceinstall: fpc_sourceinstall
-exampleinstall: fpc_exampleinstall
-distinstall: fpc_distinstall
-zipinstall: fpc_zipinstall
-zipsourceinstall: fpc_zipsourceinstall
-zipexampleinstall: fpc_zipexampleinstall
-zipdistinstall: fpc_zipdistinstall
-cleanall: fpc_cleanall
-info: fpc_info
-makefiles: fpc_makefiles
-.PHONY: all debug smart release units examples shared install sourceinstall exampleinstall distinstall zipinstall zipsourceinstall zipexampleinstall zipdistinstall cleanall info makefiles
-ifneq ($(wildcard fpcmake.loc),)
-include fpcmake.loc
-endif
-ifeq ($(FULL_SOURCE),$(FULL_TARGET))
-CAN_RUN_GDBVER=1
-endif
-ifeq ($(FULL_SOURCE),i386-win32)
-ifeq ($(FULL_TARGET),i386-go32v2)
-CAN_RUN_GDBVER=1
-endif
-endif
-ifdef CAN_RUN_GDBVER
-ifeq ($(GDBFOUND),1)
-$(CURRDIR)getver$(EXEEXT) : gdbver.pp
-	$(COMPILER) -o$(CURRDIR)getver$(EXEEXT) gdbver.pp
-ifndef GOTGDBVER
-gdbint$(PPUEXT): $(CURRDIR)gdbver$(EXEEXT) gdbint.pp
-	$(MAKE) gdbint$(PPUEXT) GOTGDBVER=1
-else
-GDBVER:=GDB_V$(strip $(shell $(CURRDIR)gdbver$(EXEEXT) -n))
-gdbver.inc: gdbver$(EXEEXT)
-	./gdbver$(EXEEXT) -o gdbver.inc
-gdbint$(PPUEXT): gdbint.pp gdbver.inc
-	@$(ECHO) Using GDB $(GDBVER)
-	$(COMPILER) -d$(GDBVER) gdbint.pp
-	$(DEL) gdbver$(EXEEXT) gdbver$(OEXT)
-endif
-else
-GDBVER=GDB_V606
-gdbver.inc:
-	$(CPPROG) gdbver_nogdb.inc gdbver.inc
-gdbint$(PPUEXT): gdbint.pp gdbver.inc
-	@$(ECHO) libgdb.a not found, using default GDB $(GDBVER)
-	$(COMPILER) -d$(GDBVER) gdbint.pp
-endif
-else
-GDBVER=GDB_V606
-gdbver.inc:
-	$(CPPROG) gdbver_nogdb.inc gdbver.inc
-gdbint$(PPUEXT): gdbint.pp gdbver.inc
-	@$(ECHO) Different target os or cpu, using default GDB $(GDBVER)
-	$(COMPILER) -d$(GDBVER) gdbint.pp
-endif
-gdbcon$(PPUEXT): gdbcon.pp gdbint$(PPUEXT)
-ifeq ($(OS_TARGET),go32v2)
-DBGCOM=dbgcom$(OEXT)
-else
-DBGCOM=
-endif
-ifdef $(COMPILEDBGCOM)
-$(DBGCOM): ../v4.16/dbgcom.c
-	gcc -c -DFPC -Dother_sel -gstabs -o dbgcom.o -I../v4.16 ../v4.16/dbgcom.c
-else
-$(DBGCOM):
-endif
-simple: $(DBGCOM)
-	-rm gdbint.ppu
-	ppc386 -dUSE_LIBGDB gdbint
-	ppc386 testgdb
-testgdb$(EXEEXT): testgdb.pp gdbint$(PPUEXT) gdbcon$(PPUEXT) $(DBGCOM)
-.PHONY: test
-test: examples
-clean: fpc_clean
-	$(DEL) gdbver$(EXEEXT) gdbver$(OEXT)
-distclean: fpc_distclean
-	$(DEL) gdbver.inc
-.NOTPARALLEL:

+ 0 - 151
packages/base/gdbint/Makefile.fpc

@@ -1,151 +0,0 @@
-#
-#   Makefile.fpc for Free Pascal GDB Interface
-#
-
-
-[package]
-name=gdbint
-version=2.0.0
-
-[target]
-units=gdbint gdbcon
-examples=testgdb symify
-
-[compiler]
-objectdir=$(GDBLIBDIR)
-librarydir=$(GDBLIBDIR)
-
-[require]
-libc=y
-
-[install]
-fpcpackage=y
-
-[default]
-fpcdir=../../..
-
-
-[prerules]
-# For unix be sure to use the locally created gdbver
-ifdef inUnix
-CURRDIR=./
-else
-CURRDIR=
-endif
-
-# Look for a valid GDBLIBDIR environment variable
-ifdef GDBLIBDIR
-override LIBGDBFILE:=$(firstword $(wildcard $(addsuffix /libgdb.a,$(GDBLIBDIR))))
-endif
-
-# Use default dirs if not available
-ifeq ($(LIBGDBFILE),)
-# Default locations <target>/<cpu> (linux) or <target> (win32,go32v2) only
-override GDBLIBDIR=$(wildcard $(FPCDIR)/libgdb/$(OS_TARGET)/$(CPU_TARGET))
-ifeq ($(GDBLIBDIR),)
-override GDBLIBDIR=$(FPCDIR)/libgdb/$(OS_TARGET)
-endif
-# Detect if libgdb.a is available
-override LIBGDBFILE:=$(firstword $(wildcard $(addsuffix /libgdb.a,$(GDBLIBDIR))))
-endif
-
-# Set GDBFOUND variable
-ifeq ($(LIBGDBFILE),)
-GDBFOUND=0
-else
-GDBFOUND=1
-endif
-
-
-[rules]
-ifeq ($(FULL_SOURCE),$(FULL_TARGET))
-CAN_RUN_GDBVER=1
-endif
-
-ifeq ($(FULL_SOURCE),i386-win32)
-ifeq ($(FULL_TARGET),i386-go32v2)
-CAN_RUN_GDBVER=1
-endif
-endif
-
-
-ifdef CAN_RUN_GDBVER
-ifeq ($(GDBFOUND),1)
-# libgdb.a found
-
-$(CURRDIR)getver$(EXEEXT) : gdbver.pp
-	$(COMPILER) -o$(CURRDIR)getver$(EXEEXT) gdbver.pp
-
-ifndef GOTGDBVER
-# gdbver doesn't exists, build it first
-gdbint$(PPUEXT): $(CURRDIR)gdbver$(EXEEXT) gdbint.pp
-	$(MAKE) gdbint$(PPUEXT) GOTGDBVER=1
-else
-# gdbver exists
-GDBVER:=GDB_V$(strip $(shell $(CURRDIR)gdbver$(EXEEXT) -n))
-gdbver.inc: gdbver$(EXEEXT)
-        ./gdbver$(EXEEXT) -o gdbver.inc
-gdbint$(PPUEXT): gdbint.pp gdbver.inc
-	@$(ECHO) Using GDB $(GDBVER)
-	$(COMPILER) -d$(GDBVER) gdbint.pp
-	$(DEL) gdbver$(EXEEXT) gdbver$(OEXT)
-endif
-
-else
-# libgdb.a not found, default to libgdb v6
-GDBVER=GDB_V606
-gdbver.inc:
-        $(CPPROG) gdbver_nogdb.inc gdbver.inc
-gdbint$(PPUEXT): gdbint.pp gdbver.inc
-	@$(ECHO) libgdb.a not found, using default GDB $(GDBVER)
-	$(COMPILER) -d$(GDBVER) gdbint.pp
-endif
-
-else
-# Different OS_TARGET, default to libgdb v6
-GDBVER=GDB_V606
-gdbver.inc:
-        $(CPPROG) gdbver_nogdb.inc gdbver.inc
-gdbint$(PPUEXT): gdbint.pp gdbver.inc
-	@$(ECHO) Different target os or cpu, using default GDB $(GDBVER)
-	$(COMPILER) -d$(GDBVER) gdbint.pp
-endif
-
-gdbcon$(PPUEXT): gdbcon.pp gdbint$(PPUEXT)
-
-ifeq ($(OS_TARGET),go32v2)
-DBGCOM=dbgcom$(OEXT)
-else
-DBGCOM=
-endif
-
-ifdef $(COMPILEDBGCOM)
-# FPC conditionnal remove the file watching mecanism introduced
-# in v2.02 of dbgcom.c because it relies
-# on the fact that all files are opened via C lib calls
-# which is wrong for FPC !!
-$(DBGCOM): ../v4.16/dbgcom.c
-	gcc -c -DFPC -Dother_sel -gstabs -o dbgcom.o -I../v4.16 ../v4.16/dbgcom.c
-else
-$(DBGCOM):
-endif
-
-simple: $(DBGCOM)
-	-rm gdbint.ppu
-	ppc386 -dUSE_LIBGDB gdbint
-	ppc386 testgdb
-
-testgdb$(EXEEXT): testgdb.pp gdbint$(PPUEXT) gdbcon$(PPUEXT) $(DBGCOM)
-
-# Allow test for example
-.PHONY: test
-
-test: examples
-
-clean: fpc_clean
-	$(DEL) gdbver$(EXEEXT) gdbver$(OEXT)
-
-distclean: fpc_distclean
-	$(DEL) gdbver.inc
-
-.NOTPARALLEL:

+ 0 - 12
packages/base/gdbint/fpmake.inc

@@ -1,12 +0,0 @@
-    StartPackage('gdbint');
-    {$IF defined(ALLPACKAGES)}
-    Directory:='base/gdbint';
-    {$ELSEIF defined(BASEPACKAGES)}
-    Directory:='gdbint';
-    {$ENDIF}
-    OS:=[linux,win32,go32v2,netbsd,openbsd,freebsd];
-    T:=Targets.AddUnit('gdbint');
-    T:=Targets.AddUnit('gdbcon');
-    T:=Targets.AddExampleunit('testgdb');
-    T:=Targets.AddExampleunit('symify');
-    EndPackage;

+ 0 - 17
packages/base/gdbint/fpmake.pp

@@ -1,17 +0,0 @@
-{$mode objfpc}{$H+}
-program fpmake;
-
-uses fpmkunit;
-
-Var
-  T : TTarget;
-
-begin
-  With Installer do 
-    begin
-    { Base packages }
-    {$i fpmake.inc}
-    Run;
-    end;
-end.
-

+ 0 - 239
packages/base/gdbint/freadlin.pp

@@ -1,239 +0,0 @@
-unit freadlin;
-{**********************************************************************
-    Copyright (c) 2007 by Daniel Mantione
-
-    A fake read line library which allows us to use libgdb in the IDE
-    without linking the bloated and unused GNU readline library.
-
-    See the file COPYING.FPC, included in this distribution,
-    for details about the copyright.
-
-    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.
-
- **********************************************************************}
-
-{$calling cdecl}
-
-interface
-
-implementation
-
-uses ctypes;
-
-var rl_end:cint;public name 'rl_end';               {The number of characters in the readline buffer.}
-    rl_point:cint;public name 'rl_point';           {The cursor position in the readline buffer.}
-    rl_prompt:Pchar;public name 'rl_prompt';        {The prompt readline should use.}
-    rl_instream:pointer;public name 'rl_instream';  {The FILE* for input.}
-    rl_outstream:pointer;public name 'rl_outstream';{The FILE* for output.}
-    rl_terminal_name:pointer;public name 'rl_terminal_name'; {The terminal (set by TERM) readline thinks it is using.}
-    rl_prep_term_function:pointer;public name 'rl_prep_term_function'; {Procedure to initialize terminal.}
-    rl_getc_function:pointer;public name 'rl_getc_function'; {The function to get a char from input.}
-    rl_line_buffer:Pchar;public name 'rl_line_buffer'; {The buffer readline is currently reading into.}
-    rl_completer_word_break_characters:Pchar;public name 'rl_completer_word_break_characters';
-    rl_completer_quote_characters:Pchar;public name 'rl_completer_quote_characters';
-    rl_already_prompted:cint;public name 'rl_already_prompted';
-    readline_echoing_p:cint;public name 'readline_echoing_p';
-    rl_startup_hook:pointer;public name 'rl_startup_hook';
-    emacs_ctlx_keymap:pointer;public name 'emacs_ctlx_keymap';
-    rl_readline_name:Pchar;public name 'rl_readline_name';
-    rl_deprep_term_function:pointer;public name 'rl_deprep_term_function';
-    rl_redisplay_function:pointer;public name 'rl_redisplay_function';
-    rl_pre_input_hook:pointer;public name 'rl_pre_input_hook';
-    rl_completion_entry_function:pointer;public name 'rl_completion_entry_function';
-    rl_filename_completion_desired:cint;public name 'rl_filename_completion_desired';
-    rl_completion_display_matches_hook:pointer;public name 'rl_completion_display_matches_hook';
-    rl_completion_query_items:cint;public name 'rl_completion_query_items';
-    rl_ignore_completion_duplicates:cint;public name 'rl_ignore_completion_duplicates';
-    rl_print_completions_horizontally:cint;public name '_rl_print_completions_horizontally';
-
-function rl_initialize:cint;public;alias:'rl_initialize';
-
-{Should initialize readline and return 0 if successfull.}
-
-begin
-  runerror(254);
-end;
-
-function rl_reset_terminal(terminal:Pchar):cint;public;alias:'rl_reset_terminal';
-
-begin
-  {Called by gdb, do nothing.}
-end;
-
-function rl_tilde_expand(s:Pchar):Pchar;public;alias:'tilde_expand';
-
-begin
-  {Called by gdb, don't expand, return original string.}
-  rl_tilde_expand:=s;
-end;
-
-function rl_newline(count,key:cint):cint;public;alias:'rl_newline';
-
-begin
-  runerror(254);
-end;
-
-procedure rl_get_screen_size(var rows,cols:cint);public;alias:'rl_get_screen_size';
-
-begin
-  {Called by gdb. Fake a 80x25 screen.}
-  {Gdb can call using nil pointers.}
-  if @rows<>nil then
-    rows:=25;
-  if @cols<>nil then
-    cols:=80;
-end;
-
-procedure rl_set_screen_size(rows,cols:cint);public;alias:'rl_set_screen_size';
-
-begin
-  {Called by gdb, do nothing.}
-end;
-
-function rl_bind_key_in_map(key:cint;rl_command_func_t:pointer;map:pointer):cint;public;alias:'rl_bind_key_in_map';
-
-begin
-  runerror(254);
-end;
-
-procedure rl_set_keymap(keymap:pointer);public;alias:'rl_set_keymap';
-
-begin
-  runerror(254);
-end;
-
-function rl_get_keymap:pointer;public;alias:'rl_get_keymap';
-
-begin
-  runerror(254);
-end;
-
-function rl_make_bare_keymap:pointer;public;alias:'rl_make_bare_keymap';
-
-begin
-  runerror(254);
-end;
-
-function rl_add_defun(name:Pchar;rl_command_func_t:pointer;key:cint):cint;public;alias:'rl_add_defun';
-
-begin
-  {Called by gdb, do nothing.}
-end;
-
-function rl_insert(count,c:cint):cint;public;alias:'rl_insert';
-
-begin
-  runerror(254);
-end;
-
-function rl_kill_text(start,stop:cint):cint;public;alias:'rl_kill_text';
-
-begin
-  runerror(254);
-end;
-
-procedure rl_prep_terminal(meta_flag:cint);public;alias:'rl_prep_terminal';
-
-begin
-  runerror(254);
-end;
-
-procedure rl_deprep_terminal;public;alias:'rl_deprep_terminal';
-
-begin
-  runerror(254);
-end;
-
-procedure rl_callback_handler_install(prompt:Pchar;lhandler:pointer);public;alias:'rl_callback_handler_install';
-
-begin
-  runerror(254);
-end;
-
-procedure rl_callback_handler_remove;public;alias:'rl_callback_handler_remove';
-
-begin
-  runerror(254);
-end;
-
-function rl_filename_completion_function(text:Pchar;state:cint):Pchar;public;alias:'rl_filename_completion_function';
-
-begin
-  runerror(254);
-end;
-
-procedure rl_callback_read_char;public;alias:'rl_callback_read_char';
-
-begin
-  runerror(254);
-end;
-
-procedure rl_redisplay;public;alias:'rl_redisplay';
-
-begin
-  runerror(254);
-end;
-
-function rl_generic_bind(_type:cint;keyseq,data:Pchar;map:pointer):cint;public;alias:'rl_generic_bind';
-
-begin
-  runerror(254);
-end;
-
-function rl_get_previous_history(count,key:cint):cint;public;alias:'rl_get_previous_history';
-
-begin
-  runerror(254);
-end;
-
-function rl_read_key:cint;public;alias:'rl_read_key';
-
-begin
-  runerror(254);
-end;
-
-function rl_abort_internal:cint;public;alias:'_rl_abort_internal';
-
-begin
-  runerror(254);
-end;
-
-function readline(prompt:Pchar):Pchar;public;alias:'readline';
-
-begin
-  runerror(254);
-end;
-
-function rl_qsort_string_compare(s1,s2:Pchar):cint;public;alias:'_rl_qsort_string_compare';
-
-begin
-  runerror(254);
-end;
-
-begin
-  rl_end:=0;
-  rl_point:=0;
-  rl_prompt:=nil;
-  rl_instream:=nil;
-  rl_outstream:=nil;
-  rl_terminal_name:=nil;
-  rl_already_prompted:=0;
-  rl_completer_word_break_characters:=nil;
-  rl_completer_quote_characters:=nil;
-  rl_line_buffer:=nil;
-  rl_getc_function:=nil;
-  rl_prep_term_function:=nil;
-  rl_startup_hook:=nil;
-  readline_echoing_p:=0;
-  emacs_ctlx_keymap:=nil;
-  rl_readline_name:=nil;
-  rl_deprep_term_function:=nil;
-  rl_redisplay_function:=nil;
-  rl_completion_entry_function:=nil;
-  rl_filename_completion_desired:=0;
-  rl_completion_display_matches_hook:=nil;
-  rl_ignore_completion_duplicates:=0;
-  rl_print_completions_horizontally:=0;
-end.

+ 0 - 346
packages/base/gdbint/gdbcon.pp

@@ -1,346 +0,0 @@
-{
-    Copyright (c) 1998 by Peter Vreman
-
-    Lowlevel GDB interface which communicates directly with libgdb
-
-    See the file COPYING.FPC, included in this distribution,
-    for details about the copyright.
-
-    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.
-
- **********************************************************************}
-unit GDBCon;
-interface
-
-uses
-  GDBInt;
-
-type
-  PGDBController=^TGDBController;
-  TGDBController=object(TGDBInterface)
-    progname,
-    progdir,
-    progargs   : pchar;
-    in_command,
-    init_count : longint;
-    constructor Init;
-    destructor  Done;
-    procedure CommandBegin(const s:string);virtual;
-    procedure Command(const s:string);
-    procedure CommandEnd(const s:string);virtual;
-    procedure Reset;virtual;
-    { tracing }
-    procedure StartTrace;
-    procedure Run;virtual;
-    procedure TraceStep;virtual;
-    procedure TraceNext;virtual;
-    procedure TraceStepI;virtual;
-    procedure TraceNextI;virtual;
-    procedure Continue;virtual;
-    { needed for dos because newlines are only #10 (PM) }
-    procedure WriteErrorBuf;
-    procedure WriteOutputBuf;
-    function  GetOutput : Pchar;
-    function  GetError : Pchar;
-    function  LoadFile(var fn:string):boolean;
-    procedure SetDir(const s : string);
-    procedure SetArgs(const s : string);
-    procedure ClearSymbols;
-  end;
-
-procedure UnixDir(var s : string);
-
-implementation
-
-uses
-{$ifdef win32}
-  windows,
-{$endif win32}
-  strings;
-
-{$ifdef win32}
-const
-  CygDrivePrefixKey1 = 'Software';
-  CygDrivePrefixKey2 = 'Cygnus Solutions';
-  CygDrivePrefixKey3 = 'Cygwin';
-  CygDrivePrefixKey4 = 'mounts v2';
-  CygDrivePrefixKey = 'cygdrive prefix';
-
-function CygDrivePrefix : string;
-var
-  i : longint;
-  length : dword;
-  Value : pchar;
-  _type : dword;
-  Key,NKey : HKey;
-begin
-  Length:=0;
-  Key:=HKEY_CURRENT_USER;
-  i := RegOpenKeyEx(Key, CygDrivePrefixKey1, 0, KEY_ENUMERATE_SUB_KEYS, @NKey);
-  if i=ERROR_SUCCESS then
-    begin
-      Key:=NKey;
-      i := RegOpenKeyEx(Key, CygDrivePrefixKey2, 0, KEY_ENUMERATE_SUB_KEYS, @NKey);
-    end;
-  if i=ERROR_SUCCESS then
-    begin
-      RegCloseKey(Key);
-      Key:=NKey;
-      i := RegOpenKeyEx(Key, CygDrivePrefixKey3, 0, KEY_ENUMERATE_SUB_KEYS, @NKey);
-    end;
-  if i=ERROR_SUCCESS then
-    begin
-      RegCloseKey(Key);
-      Key:=NKey;
-      i := RegOpenKeyEx(Key, CygDrivePrefixKey4, 0, KEY_ENUMERATE_SUB_KEYS, @NKey);
-    end;
-  if i=ERROR_SUCCESS then
-    begin
-      RegCloseKey(Key);
-      Key:=NKey;
-      i := RegQueryValueEx( Key, CygDrivePrefixKey, nil, @_type, nil, @length);
-    end;
-  if i<>ERROR_SUCCESS then
-    CygDrivePrefix:='/cygdrive'
-  else
-    Begin
-      GetMem(Value,Length);
-      i := RegQueryValueEx( Key, CygDrivePrefixKey, nil, @_type, LPByte(Value), @length);
-      if i<>ERROR_SUCCESS then
-        CygDrivePrefix:='/cygdrive'
-      else
-        CygDrivePrefix:=StrPas(Value);
-      FreeMem(Value,Length);
-    End;
-  if Key<>HKEY_CURRENT_USER then
-    RegCloseKey(Key);
-end;
-{$endif win32}
-
-procedure UnixDir(var s : string);
-var i : longint;
-begin
-  for i:=1 to length(s) do
-    if s[i]='\' then
-{$ifdef win32}
-  { Don't touch at '\ ' used to escapes spaces in windows file names PM }
-     if (i=length(s)) or (s[i+1]<>' ') then
-{$endif win32}
-      s[i]:='/';
-{$ifdef win32}
-{ for win32 we should convert e:\ into //e/ PM }
-  if (length(s)>2) and (s[2]=':') and (s[3]='/') then
-    s:=CygDrivePrefix+'/'+s[1]+copy(s,3,length(s));
-{$endif win32}
-end;
-
-constructor TGDBController.Init;
-begin
-  inherited init;
-end;
-
-
-destructor TGDBController.Done;
-begin
-  if assigned(progname) then
-    strdispose(progname);
-  if assigned(progdir) then
-    strdispose(progdir);
-  if assigned(progargs) then
-    strdispose(progargs);
-  inherited done;
-end;
-
-
-procedure TGDBController.Command(const s:string);
-begin
-  inc(in_command);
-  CommandBegin(s);
-  gdboutputbuf.reset;
-  gdberrorbuf.reset;
-  gdb_command(s);
-  {
-    What is that for ?? PM
-    I had to comment it because
-    it resets the debuggere after each command !!
-    Maybe it can happen on errors ??
-  if in_command<0 then
-   begin
-     in_command:=0;
-     inc(in_command);
-     Reset;
-     dec(in_command);
-   end; }
-  CommandEnd(s);
-  dec(in_command);
-end;
-
-procedure TGDBController.CommandBegin(const s:string);
-begin
-end;
-
-procedure TGDBController.CommandEnd(const s:string);
-begin
-end;
-
-function TGDBController.LoadFile(var fn:string):boolean;
-var
-  cmd : string;
-begin
-  getdir(0,cmd);
-  UnixDir(cmd);
-  cmd:='cd '+cmd;
-  Command(cmd);
-  GDB__Init;
-  UnixDir(fn);
-  if assigned(progname) then
-    strdispose(progname);
-  getmem(progname,length(fn)+1);
-  strpcopy(progname,fn);
-  if fn<>'' then
-    Command('file '+fn);
-  LoadFile:=true;
-end;
-
-procedure TGDBController.SetDir(const s : string);
-var
-  hs : string;
-begin
-  hs:=s;
-  UnixDir(hs);
-  if assigned(progdir) then
-    strdispose(progdir);
-  getmem(progdir,length(hs)+1);
-  strpcopy(progdir,hs);
-  command('cd '+hs);
-end;
-
-procedure TGDBController.SetArgs(const s : string);
-begin
-  if assigned(progargs) then
-    strdispose(progargs);
-  getmem(progargs,length(s)+1);
-  strpcopy(progargs,s);
-  command('set args '+s);
-end;
-
-procedure TGDBController.Reset;
-begin
-  call_reset:=false;
-{ DeleteBreakPoints(); }
-  if debuggee_started then
-   begin
-     reset_command:=true;
-     BreakSession;
-     Command('kill');
-     reset_command:=false;
-     debuggee_started:=false;
-   end;
-end;
-
-procedure TGDBController.StartTrace;
-begin
-  Command('tbreak PASCALMAIN');
-  Run;
-end;
-
-procedure TGDBController.Run;
-begin
-  Command('run');
-  inc(init_count);
-end;
-
-
-procedure TGDBController.TraceStep;
-begin
-  Command('step');
-end;
-
-
-procedure TGDBController.TraceNext;
-begin
-  Command('next');
-end;
-
-
-procedure TGDBController.TraceStepI;
-begin
-  Command('stepi');
-end;
-
-
-procedure TGDBController.TraceNextI;
-begin
-  Command('nexti');
-end;
-
-
-procedure TGDBController.Continue;
-begin
-  Command('continue');
-end;
-
-
-procedure TGDBController.ClearSymbols;
-begin
-  if debuggee_started then
-   Reset;
-  if init_count>0 then
-   Command('file');
-end;
-
-
-procedure BufWrite(Buf : pchar);
-  var p,pe : pchar;
-begin
-  p:=buf;
-  While assigned(p) do
-    begin
-       pe:=strscan(p,#10);
-       if pe<>nil then
-         pe^:=#0;
-       Writeln(p);
-       { restore for dispose }
-       if pe<>nil then
-         pe^:=#10;
-       if pe=nil then
-         p:=nil
-       else
-         begin
-           p:=pe;
-           inc(p);
-         end;
-    end;
-end;
-
-
-function  TGDBController.GetOutput : Pchar;
-begin
-  GetOutput:=gdboutputbuf.buf;
-end;
-
-function  TGDBController.GetError : Pchar;
-var p : pchar;
-begin
-  p:=gdberrorbuf.buf;
-  if (p^=#0) and got_error then
-    GetError:=pchar(longint(gdboutputbuf.buf)+gdboutputbuf.idx)
-  else
-    GetError:=p;
-end;
-
-procedure TGDBController.WriteErrorBuf;
-begin
-   BufWrite(gdberrorbuf.buf);
-end;
-
-
-procedure TGDBController.WriteOutputBuf;
-begin
-   BufWrite(gdboutputbuf.buf);
-end;
-
-
-end.

+ 0 - 2621
packages/base/gdbint/gdbint.pp

@@ -1,2621 +0,0 @@
-{
-    Copyright (c) 1998 by Peter Vreman
-
-    Lowlevel GDB interface which communicates directly with libgdb
-
-    See the file COPYING.FPC, included in this distribution,
-    for details about the copyright.
-
-    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.
-
- **********************************************************************}
-unit GdbInt;
-
-{$i gdbver.inc}
-
-interface
-
-{$smartlink off}
-
-{.$define Verbose}
-{.$define DebugCommand}
-{$define NotImplemented}
-
-{ Is create_breakpoint_hook deprecated? }
-{ Seem not so for 6.1 }
-{$define GDB_HAS_DEPRECATED_CBPH}
-
-{ 6.1.x }
-{$ifdef GDB_V601}
-  {$info using gdb 6.1.x}
-  {$define GDB_V6}
-  {$define GDB_HAS_DB_COMMANDS}
-  {$undef GDB_HAS_DEPRECATED_CBPH}
-{$endif def GDB_V601}
-
-{ 6.2.x }
-{$ifdef GDB_V602}
-  {$info using gdb 6.2.x}
-  {$define GDB_V6}
-  {$define GDB_HAS_DB_COMMANDS}
-{$endif def GDB_V602}
-
-{ 6.3.x }
-{$ifdef GDB_V603}
-  {$info using gdb 6.3.x}
-  {$define GDB_V6}
-  {$define GDB_HAS_DB_COMMANDS}
-{$endif def GDB_V603}
-
-{ 6.4.x }
-{$ifdef GDB_V604}
-  {$info using gdb 6.4.x}
-  {$define GDB_V6}
-  {$define GDB_NEEDS_NO_ERROR_INIT}
-  {$define GDB_HAS_DB_COMMANDS}
-{$endif def GDB_V604}
-
-{ 6.5.x }
-{$ifdef GDB_V605}
-  {$info using gdb 6.5.x}
-  {$define GDB_V6}
-  {$define GDB_NEEDS_NO_ERROR_INIT}
-{$endif def GDB_V605}
-
-{ 6.6.x }
-{$ifdef GDB_V606}
-  {$info using gdb 6.6.x}
-  {$define GDB_V6}
-  {$define GDB_HAS_DB_COMMANDS}
-  {$define GDB_NEEDS_NO_ERROR_INIT}
-  {$define GDB_USES_EXPAT_LIB}
-  {$define GDB_HAS_DEBUG_FILE_DIRECTORY}
-{$endif def GDB_V605}
-
-{ 6.7.x }
-{$ifdef GDB_V607}
-  {$info using gdb 6.7.x}
-  {$define GDB_V6}
-  {$define GDB_HAS_DB_COMMANDS}
-  {$define GDB_NEEDS_NO_ERROR_INIT}
-  {$define GDB_USES_EXPAT_LIB}
-  {$define GDB_HAS_DEBUG_FILE_DIRECTORY}
-{$endif def GDB_V605}
-
-{$ifdef GDB_V6}
-  {$define GDB_HAS_SYSROOT}
-  {$define GDB_HAS_DB_COMMANDS}
-  {$define GDB_SYMTAB_HAS_MACROS}
-  {$define GDB_INIT_HAS_ARGV0}
-{$endif GDB_V6}
-
-{ GDB has a simulator for powerpc CPU
-  it is integrated into GDB by default }
-{$ifdef cpupowerpc}
-  {$define GDB_HAS_SIM}
-{$endif cpupowerpc}
-
-{$ifdef go32v2}
-  {$undef NotImplemented}
-  {$LINKLIB gdb}
-  {$ifdef GDB_HAS_SIM}
-    {$LINKLIB sim}
-  {$endif GDB_HAS_SIM}
-  {$LINKLIB bfd}
-  {$LINKLIB readline}
-  {$LINKLIB opcodes}
-  {$LINKLIB history}
-  {$LINKLIB iberty}
-  {$LINKLIB intl}
-  {$LINKLIB dbg}
-  {$LINKLIB c}
-{$endif go32v2}
-
-{$ifdef linux}
-  {$undef NotImplemented}
-  {$LINKLIB libgdb.a}
-  {$ifdef GDB_HAS_SIM}
-    {$LINKLIB libsim.a}
-  {$endif GDB_HAS_SIM}
-  {$LINKLIB libbfd.a}
-  {$LINKLIB libreadline.a}
-  {$LINKLIB libopcodes.a}
-  {$LINKLIB libhistory.a}
-  {$LINKLIB libiberty.a}
-  {$ifdef GDB_USES_EXPAT_LIB}
-    {$LINKLIB expat}
-  {$endif GDB_USES_EXPAT_LIB}
-  {$LINKLIB ncurses}
-  {$LINKLIB m}
-  {$LINKLIB dl}
-  {$LINKLIB c}
-  {$LINKLIB gcc}
-{$endif linux}
-
-{$ifdef freebsd}
-  {$ifdef FreeBSD5}  //5.4+ ?
-    {$linklib kvm}
-  {$endif}
-  {$undef NotImplemented}
-  {$LINKLIB gdb}
-  {$ifdef GDB_HAS_SIM}
-    {$LINKLIB sim}
-  {$endif GDB_HAS_SIM}
-  {$LINKLIB bfd}
-  {$LINKLIB readline}
-  {$LINKLIB opcodes}
-  {$LINKLIB history}
-  {$LINKLIB iberty}
-  {$LINKLIB ncurses}
-  {$LINKLIB m}
-  {$LINKLIB iberty}
-  {$LINKLIB intl}        { does not seem to exist on netbsd LINKLIB dl,
-                            but I use GDB CVS snapshots for the *BSDs}
-  {$ifdef GDB_USES_EXPAT_LIB}
-    {$LINKLIB expat}
-  {$endif GDB_USES_EXPAT_LIB}
-  {$LINKLIB c}
-  {$LINKLIB gcc}
-{$endif freebsd}
-
-{$ifdef netbsd}
-  {$undef NotImplemented}
-  {$LINKLIB gdb}
-  {$ifdef GDB_HAS_SIM}
-    {$LINKLIB sim}
-  {$endif GDB_HAS_SIM}
-  {$LINKLIB bfd}
-  {$LINKLIB readline}
-  {$LINKLIB opcodes}
-  {$LINKLIB history}
-  {$LINKLIB iberty}
-  {$LINKLIB ncurses}
-  {$LINKLIB m}
-  {$LINKLIB iberty}
-  {$LINKLIB intl}
-  {$ifdef GDB_USES_EXPAT_LIB}
-    {$LINKLIB expat}
-  {$endif GDB_USES_EXPAT_LIB}
-  { does not seem to exist on netbsd LINKLIB dl}
-  {$LINKLIB c}
-  {$LINKLIB gcc}
-{$endif netbsd}
-
-{$ifdef openbsd}
-  {$undef NotImplemented}
-  {$LINKLIB gdb}
-  {$ifdef GDB_HAS_SIM}
-    {$LINKLIB sim}
-  {$endif GDB_HAS_SIM}
-  {$LINKLIB bfd}
-  {$LINKLIB readline}
-  {$LINKLIB opcodes}
-  {$LINKLIB history}
-  {$LINKLIB iberty}
-  {$LINKLIB ncurses}
-  {$LINKLIB m}
-  {$LINKLIB iberty}
-  {$LINKLIB intl}
-  {$ifdef GDB_USES_EXPAT_LIB}
-    {$LINKLIB expat}
-  {$endif GDB_USES_EXPAT_LIB}
-  { does not seem to exist on netbsd LINKLIB dl}
-  {$LINKLIB c}
-  {$LINKLIB gcc}
-{$endif netbsd}
-
-{$ifdef win32}
-  {$undef NotImplemented}
-  {$LINKLIB libgdb.a}
- {$ifdef GDB_HAS_SIM}
-  {$LINKLIB libsim.a}
- {$endif GDB_HAS_SIM}
-  {$LINKLIB libbfd.a}
-  {$LINKLIB libreadline.a}
-  {$LINKLIB libopcodes.a}
-  {$LINKLIB libhistory.a}
-  {$LINKLIB libiberty.a}
-  {$LINKLIB libintl.a}
-  {$ifdef USE_MINGW_GDB}
-    {$LINKLIB libm.a}
-    {$LINKLIB libmoldname.a}
-    {$LINKLIB libgcc.a}
-    {$LINKLIB libws2_32.a}
-    {$LINKLIB libmingwex.a}
-    {$LINKLIB libmingw32.a}
-    {$LINKLIB libmsvcrt.a}
-  {$else not USE_MINGW_GDB}
-    {$LINKLIB libiconv.a}
-    {$LINKLIB libncurses.a}
-    {$ifdef GDB_USES_EXPAT_LIB}
-      {$LINKLIB expat}
-    {$endif GDB_USES_EXPAT_LIB}
-    {$LINKLIB gcc}
-    {$LINKLIB cygwin} { alias of libm.a and libc.a }
-  {$LINKLIB imagehlp}
-  {$endif not USE_MINGW_GDB}	
-  {$LINKLIB kernel32}
-  {$LINKLIB user32}
-{$endif win32}
-
-{$ifdef beos}
-  { still need some work... stollen from netbsd}
-  {$undef NotImplemented}
-  {$LINKLIB gdb}
-  {$ifdef GDB_HAS_SIM}
-    {$LINKLIB sim}
-  {$endif GDB_HAS_SIM}
-  {$LINKLIB bfd}
-  {$LINKLIB readline}
-  {$LINKLIB opcodes}
-  { $ LINKLIB history}
-  {$LINKLIB iberty}
-  {$LINKLIB ncurses}
-  { $ LINKLIB m} // include in libroot under BeOS
-  {$LINKLIB intl}
-  {$ifdef GDB_USES_EXPAT_LIB}
-    {$LINKLIB expat}
-  {$endif GDB_USES_EXPAT_LIB}
-  { does not seem to exist on netbsd LINKLIB dl}
-  { $ LINKLIB c} // This is libroot under BeOS, and always linked
-  {$LINKLIB debug}
-  {$LINKLIB gcc}
-{$endif beos}
-
-{$ifdef go32v2}
-  {$define supportexceptions}
-{$endif go32v2}
-{$ifdef unix}
-  {$define supportexceptions}
-{$endif unix}
-
-{$ifdef CROSSGDB}
-  { do we need something special if cross GDB? }
-{$endif CROSSGDB}
-
-{$ifdef NotImplemented}
-  {$fatal This OS is not yet supported !!!}
-{$endif NotImplemented}
-
-{$packrecords C}
-
-type
-  psyminfo=^tsyminfo;
-  tsyminfo=record
-    address  : ptrint;
-    fname    : pchar;
-    line     : longint;
-    funcname : pchar;
-    offset   : ptrint;
-  end;
-
-  tframeentry = object
-    file_name : pchar;
-    function_name : pchar;
-    args : pchar;
-    line_number : longint;
-    address : ptrint;
-    level : longint;
-    constructor init;
-    destructor done;
-    procedure reset;
-    procedure clear;
-  end;
-  pframeentry=^tframeentry;
-  ppframeentry=^pframeentry;
-
-{ needed for handles }
-{not anymore I textrec.inc}
-
-const
- k=1;
-
-type
-{$if defined(CPUSPARC) and defined(LINUX)}
-  CORE_ADDR = qword;
-{$else}
-  CORE_ADDR = ptrint; { might be target dependent PM }
-{$endif}
-  streamtype = (afile,astring);
-  C_FILE     = ptrint; { at least under DJGPP }
-  P_C_FILE   = ^C_FILE;
-
-type
-
-  pui_file = ^ui_file;
-
-  ui_file_flush_ftype = procedure(stream : pui_file);cdecl;
-  ui_file_write_ftype = procedure(stream : pui_file;buf : pchar;len : longint);cdecl;
-  ui_file_fputs_ftype = procedure(buf : pchar; stream : pui_file);cdecl;
-  ui_file_delete_ftype = procedure(stream : pui_file);cdecl;
-  ui_file_isatty_ftype = function(stream : pui_file) : longbool;cdecl;
-  ui_file_rewind_ftype = procedure(stream : pui_file);cdecl;
-  ui_file_put_method_ftype = procedure(var _object; buffer : pchar;length_buffer : longint);cdecl;
-  ui_file_put_ftype = procedure(stream : pui_file;method : ui_file_put_method_ftype;var context);cdecl;
-  {$ifdef GDB_V6}
-  ui_file_read_ftype = function (stream : pui_file; buffer : pchar; len : longint):longint;cdecl;
-  {$endif}
-
-  ui_file = record
-      magic : plongint;
-      to_flush  : ui_file_flush_ftype;
-      to_write  : ui_file_write_ftype;
-      to_fputs  : ui_file_fputs_ftype;
-      {$ifdef GDB_V6}
-      to_read   : ui_file_read_ftype;
-      {$endif}
-      to_delete : ui_file_delete_ftype;
-      to_isatty : ui_file_isatty_ftype;
-      to_rewind : ui_file_rewind_ftype;
-      to_put    : ui_file_put_ftype;
-      to_data   : pointer;
-    end;
-
-  { used to delete stdio_ui_file  gdb_stdout and gdb_stderr }
-  procedure ui_file_delete(stream : pui_file);cdecl;external;
-
-  { used to recreate gdb_stdout and gdb_stderr as memory streams }
-  function mem_fileopen : pui_file;cdecl;external;
-
-  { used to change the write procvar to ours }
-
-  procedure set_ui_file_write(stream : pui_file;write : ui_file_write_ftype);cdecl;external;
-
-
-  type
-
-  (* struct ptid
-  {
-    /* Process id */
-    int pid;
-
-    /* Lightweight process id */
-    long lwp;
-
-    /* Thread id */
-    long tid;
-  }; *)
-   pinferior_ptid = ^tinferior_ptid;
-   tinferior_ptid = record
-      pid : longint{C int};
-      lwp : ptrint{ C long};
-      tid : ptrint{ C long};
-     end;
-
-{$ifdef win32}
-
-type
-  { from sys/reent.h
-    real structure is bigger but only std.. are wanted here PM }
-  REENT = record
-    err : longint;
-    stdin,stdout,stderr : P_C_FILE;
-  end;
-  PREENT = ^REENT;
-
-var _impure_ptr : PREENT;cvar;external;
-
-{$endif win32}
-
-
-type
-  tgdbbuffer=object
-    buf   : pchar;
-    size,
-    idx   : longint;
-    gdb_file  : pui_file;
-    constructor Init;
-    destructor  Done;
-    procedure Reset;
-    procedure Resize(nsize : longint);
-    procedure Append(p:pchar);
-    procedure lappend(p:pchar;len : longint);
-  end;
-
-  pgdbinterface=^tgdbinterface;
-  tgdbinterface=object
-    gdberrorbuf,
-    gdboutputbuf  : tgdbbuffer;
-    got_error,
-    reset_command,
-    call_reset,
-    signaled,
-    Debuggee_started : boolean;
-    { frames and frame info while recording a frame }
-    frames        : ppframeentry;
-    frame_size,
-    frame_count   : longint;
-    record_frames,
-    frame_begin_seen : boolean;
-    frame_level,
-    command_level,
-    stop_breakpoint_number,
-    current_address,
-    current_line_number,
-    signal_start,
-    signal_end,
-    signal_name_start,
-    signal_name_end,
-    error_start,
-    error_end,
-    function_start,
-    function_end,
-    args_start,
-    args_end,
-    file_start,
-    file_end,
-    line_start,
-    line_end : longint;
-    signal_name,
-    signal_string : pchar;
-    current_pc      : CORE_ADDR;
-    { breakpoint }
-    last_breakpoint_number,
-    last_breakpoint_address,
-    last_breakpoint_line : longint;
-    last_breakpoint_file : pchar;
-    invalid_breakpoint_line : boolean;
-    { init }
-    constructor init;
-    destructor  done;
-    { Lowlevel }
-    function  error:boolean;
-    function  error_num:longint;
-    procedure gdb_command(const s:string);
-    procedure gdb__init;
-    procedure gdb_done;
-    procedure resize_frames;
-    function  add_frameentry:pframeentry;
-    function  get_frameentry(level : longint):pframeentry;
-    function  get_current_frame : ptrint;
-    function  set_current_frame(level : longint) : boolean;
-    procedure clear_frames;
-    { Highlevel }
-    user_screen_shown,
-    switch_to_user     : boolean;
-    procedure GetAddrSyminfo(addr:ptrint;var si:tsyminfo);
-    procedure SelectSourceline(fn:pchar;line:longint);
-    procedure StartSession;
-    procedure BreakSession;
-    procedure EndSession(code:longint);
-    procedure DebuggerScreen;
-    procedure UserScreen;
-    { Hooks }
-    procedure DoSelectSourceline(const fn:string;line:longint);virtual;
-    procedure DoStartSession;virtual;
-    procedure DoBreakSession;virtual;
-    procedure DoEndSession(code:longint);virtual;
-    procedure DoUserSignal;virtual;
-    procedure DoDebuggerScreen;virtual;
-    procedure DoUserScreen;virtual;
-    function  AllowQuit : boolean;virtual;
-  end;
-
-
-const
-  use_gdb_file : boolean = false;
-
-var
-  curr_gdb : pgdbinterface;
-  gdb_file : text;
-  inferior_ptid : tinferior_ptid;cvar;external;
-
-function  GDBVersion : string;
-function  inferior_pid : longint;
-
-{$ifdef GDB_V6}
-type
-  ui_out = pointer;
-var
-  uiout : ui_out;cvar;external;
-function cli_out_new (stream : pui_file):ui_out;cdecl;external;
-{$endif}
-
-{$ifdef go32v2}
-  { needed to be sure %fs contains the DOS memory selector
-    used in Mem[] code PM }
-  procedure reload_fs;
-{$endif go32v2}
-
-
-
-implementation
-
-uses
-{$ifdef win32}
-  {$ifdef USE_MINGW_GDB}
-  {$else not USE_MINGW_GDB}
-    initc,
-  {$endif not USE_MINGW_GDB}
-{$endif win32}
-{$ifdef unix}
-  baseunix,
-{$endif}
-{$ifdef go32v2}
-  go32,
-  dpmiexcp,
-  initc,
-{$endif}
-  strings;
-
-{*****************************************************************************
-                          Types used by libgdb.a
-*****************************************************************************}
-
-{$ifdef go32v2}
-type
-  jmp_buf = dpmi_jmp_buf;
-  pjmp_buf = pdpmi_jmp_buf;
-
-  function setjmp(var rec : jmp_buf) : longint;cdecl;external;
-
-  procedure longjmp(var rec : jmp_buf;return_value : longint);cdecl;external;
-
-  procedure reload_fs;assembler;
-  asm
-     movw  dosmemselector,%ax
-     movw  %ax,%fs
-  end['EAX'];
-
-{$endif}
-{$ifdef win32}
-type
-  jmp_buf = record
-  case byte of
-    0 :
-    { greatest value found in cygwin machine/setjmp.h for i386 }
-    (unknown_field : array [1..13] of longint;);
-    1 :
-    (eax,ebx,ecx,edx : longint;
-    esi,edi,ebp,esp,eip : longint;);
-  end;
-
-  pjmp_buf = ^jmp_buf;
-{$ifdef USE_MINGW_GDB}
-  { for obscure reasons, longjmp and _setjmp are defined in mingw32 libmsvcrt.a }
-  function _setjmp(var rec : jmp_buf) : longint; cdecl; external;
-  procedure longjmp(var rec : jmp_buf;return_value : longint); cdecl; external;
-  function setjmp(var rec : jmp_buf) : longint;
-    begin
-	  setjmp:=_setjmp(rec);
-	end;
-{$else not USE_MINGW_GDB}
-  function setjmp(var rec : jmp_buf) : longint;cdecl;external;
-
-  procedure longjmp(var rec : jmp_buf;return_value : longint);cdecl;external;
-{$endif not USE_MINGW_GDB}
-
-{$ifndef supportexceptions}
-type
-  { I don't think FPC would accept that
-    the funcvar return type is the funcvar type itself ! PM }
-  SignalHandler   = Procedure(Sig : LongInt);cdecl;
-  function signal(sig : longint;new_signal : SignalHandler) : SignalHandler;cdecl;external;
-
-{define supportexceptions not yet working }
-{$endif now exceptions are supported for win32}
-{$endif win32}
-
-  type
-     pCORE_ADDR = ^CORE_ADDR;
-     pblock = ^block;
-
-     tlanguage = (language_unknown,language_auto,language_c,
-       language_cplus,language_java,language_chill,
-       language_fortran,language_m2,language_asm,
-       language_scm,language_pascal,language_objc);
-
-     bptype = (bp_breakpoint,bp_hardware_breakpoint,
-       bp_until,bp_finish,bp_watchpoint,bp_hardware_watchpoint,
-       bp_read_watchpoint,bp_access_watchpoint,
-       bp_longjmp,bp_longjmp_resume,bp_step_resume,
-       bp_through_sigtramp,bp_watchpoint_scope,
-       bp_call_dummy,bp_shlib_event);
-
-     tenable = (disabled,enabled,shlib_disabled);
-
-     bpdisp = (del,del_at_next_stop,disable,donttouch);
-
-{$PACKRECORDS 4}
-     pbreakpoint = ^breakpoint;
-     breakpoint = record
-          next : pbreakpoint;
-          typ : bptype;
-          enable : tenable;
-          disposition : bpdisp;
-          number : longint;
-          address : CORE_ADDR;
-          line_number : longint;
-          source_file : pchar;
-          silent : byte;
-          ignore_count : longint;
-          shadow_contents : array[0..15] of char;
-          inserted : char;
-          duplicate : char;
-          commands : pointer; {^command_line}
-          frame : CORE_ADDR;
-          cond : pointer; {^expression}
-          addr_string : ^char;
-          language : tlanguage;
-          input_radix : longint;
-          cond_string : ^char;
-          exp_string : ^char;
-          exp : pointer; {^expression}
-          exp_valid_block : pblock; {^block;}
-          val : pointer; {value_ptr;}
-          val_chain : pointer; {value_ptr;}
-          related_breakpoint : pbreakpoint;
-          watchpoint_frame : CORE_ADDR;
-          thread : longint;
-          hit_count : longint;
-          section : pointer; {^asection}
-       end;
-
-     tfreecode=(free_nothing,free_contents,free_linetable);
-
-     psymtab = ^symtab;
-     symtab = record
-          next : psymtab;
-          blockvector : pointer; {^blockvector;}
-          linetable : pointer; {^linetable;}
-          block_line_section : longint;
-          primary : longint;
-          {$ifdef GDB_SYMTAB_HAS_MACROS}
-            { new field added in the middle :( }
-          macro_table : pointer;
-          {$endif GDB_SYMTAB_HAS_MACROS}
-          filename : pchar;
-          dirname : pchar;
-          free_code : tfreecode;
-          free_ptr : pchar;
-          nlines : longint;
-          line_charpos : ^longint;
-          language : tlanguage;
-          Debugformat : pchar;
-          version : pchar;
-          fullname : pchar;
-          objfile : pointer; {^objfile;}
-       end;
-
-     psymtab_and_line = ^symtab_and_line;
-     symtab_and_line = record
-          symtab : psymtab;
-          section : pointer; {^asection;}
-          line : longint;
-          pc : CORE_ADDR;
-          _end : CORE_ADDR;
-       end;
-
-     symtabs_and_lines = record
-          sals : ^symtab_and_line;
-          nelts : longint;
-       end;
-
-    psymbol = ^symbol;
-    pminimal_symbol = ^minimal_symbol;
-
-    general_symbol_info = record
-  (* Name of the symbol.  This is a required field.  Storage for the name is
-     allocated on the psymbol_obstack or symbol_obstack for the associated
-     objfile. *)
-
-      _name : pchar;
-
-  (* Value of the symbol.  Which member of this union to use, and what
-     it means, depends on what kind of symbol this is and its
-     SYMBOL_CLASS.  See comments there for more details.  All of these
-     are in host byte order (though what they point to might be in
-     target byte order, e.g. LOC_CONST_BYTES).  *)
-     value : record
-       case integer of
-      (* The fact that this is a long not a LONGEST mainly limits the
-         range of a LOC_CONST.  Since LOC_CONST_BYTES exists, I'm not
-         sure that is a big deal.  *)
-       0 : (ivalue : longint;);
-
-       1 : (block  : pblock;);
-
-       2 : (bytes  : pchar;);
-
-       3 : (address : CORE_ADDR;);
-
-      (* for opaque typedef struct chain *)
-
-       4 : (chain : psymbol;);
-      end;
-
-  (* Since one and only one language can apply, wrap the language specific
-     information inside a union. *)
-
-   (* union
-    {
-      struct cplus_specific      /* For C++ */
-                                /*  and Java */
-        {
-          char *demangled_name;
-        } cplus_specific;
-      struct chill_specific      /* For Chill */
-        {
-          char *demangled_name;
-        } chill_specific;
-    } language_specific; *)
-     demangled_name : pchar;
-
-  (* Record the source code language that applies to this symbol.
-     This is used to select one of the fields from the language specific
-     union above. *)
-
-    language : tlanguage;
-
-  (* Which section is this symbol in?  This is an index into
-     section_offsets for this objfile.  Negative means that the symbol
-     does not get relocated relative to a section.
-     Disclaimer: currently this is just used for xcoff, so don't
-     expect all symbol-reading code to set it correctly (the ELF code
-     also tries to set it correctly).  *)
-
-    section : word;
-
-  (* The bfd section associated with this symbol. *)
-
-    bfd_section : pointer {^asection};
-  end; { of general_symbol_info record declaration }
-
-  tminimal_symbol_type =
-    (
-      mst_unknown := 0,         (* Unknown type, the default *)
-      mst_text,                 (* Generally executable instructions *)
-      mst_data,                 (* Generally initialized data *)
-      mst_bss,                  (* Generally uninitialized data *)
-      mst_abs,                  (* Generally absolute (nonrelocatable) *)
-      (* GDB uses mst_solib_trampoline for the start address of a shared
-         library trampoline entry.  Breakpoints for shared library functions
-         are put there if the shared library is not yet loaded.
-         After the shared library is loaded, lookup_minimal_symbol will
-         prefer the minimal symbol from the shared library (usually
-         a mst_text symbol) over the mst_solib_trampoline symbol, and the
-         breakpoints will be moved to their true address in the shared
-         library via breakpoint_re_set.  *)
-      mst_solib_trampoline,     (* Shared library trampoline code *)
-      (* For the mst_file* types, the names are only guaranteed to be unique
-         within a given .o file.  *)
-      mst_file_text,            (* Static version of mst_text *)
-      mst_file_data,            (* Static version of mst_data *)
-      mst_file_bss              (* Static version of mst_bss *)
-    );
-
-  namespace_enum = (
-  (* UNDEF_NAMESPACE is used when a namespace has not been discovered or
-     none of the following apply.  This usually indicates an error either
-     in the symbol information or in gdb's handling of symbols. *)
-  UNDEF_NAMESPACE,
-
-  (* VAR_NAMESPACE is the usual namespace.  In C, this contains variables,
-     function names, typedef names and enum type values. *)
-  VAR_NAMESPACE,
-
-  (* STRUCT_NAMESPACE is used in C to hold struct, union and enum type names.
-     Thus, if `struct foo' is used in a C program, it produces a symbol named
-     `foo' in the STRUCT_NAMESPACE. *)
-  STRUCT_NAMESPACE,
-
-  (* LABEL_NAMESPACE may be used for names of labels (for gotos);
-     currently it is not used and labels are not recorded at all.  *)
-  LABEL_NAMESPACE,
-
-  (* Searching namespaces. These overlap with VAR_NAMESPACE, providing
-     some granularity with the search_symbols function. *)
-  (* Everything in VAR_NAMESPACE minus FUNCTIONS_-, TYPES_-, and
-     METHODS_NAMESPACE *)
-  VARIABLES_NAMESPACE,
-
-  (* All functions -- for some reason not methods, though. *)
-  FUNCTIONS_NAMESPACE,
-
-  (* All defined types *)
-  TYPES_NAMESPACE,
-
-  (* All class methods -- why is this separated out? *)
-  METHODS_NAMESPACE
-
-  );
-  address_class = (
-  (* Not used; catches errors *)
-  LOC_UNDEF,
-
-  (* Value is constant int SYMBOL_VALUE, host byteorder *)
-  LOC_CONST,
-
-  (* Value is at fixed address SYMBOL_VALUE_ADDRESS *)
-  LOC_STATIC,
-
-  (* Value is in register.  SYMBOL_VALUE is the register number.  *)
-  LOC_REGISTER,
-
-  (* It's an argument; the value is at SYMBOL_VALUE offset in arglist.  *)
-  LOC_ARG,
-
-  (* Value address is at SYMBOL_VALUE offset in arglist.  *)
-  LOC_REF_ARG,
-
-  (* Value is in register number SYMBOL_VALUE.  Just like LOC_REGISTER
-     except this is an argument.  Probably the cleaner way to handle
-     this would be to separate address_class (which would include
-     separate ARG and LOCAL to deal with FRAME_ARGS_ADDRESS versus
-     FRAME_LOCALS_ADDRESS), and an is_argument flag.
-
-     For some symbol formats (stabs, for some compilers at least),
-     the compiler generates two symbols, an argument and a register.
-     In some cases we combine them to a single LOC_REGPARM in symbol
-     reading, but currently not for all cases (e.g. it's passed on the
-     stack and then loaded into a register).  *)
-  LOC_REGPARM,
-
-  (* Value is in specified register.  Just like LOC_REGPARM except the
-     register holds the address of the argument instead of the argument
-     itself. This is currently used for the passing of structs and unions
-     on sparc and hppa.  It is also used for call by reference where the
-     address is in a register, at least by mipsread.c.  *)
-  LOC_REGPARM_ADDR,
-
-  (* Value is a local variable at SYMBOL_VALUE offset in stack frame.  *)
-  LOC_LOCAL,
-
-  (* Value not used; definition in SYMBOL_TYPE.  Symbols in the namespace
-     STRUCT_NAMESPACE all have this class.  *)
-  LOC_TYPEDEF,
-
-  (* Value is address SYMBOL_VALUE_ADDRESS in the code *)
-  LOC_LABEL,
-
-  (* In a symbol table, value is SYMBOL_BLOCK_VALUE of a `struct block'.
-     In a partial symbol table, SYMBOL_VALUE_ADDRESS is the start address
-     of the block.  Function names have this class. *)
-  LOC_BLOCK,
-
-  (* Value is a constant byte-sequence pointed to by SYMBOL_VALUE_BYTES, in
-     target byte order.  *)
-  LOC_CONST_BYTES,
-
-  (* Value is arg at SYMBOL_VALUE offset in stack frame. Differs from
-     LOC_LOCAL in that symbol is an argument; differs from LOC_ARG in
-     that we find it in the frame (FRAME_LOCALS_ADDRESS), not in the
-     arglist (FRAME_ARGS_ADDRESS).  Added for i960, which passes args
-     in regs then copies to frame.  *)
-  LOC_LOCAL_ARG,
-
-  (* Value is at SYMBOL_VALUE offset from the current value of
-     register number SYMBOL_BASEREG.  This exists mainly for the same
-     things that LOC_LOCAL and LOC_ARG do; but we need to do this
-     instead because on 88k DWARF gives us the offset from the
-     frame/stack pointer, rather than the offset from the "canonical
-     frame address" used by COFF, stabs, etc., and we don't know how
-     to convert between these until we start examining prologues.
-
-     Note that LOC_BASEREG is much less general than a DWARF expression.
-     We don't need the generality (at least not yet), and storing a general
-     DWARF expression would presumably take up more space than the existing
-     scheme.  *)
-  LOC_BASEREG,
-
-  (* Same as LOC_BASEREG but it is an argument.  *)
-  LOC_BASEREG_ARG,
-
-  (* Value is at fixed address, but the address of the variable has
-     to be determined from the minimal symbol table whenever the
-     variable is referenced.
-     This happens if debugging information for a global symbol is
-     emitted and the corresponding minimal symbol is defined
-     in another object file or runtime common storage.
-     The linker might even remove the minimal symbol if the global
-     symbol is never referenced, in which case the symbol remains
-     unresolved.  *)
-  LOC_UNRESOLVED,
-
-  (* Value is at a thread-specific location calculated by a
-     target-specific method. *)
-  LOC_THREAD_LOCAL_STATIC,
-
-  (* The variable does not actually exist in the program.
-     The value is ignored.  *)
-  LOC_OPTIMIZED_OUT,
-
-  (* The variable is static, but actually lives at * (address).
-   * I.e. do an extra indirection to get to it.
-   * This is used on HP-UX to get at globals that are allocated
-   * in shared libraries, where references from images other
-   * than the one where the global was allocated are done
-   * with a level of indirection.
-   *)
-  LOC_INDIRECT
-  );
-
-   minimal_symbol = record
-  (* The general symbol info required for all types of symbols.
-     The SYMBOL_VALUE_ADDRESS contains the address that this symbol
-     corresponds to.  *)
-    ginfo : general_symbol_info;
-
-  (* The info field is available for caching machine-specific information
-     so it doesn't have to rederive the info constantly (over a serial line).
-     It is initialized to zero and stays that way until target-dependent code
-     sets it.  Storage for any data pointed to by this field should be allo-
-     cated on the symbol_obstack for the associated objfile.
-     The type would be "void *" except for reasons of compatibility with older
-     compilers.  This field is optional.
-
-     Currently, the AMD 29000 tdep.c uses it to remember things it has decoded
-     from the instructions in the function header, and the MIPS-16 code uses
-     it to identify 16-bit procedures.  *)
-
-    info : pchar;
-
-{$ifdef SOFUN_ADDRESS_MAYBE_MISSING}
-  (* Which source file is this symbol in?  Only relevant for mst_file_*.  *)
-    filename : pchar;
-{$endif}
-
-  (* Classification types for this symbol.  These should be taken as "advisory
-     only", since if gdb can't easily figure out a classification it simply
-     selects mst_unknown.  It may also have to guess when it can't figure out
-     which is a better match between two types (mst_data versus mst_bss) for
-     example.  Since the minimal symbol info is sometimes derived from the
-     BFD library's view of a file, we need to live with what information bfd
-     supplies. *)
-
-    minimal_symbol_type : tminimal_symbol_type;
-  end{ of minimal_symbol};
-
-  block = record
-  (* Addresses in the executable code that are in this block.  *)
-  startaddr,
-  endaddr : CORE_ADDR ;
-
-  (* The symbol that names this block, if the block is the body of a
-     function; otherwise, zero.  *)
-  _function : psymbol;
-
-  (* The `struct block' for the containing block, or 0 if none.
-     The superblock of a top-level local block (i.e. a function in the
-     case of C) is the STATIC_BLOCK.  The superblock of the
-     STATIC_BLOCK is the GLOBAL_BLOCK.  *)
-
-  superblock : pblock;
-
-  (* Version of GCC used to compile the function corresponding
-     to this block, or 0 if not compiled with GCC.  When possible,
-     GCC should be compatible with the native compiler, or if that
-     is not feasible, the differences should be fixed during symbol
-     reading.  As of 16 Apr 93, this flag is never used to distinguish
-     between gcc2 and the native compiler.
-
-     If there is no function corresponding to this block, this meaning
-     of this flag is undefined.  *)
-
-  gcc_compile_flag : byte;
-
-  (* Number of local symbols.  *)
-  nsyms : longint;
-
-  (* The symbols.  If some of them are arguments, then they must be
-     in the order in which we would like to print them.  *)
-  sym : array [0..0] of psymbol;
-  end { of block definition };
-
-  symbol = record
-  (* The general symbol info required for all types of symbols. *)
-    ginfo : general_symbol_info;
-
-  (* Data type of value *)
-    _type : pointer{ptype};
-
-  (* Name space code.  *)
-  namespace : namespace_enum;
-
-  (* Address class *)
-
-  aclass : address_class;
-
-  (* Line number of definition.  FIXME:  Should we really make the assumption
-     that nobody will try to debug files longer than 64K lines?  What about
-     machine generated programs? *)
-
-  line : word;
-
-  (* Some symbols require an additional value to be recorded on a per-
-     symbol basis.  Stash those values here. *)
-
-  (*union
-    {
-      /* Used by LOC_BASEREG and LOC_BASEREG_ARG.  */
-      short basereg;
-    } *)
-  aux_value_base_reg : word;
-
-  (* Link to a list of aliases for this symbol.
-     Only a "primary/main symbol may have aliases.  *)
-  aliases : pointer{palias_list};
-
-  (* List of ranges where this symbol is active.  This is only
-     used by alias symbols at the current time.  *)
-  ranges : pointer{prange_list};
-  end;
-
-     target_signal = (TARGET_SIGNAL_FIRST := 0,
-       TARGET_SIGNAL_HUP := 1,TARGET_SIGNAL_INT := 2,
-       TARGET_SIGNAL_QUIT := 3,TARGET_SIGNAL_ILL := 4,
-       TARGET_SIGNAL_TRAP := 5,TARGET_SIGNAL_ABRT := 6,
-       TARGET_SIGNAL_EMT := 7,TARGET_SIGNAL_FPE := 8,
-       TARGET_SIGNAL_KILL := 9,TARGET_SIGNAL_BUS := 10,
-       TARGET_SIGNAL_SEGV := 11,TARGET_SIGNAL_SYS := 12,
-       TARGET_SIGNAL_PIPE := 13,TARGET_SIGNAL_ALRM := 14,
-       TARGET_SIGNAL_TERM := 15,TARGET_SIGNAL_URG := 16,
-       TARGET_SIGNAL_STOP := 17,TARGET_SIGNAL_TSTP := 18,
-       TARGET_SIGNAL_CONT := 19,TARGET_SIGNAL_CHLD := 20,
-       TARGET_SIGNAL_TTIN := 21,TARGET_SIGNAL_TTOU := 22,
-       TARGET_SIGNAL_IO := 23,TARGET_SIGNAL_XCPU := 24,
-       TARGET_SIGNAL_XFSZ := 25,TARGET_SIGNAL_VTALRM := 26,
-       TARGET_SIGNAL_PROF := 27,TARGET_SIGNAL_WINCH := 28,
-       TARGET_SIGNAL_LOST := 29,TARGET_SIGNAL_USR1 := 30,
-       TARGET_SIGNAL_USR2 := 31,TARGET_SIGNAL_PWR := 32,
-       TARGET_SIGNAL_POLL := 33,TARGET_SIGNAL_WIND := 34,
-       TARGET_SIGNAL_PHONE := 35,TARGET_SIGNAL_WAITING := 36,
-       TARGET_SIGNAL_LWP := 37,TARGET_SIGNAL_DANGER := 38,
-       TARGET_SIGNAL_GRANT := 39,TARGET_SIGNAL_RETRACT := 40,
-       TARGET_SIGNAL_MSG := 41,TARGET_SIGNAL_SOUND := 42,
-       TARGET_SIGNAL_SAK := 43,TARGET_SIGNAL_PRIO := 44,
-       TARGET_SIGNAL_REALTIME_33 := 45,TARGET_SIGNAL_REALTIME_34 := 46,
-       TARGET_SIGNAL_REALTIME_35 := 47,TARGET_SIGNAL_REALTIME_36 := 48,
-       TARGET_SIGNAL_REALTIME_37 := 49,TARGET_SIGNAL_REALTIME_38 := 50,
-       TARGET_SIGNAL_REALTIME_39 := 51,TARGET_SIGNAL_REALTIME_40 := 52,
-       TARGET_SIGNAL_REALTIME_41 := 53,TARGET_SIGNAL_REALTIME_42 := 54,
-       TARGET_SIGNAL_REALTIME_43 := 55,TARGET_SIGNAL_REALTIME_44 := 56,
-       TARGET_SIGNAL_REALTIME_45 := 57,TARGET_SIGNAL_REALTIME_46 := 58,
-       TARGET_SIGNAL_REALTIME_47 := 59,TARGET_SIGNAL_REALTIME_48 := 60,
-       TARGET_SIGNAL_REALTIME_49 := 61,TARGET_SIGNAL_REALTIME_50 := 62,
-       TARGET_SIGNAL_REALTIME_51 := 63,TARGET_SIGNAL_REALTIME_52 := 64,
-       TARGET_SIGNAL_REALTIME_53 := 65,TARGET_SIGNAL_REALTIME_54 := 66,
-       TARGET_SIGNAL_REALTIME_55 := 67,TARGET_SIGNAL_REALTIME_56 := 68,
-       TARGET_SIGNAL_REALTIME_57 := 69,TARGET_SIGNAL_REALTIME_58 := 70,
-       TARGET_SIGNAL_REALTIME_59 := 71,TARGET_SIGNAL_REALTIME_60 := 72,
-       TARGET_SIGNAL_REALTIME_61 := 73,TARGET_SIGNAL_REALTIME_62 := 74,
-       TARGET_SIGNAL_REALTIME_63 := 75,TARGET_SIGNAL_UNKNOWN,
-       TARGET_SIGNAL_DEFAULT,TARGET_SIGNAL_LAST
-       );
-
-     strata = (dummy_stratum,file_stratum,core_stratum,download_stratum,process_stratum);
-
-     ptarget_ops = ^target_ops;
-     target_ops = record
-          to_shortname : pchar;
-          to_longname : pchar;
-          to_doc : pchar;
-          to_open : procedure (_para1:pchar; _para2:longint);
-          to_close : procedure (_para1:longint);
-          to_attach : procedure (_para1:pchar; _para2:longint);
-          to_detach : procedure (_para1:pchar; _para2:longint);
-          to_resume : procedure (_para1:longint; _para2:longint; _para3:target_signal);
-          to_wait : pointer; {function (_para1:longint; _para2:ptarget_waitstatus):longint;}
-          to_fetch_registers : procedure (_para1:longint);
-          to_store_registers : procedure (_para1:longint);
-          to_prepare_to_store : procedure ;
-          to_xfer_memory : function (memaddr:CORE_ADDR; myaddr:pchar; len:longint; write:longint; target:ptarget_ops):longint;
-          to_files_info : procedure (_para1:ptarget_ops);
-          to_insert_breakpoint : function (_para1:CORE_ADDR; _para2:pchar):longint;
-          to_remove_breakpoint : function (_para1:CORE_ADDR; _para2:pchar):longint;
-          to_terminal_init : procedure ;
-          to_terminal_inferior : procedure ;
-          to_terminal_ours_for_output : procedure ;
-          to_terminal_ours : procedure ;
-          to_terminal_info : procedure (_para1:pchar; _para2:longint);
-          to_kill : procedure ;
-          to_load : procedure (_para1:pchar; _para2:longint);
-          to_lookup_symbol : function (_para1:pchar; _para2:pCORE_ADDR):longint;
-          to_create_inferior : procedure (_para1:pchar; _para2:pchar; _para3:ppchar);
-          to_mourn_inferior : procedure ;
-          to_can_run : function :longint;
-          to_notice_signals : procedure (pid:longint);
-          to_thread_alive : function (pid:longint):longint;
-          to_stop : procedure ;
-          to_stratum : strata;
-          DONT_USE : pointer;
-          to_has_all_memory : longint;
-          to_has_memory : longint;
-          to_has_stack : longint;
-          to_has_registers : longint;
-          to_has_execution : longint;
-          to_sections : pointer; {^section_table}
-          to_sections_end : pointer; {^section_table}
-          to_magic : longint;
-       end;
-
-{$PACKRECORDS NORMAL}
-
-{*****************************************************************************
-                   Define external calls to libgdb.a
-*****************************************************************************}
-
-var
-{ external variables }
-  error_return : jmp_buf;cvar;public;
-  quit_return  : jmp_buf;cvar;public;
-  {$ifdef GDB_HAS_DEPRECATED_CBPH}
-  deprecated_create_breakpoint_hook : pointer;cvar;external;
-  {$else}
-  create_breakpoint_hook : pointer;cvar;external;
-  {$endif}
-  current_target : target_ops;cvar;external;
-  stop_pc      : CORE_ADDR;cvar;external;
-  { Only used from GDB 5.01 but doesn't hurst otherwise }
-  interpreter_p : pchar;cvar;public;
-
-{ we need also to declare some vars }
-  watchdog      : longint;cvar;external;
-  gdb_error     : longint;cvar;public;
-  display_time  : longbool;cvar;public;
-  display_space : longbool;cvar;public;
-
-{ Whether this is the command line version or not }
-  tui_version : longint;cvar;public;
-
-{ Whether xdb commands will be handled }
-{$ifdef GDB_HAS_DB_COMMANDS}
-  xdb_commands : longint;cvar;public;
-
-{ Whether dbx commands will be handled }
-  dbx_commands : longint;cvar;public;
-{$endif GDB_HAS_DB_COMMANDS}
-
-var
-  gdb_stdout : pui_file;cvar;public;
-  gdb_stderr : pui_file;cvar;public;
-  gdb_stdlog : pui_file;cvar;public;
-  gdb_stdtarg : pui_file;cvar;public;
-  event_loop_p : longint;cvar;public;
-{$ifdef GDB_V6}
-(* target IO streams *)
-  gdb_stdtargin : pui_file;cvar;public;
-  gdb_stdtargerr : pui_file;cvar;public;
-{$endif}
-
-{ used for gdb_stdout and gdb_stderr }
-function  xmalloc(size : longint) : pointer;cdecl;external;
-function  find_pc_line(i:CORE_ADDR;l:longint):symtab_and_line;cdecl;external;
-function  find_pc_function(i:CORE_ADDR):psymbol;cdecl;external;
-function  lookup_minimal_symbol_by_pc(i : CORE_ADDR):pminimal_symbol;cdecl;external;
-{$ifdef GDB_INIT_HAS_ARGV0}
-procedure gdb_init(argv0 : pchar);cdecl;external;
-{$else not GDB_INIT_HAS_ARGV0}
-procedure gdb_init;cdecl;external;
-{$endif not GDB_INIT_HAS_ARGV0}
-procedure execute_command(p:pchar;i:longint);cdecl;external;
-procedure target_kill;cdecl;external;
-procedure target_close(i:longint);cdecl;external;
-
-
-{*****************************************************************************
-                                 Helpers
-*****************************************************************************}
-
-procedure Debug(const s:string);
-begin
-  if use_gdb_file then
-    Writeln(gdb_file,s)
-  else
-    Writeln(s);
-end;
-
-
-{*****************************************************************************
-                               TFrameEntry
-*****************************************************************************}
-
-constructor tframeentry.init;
-begin
-  Reset;
-end;
-
-destructor tframeentry.done;
-begin
-  Clear;
-end;
-
-procedure tframeentry.reset;
-begin
-  file_name:=nil;
-  function_name:=nil;
-  args:=nil;
-  line_number:=0;
-  address:=0;
-end;
-
-procedure tframeentry.clear;
-begin
-  if assigned(file_name) then
-   strdispose(file_name);
-  if assigned(function_name) then
-   strdispose(function_name);
-  if assigned(args) then
-   strdispose(args);
-  reset;
-end;
-
-
-{*****************************************************************************
-                                 tgdbbuffer
-*****************************************************************************}
-
-const
-  blocksize=2048;
-
-constructor tgdbbuffer.init;
-begin
-  Buf:=nil;
-  gdb_file:=nil;
-  Size:=0;
-  Resize(blocksize);
-  Reset;
-end;
-
-
-destructor tgdbbuffer.done;
-begin
-  if assigned(buf) then
-    freemem(buf,size);
-end;
-
-
-
-procedure tgdbbuffer.reset;
-begin
-  idx:=0;
-  Buf[0]:=#0;
-end;
-
-
-procedure tgdbbuffer.append(p:pchar);
-var
-  len : longint;
-begin
-  if not assigned(p) then
-   exit;
-  len:=Strlen(p);
-  if len+1+idx>size then
-   Resize(len+1+idx);
-  Move(p^,buf[idx],len);
-  inc(idx,len);
-  buf[idx]:=#0;
-end;
-
-
-procedure tgdbbuffer.lappend(p:pchar;len : longint);
-begin
-  if not assigned(p) then
-   exit;
-  if len+idx+1>size then
-   Resize(len+idx+1);
-  Move(p^,buf[idx],len);
-  inc(idx,len);
-  buf[idx]:=#0;
-end;
-
-
-procedure tgdbbuffer.resize(nsize : longint);
-var
-  np    : pchar;
-begin
-  nsize:=((nsize+blocksize-1) div blocksize)*blocksize;
-  getmem(np,nsize);
-  if assigned(buf) then
-    begin
-       move(buf^,np^,size);
-       freemem(buf,size);
-    end;
-  buf:=np;
-  size:=nsize;
-end;
-
-
-{*****************************************************************************
-                         Hook calls from libgdb.a
-*****************************************************************************}
-
-{$ifdef go32v2}
-procedure gdbpas_prev_exception_handler;cdecl;public;
-begin
-end;
-{$endif go32v2}
-
-procedure init_proc;cdecl;public;
-begin
-end;
-
-
-procedure annotate_signalled;cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|signalled|');
-{$endif}
-end;
-
-
-procedure annotate_signal_name;cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|signal_name|');
-{$endif}
-  with curr_gdb^ do
-   signal_name_start:=gdboutputbuf.idx;
-end;
-
-
-procedure annotate_signal_name_end;cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|signal_name_end|');
-{$endif}
-  with curr_gdb^ do
-   signal_name_end:=gdboutputbuf.idx;
-end;
-
-
-procedure annotate_signal_string;cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|signal_string|');
-{$endif}
-  with curr_gdb^ do
-   signal_start:=gdboutputbuf.idx;
-end;
-
-
-procedure annotate_signal_string_end;cdecl;public;
-var
-  c : char;
-begin
-{$ifdef Verbose}
-  Debug('|signal_string_end|');
-{$endif}
-  with curr_gdb^ do
-   begin
-     signal_end:=gdboutputbuf.idx;
-     c:=gdboutputbuf.buf[signal_end];
-     gdboutputbuf.buf[signal_end]:=#0;
-     if assigned(signal_string) then
-       strdispose(signal_string);
-     signal_string:=strnew(gdboutputbuf.buf+signal_start);
-     gdboutputbuf.buf[signal_end]:=c;
-     c:=gdboutputbuf.buf[signal_name_end];
-     gdboutputbuf.buf[signal_name_end]:=#0;
-     if assigned(signal_name) then
-       strdispose(signal_name);
-     signal_name:=strnew(gdboutputbuf.buf+signal_name_start);
-     gdboutputbuf.buf[signal_name_end]:=c;
-     if (user_screen_shown) then
-       begin
-         DebuggerScreen;
-         DoUserSignal;
-         UserScreen;
-       end
-     else
-       DoUserSignal;
-     call_reset:=true;
-     signaled:=false;
-   end;
-end;
-
-
-procedure annotate_signal;cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|signal|');
-{$endif}
-  with curr_gdb^ do
-   signaled:=true;
-end;
-
-
-procedure annotate_exited(exitstatus:longint);cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|exited|');
-{$endif}
-{#ifdef __DJGPP__
- /* this is very important. The exit code of a djgpp program
-   disables interrupts and after this there is no other interrupt
-   called, which enables interrupts with the iret. */
-  __dpmi_get_and_enable_virtual_interrupt_state();
-#endif }
-{$ifdef go32v2}
-   {$asmmode att}
-     asm
-        movw $0x901,%ax
-        int  $0x31
-     end;
-   {$asmmode default}
-   reload_fs;
-{$endif def go32v2}
-
-  curr_gdb^.DebuggerScreen;
-{  DeleteBreakPoints; }
-  curr_gdb^.EndSession(exitstatus);
-end;
-
-
-procedure annotate_error;cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|error|');
-{$endif}
-end;
-
-
-procedure annotate_error_begin;cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|error begin|');
-{$endif}
-  with curr_gdb^ do
-   begin
-     error_start:=gdboutputbuf.idx+strlen(gdboutputbuf.buf);
-     got_error:=true;
-   end;
-{$ifdef Verbose}
-  Debug('|end of error begin|');
-{$endif}
-end;
-
-
-procedure annotate_starting;cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|starting|');
-{$endif}
-{$ifdef go32v2}
-     reload_fs;
-{$endif go32v2}
-  curr_gdb^.UserScreen;
-end;
-
-
-procedure annotate_stopped;cdecl;public;
-var
-  sym : symtab_and_line;
-  fname : pchar;
-begin
-{$ifdef Verbose}
-  Debug('|stopped|');
-{$endif}
-  with curr_gdb^ do
-   begin
-{$ifdef go32v2}
-     reload_fs;
-{$endif go32v2}
-     DebuggerScreen;
-     current_pc:=stop_pc;
-     Debuggee_started:=inferior_pid<>0;
-     if not Debuggee_started then exit;
-     if reset_command then exit;
-      sym:=find_pc_line(stop_pc,0);
-     if assigned(sym.symtab) then
-      fname:=sym.symtab^.filename
-     else
-      fname:=nil;
-     SelectSourceLine(fname,sym.line);
-   end;
-end;
-
-
-function inferior_pid : longint;
-begin
-  inferior_pid:=inferior_ptid.pid;
-end;
-
-
-procedure proc_remove_foreign(pid:longint);cdecl;public;
-begin
-end;
-
-
-procedure breakpoints_changed;cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|breakpoints_changed|');
-{$endif}
-end;
-
-
-procedure annotate_ignore_count_change;cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|annotate_ignore_count_change()|');
-{$endif}
-end;
-
-
-procedure annotate_breakpoint(num:longint);cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|breakpoint(%d)|');
-{$endif}
-  With Curr_gdb^ do
-    stop_breakpoint_number:=num;
-end;
-
-
-procedure annotate_watchpoint(num:longint);cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|watchpoint(%d)|');
-{$endif}
-  With Curr_gdb^ do
-    stop_breakpoint_number:=num;
-end;
-
-procedure annotate_catchpoint(num:longint);cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|catchpoint(%d)|');
-{$endif}
-  With Curr_gdb^ do
-    stop_breakpoint_number:=num;
-end;
-
-
-procedure annotate_breakpoints_headers;cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|breakpoints_headers|');
-{$endif}
-end;
-
-
-procedure annotate_breakpoints_table;cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|breakpoints_table|');
-{$endif}
-end;
-
-
-procedure annotate_record;cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|record|');
-{$endif}
-end;
-
-
-procedure annotate_breakpoints_table_end;cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|breakpoints_table_end|');
-{$endif}
-end;
-
-
-procedure annotate_frames_invalid;cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|frames_invalid|');
-{$endif}
-end;
-
-
-procedure annotate_frame_begin(level:longint;pc:CORE_ADDR);cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|frame_begin(%d,%ld)|');
-{$endif}
-  with curr_gdb^ do
-   begin
-     frame_begin_seen:=true;
-     frame_level:=level;
-     current_address:=pc;
-     current_line_number:=-1;
-     function_start:=-1;
-     function_end:=-1;
-     args_start:=-1;
-     args_end:=-1;
-     file_start:=-1;
-     file_end:=-1;
-     line_start:=-1;
-     line_end:=-1;
-   end;
-end;
-
-
-procedure annotate_frame_address;cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|frame_address|');
-{$endif}
-end;
-
-
-procedure annotate_frame_address_end;cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|frame_address_end|');
-{$endif}
-end;
-
-procedure annotate_frame_function_name;cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|frame_function_name|');
-{$endif}
-  with curr_gdb^ do
-   function_start:=gdboutputbuf.idx;
-end;
-
-
-procedure annotate_frame_args;cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|frame_args|');
-{$endif}
-  with curr_gdb^ do
-   begin
-     function_end:=gdboutputbuf.idx;
-     args_start:=gdboutputbuf.idx;
-   end;
-end;
-
-procedure annotate_frame_source_begin;cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|frame_source_begin|');
-{$endif}
-  with curr_gdb^ do
-   args_end:=gdboutputbuf.idx;
-end;
-
-
-procedure annotate_frame_source_file;cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|frame_source_file|');
-{$endif}
-  with curr_gdb^ do
-   file_start:=gdboutputbuf.idx;
-end;
-
-procedure annotate_frame_source_file_end;cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|frame_source_file_end|');
-{$endif}
-  with curr_gdb^ do
-   file_end:=gdboutputbuf.idx;
-end;
-
-
-procedure annotate_frame_source_line;cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|frame_source_line|');
-{$endif}
-  with curr_gdb^ do
-   line_start:=gdboutputbuf.idx;
-end;
-
-
-procedure annotate_frame_source_end;cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|frame_source_end|');
-{$endif}
-  with curr_gdb^ do
-   line_end:=gdboutputbuf.idx;
-end;
-
-
-procedure annotate_frame_where;cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|frame_where|');
-{$endif}
-end;
-
-
-procedure annotate_frame_end;cdecl;public;
-var
-  fe : pframeentry;
-  c  : char;
-  err : integer;
-begin
-{$ifdef Verbose}
-  Debug('|frame_end|');
-{$endif}
-  with curr_gdb^ do
-   begin
-     if (not record_frames) or (not frame_begin_seen) then
-      exit;
-     { This can happen, when the function has no Debugging information }
-     if (args_start >= 0) and (args_end < 0) then
-      args_end:=gdboutputbuf.idx;
-     frame_begin_seen:=false;
-     fe:=get_frameentry(frame_level);
-     fe^.address:=current_address;
-     fe^.level:=frame_level;
-     if (function_start>=0) then
-      begin
-        c:=gdboutputbuf.buf[function_end];
-        gdboutputbuf.buf[function_end]:=#0;
-        fe^.function_name:=strnew(gdboutputbuf.buf+function_start);
-        gdboutputbuf.buf[function_end]:=c;
-      end;
-     if (file_start>=0)  then
-      begin
-        c:=gdboutputbuf.buf[file_end];
-        gdboutputbuf.buf[file_end]:=#0;
-        fe^.file_name:=strnew(gdboutputbuf.buf+file_start);
-        gdboutputbuf.buf[file_end]:=c;
-      end;
-     if (args_start>=0) then
-      begin
-        {$warning FIXME}  {sometimes the ide crashes here because ars_end is 0, AD}
-        if args_end > 0 then
-        begin
-          if (gdboutputbuf.buf[args_end-1]=#10) then
-           dec(args_end);
-          c:=gdboutputbuf.buf[args_end];
-          gdboutputbuf.buf[args_end]:=#0;
-          fe^.args:=strnew(gdboutputbuf.buf+args_start);
-          gdboutputbuf.buf[args_end]:=c;
-        end;
-      end;
-     if (line_start>=0) then
-      begin
-        c:=gdboutputbuf.buf[line_end];
-        gdboutputbuf.buf[line_end]:=#0;
-{     sscanf(gdb_output_buffer+line_start,'%d',&fe^.line_number); }
-        val(strpas(pchar(@gdboutputbuf.buf[line_start])),fe^.line_number,err);
-        gdboutputbuf.buf[line_end]:=c;
-      end;
-   end;
-end;
-
-
-procedure annotate_quit;cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|quit|');
-{$endif}
-end;
-
-
-procedure annotate_arg_begin;cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|arg_begin|');
-{$endif}
-end;
-
-
-procedure annotate_arg_name_end;cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|arg_name_end|');
-{$endif}
-end;
-
-
-procedure annotate_arg_value(typ:pointer);cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|arg_value|');
-{$endif}
-end;
-
-
-procedure annotate_arg_end;cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|arg_end|');
-{$endif}
-end;
-
-procedure annotate_source(filename:pchar;line,character,mid:longint;pc:CORE_ADDR);cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|source|');
-{$endif}
-end;
-
-
-procedure annotate_function_call;cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|function_call|');
-{$endif}
-end;
-
-
-procedure annotate_signal_handler_caller;cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|signal_handler_caller|');
-{$endif}
-end;
-
-
-procedure annotate_array_section_begin(index:longint;elttype:pointer);cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|array_section_begin()|');
-{$endif}
-end;
-
-
-procedure annotate_elt_rep(repcount:longint);cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|elt_rep()|');
-{$endif}
-end;
-
-procedure annotate_elt_rep_end;cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|elt_rep_end|');
-{$endif}
-end;
-
-
-procedure annotate_elt;cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|elt|');
-{$endif}
-end;
-
-
-procedure annotate_array_section_end;cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|array_section_end|');
-{$endif}
-end;
-
-procedure annotate_display_begin;cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|display_begin|');
-{$endif}
-end;
-
-
-procedure annotate_display_number_end;cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|display_number_end|');
-{$endif}
-end;
-
-
-procedure annotate_display_format;cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|display_format|');
-{$endif}
-end;
-
-procedure annotate_display_expression;cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|display_expression|');
-{$endif}
-end;
-
-
-procedure annotate_display_expression_end;cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|display_expression_end|');
-{$endif}
-end;
-
-
-procedure annotate_display_value;cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|display_value|');
-{$endif}
-end;
-
-
-procedure annotate_display_end;cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('|display_end|');
-{$endif}
-end;
-
-
-procedure annotate_field (num:longint);cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('a_field(%d)');
-{$endif}
-end;
-
-
-procedure annotate_field_begin(typ:pointer);cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('a_field_begin\n');
-{$endif}
-end;
-
-
-procedure annotate_field_name_end;cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('a_field_name_end\n');
-{$endif}
-end;
-
-
-procedure annotate_field_value;cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('a_field_value\n');
-{$endif}
-end;
-
-
-procedure annotate_field_end;cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('a_field_end\n');
-{$endif}
-end;
-
-
-procedure annotate_value_history_begin (histindex:longint;typ:pointer);cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('a_value_history_begin(%d)\n');
-{$endif}
-end;
-
-
-procedure annotate_value_begin (typ:pointer);cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('a_value_begin\n');
-{$endif}
-end;
-
-
-procedure annotate_value_history_value;cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('a_value_history_value\n');
-{$endif}
-end;
-
-
-procedure annotate_value_history_end;cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('a_value_history_end\n');
-{$endif}
-end;
-
-
-procedure annotate_value_end;cdecl;public;
-begin
-{$ifdef Verbose}
-  Debug('a_value_end\n');
-{$endif}
-end;
-
-
-procedure _initialize_annotate;cdecl;public;
-begin
-end;
-
-
-procedure gdbint_ui_file_write(stream : pui_file; p : pchar; len : longint);cdecl;
-begin
-  if assigned(curr_gdb) then
-   with curr_gdb^ do
-    if stream = gdb_stderr then
-       gdberrorbuf.lappend(p,len)
-    else if stream = gdb_stdout then
-       gdboutputbuf.lappend(p,len)
-    else
-      begin
-       gdberrorbuf.append('Unknown gdb ui_file');
-       gdberrorbuf.lappend(p,len);
-      end;
-end;
-
-
-procedure CreateBreakPointHook(var b:breakpoint);cdecl;
-var
-  sym : symtab_and_line;
-
-{ this procedure is only here to avoid the problems
-  with different version of gcc having different stack
-  handling:
-  on older versions find_pc_line uses just "ret"
-  while on newer gcc version "ret $4" is used
-  if this call is within the CreateBreakPointHook function
-  it changes %esp and thus the registers are
-  not restored correctly PM }
-  procedure get_pc_line;
-    begin
-      sym:=find_pc_line(b.address,0);
-    end;
-begin
-  get_pc_line;
-  with curr_gdb^ do
-   begin
-     last_breakpoint_number:=b.number;
-     { function breakpoints have zero as file and as line !!
-       but they are valid !! }
-     invalid_breakpoint_line:=(b.line_number<>sym.line) and (b.line_number<>0);
-     last_breakpoint_address:=b.address;
-     last_breakpoint_line:=sym.line;
-     if assigned(sym.symtab) then
-      last_breakpoint_file:=sym.symtab^.filename
-     else
-      last_breakpoint_file:=nil;
-   end;
-end;
-
-
-{*****************************************************************************
-                                 tgdbinterface
-*****************************************************************************}
-
-constructor tgdbinterface.init;
-begin
-  gdboutputbuf.init;
-  gdberrorbuf.init;
-  record_frames:=true;
-
-  { This must be placed before gdb__init is called
-    as gdb_init might issue output PM }
-  curr_gdb:=@self;
-  gdb__init;
-  command_level:=0;
-{ set output mode for GDB }
-{ only these values disable filtering
-  DONT CHANGE THEM !!! PM }
-  gdb_command('set width 0xffffffff');
-  gdb_command('set height 0xffffffff');
-{ other standard commands used for fpc debugging }
-  gdb_command('set print demangle off');
-  gdb_command('set gnutarget auto');
-  gdb_command('set language auto');
-  gdb_command('set print vtbl on');
-  gdb_command('set print object on');
-  gdb_command('set print null-stop');
-end;
-
-
-destructor tgdbinterface.done;
-begin
-  clear_frames;
-  gdb_done;
-  gdboutputbuf.done;
-  gdberrorbuf.done;
-end;
-
-
-procedure tgdbinterface.gdb__init;
-begin
-  gdboutputbuf.reset;
-  gdberrorbuf.reset;
-  {$ifdef GDB_HAS_DEPRECATED_CBPH}
-  deprecated_create_breakpoint_hook:=@CreateBreakPointHook;
-  {$else}
-  create_breakpoint_hook:=@CreateBreakPointHook;
-  {$endif}
-  signal_string:=nil;
-  signal_name:=nil;
-end;
-
-
-
-procedure tgdbinterface.gdb_done;
-begin
-  if debuggee_started then
-    begin
-      current_target.to_kill;
-      current_target.to_close(1);
-    end;
-  {$ifdef GDB_HAS_DEPRECATED_CBPH}
-  deprecated_create_breakpoint_hook:=nil;
-  {$else}
-  create_breakpoint_hook:=nil;
-  {$endif}
-end;
-
-
-function tgdbinterface.error:boolean;
-begin
-  error:=got_error;
-end;
-
-function tgdbinterface.error_num:longint;
-begin
-  error_num:=gdb_error;
-end;
-
-var
-   top_level_val : longint;
-
-function catch_errors(func : pointer; command : pchar; from_tty,mask : longint) : longint;cdecl;external;
-
-function gdbint_execute_command(command : pchar; from_tty,mask : longint) : longint;cdecl;
-begin
-  gdbint_execute_command:=1;
-  execute_command(command,from_tty);
-  gdbint_execute_command:=0;
-end;
-
-{$ifdef cpui386}
-type
-  tfpustate = word;
-
-const
-  MaskAllExceptions = $ff;
-{$else}
-type
-  tfpustate = longint;
-const
-  MaskAllExceptions = 0;
-{$endif}
-
-procedure SaveFPUState(var control :TFPUState);
-begin
-{$ifdef cpui386}
-  asm
-    movl control, %edi
-    fstcw (%edi)
-  end;
-{$else}
-  control:=0;
-{$endif}
-end;
-
-procedure SetFPUState(control : TFPUState);
-begin
-{$ifdef cpui386}
-  asm
-    fnclex
-    fldcw control
-  end;
-{$else}
-{$endif}
-end;
-
-function MaskAllFPUExceptions(control : TFPUState) : TFPUState;
-begin
-{$ifdef cpui386}
-  MaskAllFPUExceptions := control or MaskAllExceptions;
-{$endif}
-end;
-
-procedure tgdbinterface.gdb_command(const s:string);
-var
-  command          : array[0..256] of char;
-  prev_stop_breakpoint_number,
-  mask : longint;
-  s2 : string;
-  old_quit_return,
-  old_error_return : jmp_buf;
-  control : TFPUState;
-begin
-  inc(command_level);
-  SaveFPUState(control);
-  SetFPUState(MaskAllFPUExceptions(control));
-  move(s[1],command,length(s));
-  command[length(s)]:=#0;
-  old_quit_return:=quit_return;
-  old_error_return:=error_return;
-  gdb_error:=0;
-  got_error:=false;
-  if command_level=1 then
-    prev_stop_breakpoint_number:=0
-  else
-    prev_stop_breakpoint_number:=stop_breakpoint_number;
-
-  stop_breakpoint_number:=0;
-  { Trap quit commands }
-  s2:=s;
-  while (length(s2)>0) and ((s2[1]=' ') or (s2[1]=#9)) do
-    s2:=copy(s2,2,255);
-  if (length(s2)>0) and
-     (UpCase(s2[1])='Q') and
-     ((length(s2)=1) or
-      (s2[2]=' ') or
-      ((UpCase(s2[2])='U') and
-      ((length(s2)=2) or
-       (s2[3]=' ') or
-       ((UpCase(s2[3])='I') and
-        ((length(s2)=3) or
-         (s2[4]=' ') or
-         ((UpCase(s2[4])='T') and
-          ((length(s2)=4) or
-           (s2[5]=' ')
-     ))))))) then
-    begin
-      if not AllowQuit then
-        exit;
-    end;
-{$ifdef DebugCommand}
-  Debug('start of handle_gdb_command ('+s+')');
-{$endif}
-  top_level_val:=setjmp(error_return);
-  if top_level_val=0 then
-   begin
-     quit_return:=error_return;
-     mask:=longint($ffffffff);
-     catch_errors(@gdbint_execute_command,@command,0,mask);
-{$ifdef go32v2}
-     reload_fs;
-{$endif go32v2}
-   end
-  else
-{$ifdef Verbose}
-    Debug('error longjmp in handle_gdb_command ('+s+')');
-{$endif}
-   ;
-{$ifdef DebugCommand}
-  Debug('end of handle_gdb_command ('+s+')');
-{$endif}
-  quit_return:=old_quit_return;
-  error_return:=old_error_return;
-  dec(command_level);
-  stop_breakpoint_number:=prev_stop_breakpoint_number;
-  SetFPUState(control);
-end;
-
-
-procedure tgdbinterface.resize_frames;
-var
-  i : longint;
-  new_frames : ppframeentry;
-begin
-  if (frame_count>=frame_size) then
-   begin
-     getmem(new_frames,sizeof(pointer)*(frame_count+1));
-     for i:=0 to frame_size-1 do
-       new_frames[i]:=frames[i];
-     if assigned(frames) then
-       freemem(frames,sizeof(pointer)*frame_size);
-     frames:=new_frames;
-     frame_size:=frame_count+1;
-     for i:=frame_count to frame_size-1 do
-      frames[i]:=new(pframeentry,init);
-  end;
-end;
-
-
-function tgdbinterface.add_frameentry:pframeentry;
-begin
-  resize_frames;
-  add_frameentry:=frames[frame_count];
-  inc(frame_count);
-end;
-
-function tgdbinterface.get_frameentry(level : longint) : pframeentry;
-begin
-  { only climb values one by one PM }
-  if level>=frame_count then
-    resize_frames;
-  get_frameentry:=frames[level];
-  frames[level]^.clear;
-  if level>=frame_count then
-    inc(frame_count);
-end;
-
-
-procedure tgdbinterface.clear_frames;
-var
-  i : longint;
-begin
-  for i:=0 to frame_size-1 do
-   dispose(frames[i],done);
-  freemem(frames,sizeof(pointer)*Frame_size);
-  frame_count:=0;
-  frame_size:=0;
-end;
-
-function tgdbinterface.get_current_frame : ptrint;
-begin
-  record_frames:=false;
-  gdb_command('f');
-  get_current_frame:=frame_level;
-  record_frames:=true;
-end;
-
-function tgdbinterface.set_current_frame(level : longint) : boolean;
-var
-  s : string;
-begin
-  record_frames:=false;
-  str(level,s);
-  gdb_command('f '+s);
-  if level=frame_level then
-    set_current_frame:=true
-  else
-    set_current_frame:=false;
-  record_frames:=true;
-end;
-
-
-{*****************************************************************************
-                      Highlevel tgdbinterface
-*****************************************************************************}
-
-procedure tgdbinterface.GetAddrSyminfo(addr:ptrint;var si:tsyminfo);
-var
-  sym : symtab_and_line;
-  symbol : psymbol;
-begin
-  sym:=find_pc_line(addr,1);
-  fillchar(si,sizeof(tsyminfo),0);
-  si.address:=addr;
-  si.offset:=addr-sym.pc;
-  if assigned(sym.symtab) then
-   si.fname:=sym.symtab^.filename
-  else
-   si.fname:=nil;
-  si.line:=sym.line;
-  symbol:=find_pc_function(addr);
-  if assigned(symbol) then
-   si.funcname:=symbol^.ginfo._name
-  else
-   si.funcname:=nil;
-end;
-
-
-procedure tgdbinterface.SelectSourceLine(fn:pchar;line:longint);
-begin
-  if assigned(fn) then
-   DoSelectSourceLine(StrPas(fn),line)
-  else
-   DoSelectSourceLine('',line);
-end;
-
-
-procedure tgdbinterface.StartSession;
-begin
-  DoStartSession;
-end;
-
-
-procedure tgdbinterface.BreakSession;
-begin
-  DoBreakSession;
-end;
-
-
-procedure tgdbinterface.EndSession(code:longint);
-begin
-  Debuggee_started:=false;
-  inferior_ptid.pid:=0;
-  DoEndSession(code);
-  if assigned(signal_name) then
-    strdispose(signal_name);
-  signal_name:=nil;
-  if assigned(signal_string) then
-    strdispose(signal_string);
-  signal_string:=nil;
-end;
-
-
-procedure tgdbinterface.DebuggerScreen;
-begin
-{$ifdef Verbose}
-  Debug('|DebuggerScreen|');
-{$endif}
-  if user_screen_shown then
-   DoDebuggerScreen;
-  user_screen_shown:=false;
-end;
-
-
-procedure tgdbinterface.UserScreen;
-begin
-{$ifdef Verbose}
-  Debug('|UserScreen|');
-{$endif}
-  if switch_to_user then
-   begin
-     if (not user_screen_shown) then
-      DoUserScreen;
-     user_screen_shown:=true;
-   end;
-end;
-
-
-
-{---------------------------------------
-          Default Hooks
----------------------------------------}
-
-procedure tgdbinterface.DoSelectSourceLine(const fn:string;line:longint);
-{$ifdef Verbose}
-var
-  s : string;
-{$endif}
-begin
-{$ifdef Verbose}
-  Str(line,S);
-  Debug('|SelectSource '+fn+':'+s+'|');
-{$endif}
-end;
-
-procedure tgdbinterface.DoStartSession;
-begin
-end;
-
-procedure tgdbinterface.DoBreakSession;
-begin
-end;
-
-procedure tgdbinterface.DoEndSession(code:longint);
-begin
-end;
-
-procedure tgdbinterface.DoUserSignal;
-begin
-end;
-
-procedure tgdbinterface.DoDebuggerScreen;
-begin
-end;
-
-procedure tgdbinterface.DoUserScreen;
-begin
-end;
-
-function  tgdbinterface.AllowQuit : boolean;
-begin
-  AllowQuit:=true;
-end;
-
-var
-  version : array[0..0] of char;cvar;external;
-
-{$ifndef GDB_NEEDS_NO_ERROR_INIT}
-{ doesn't seem to exist anymore. Seems to work fine without }
-procedure error_init;cdecl;external;
-{$endif GDB_NEEDS_NO_ERROR_INIT}
-
-function  GDBVersion : string;
-begin
-  GDBVersion:='GDB '+StrPas(version);
-end;
-
-
-const next_exit : pointer = nil;
-procedure DoneLibGDB;
-begin
-  exitproc:=next_exit;
-end;
-
-{$ifdef go32v2}
-var
-  c_environ : ppchar;external name '_environ';
-  c_argc : longint;external name '___crt0_argc';
-  c_argv : ppchar;external name '___crt0_argv';
-{$endif def go32v2}
-
-procedure InitLibGDB;
-{$ifdef supportexceptions}
-var
-  OldSigInt : SignalHandler;
-{$endif supportexceptions}
-{$ifdef GDB_INIT_HAS_ARGV0}
-var
-  argv0 : pchar;
-{$endif not GDB_INIT_HAS_ARGV0}
-begin
-{$ifdef go32v2}
-  c_environ:=system.envp;
-  c_argc:=system.argc;
-  c_argv:=system.argv;
-{$endif def go32v2}
-{$ifdef supportexceptions}
-{$ifdef go32v2}
-  OldSigInt:=Signal(SIGINT,SignalHandler(@SIG_DFL));
-{$else}
-  {$ifdef Unix}
-    OldSigInt:=fpSignal(SIGINT,SignalHandler(SIG_DFL));
-  {$else}
-    OldSigInt:=Signal(SIGINT,SignalHandler(SIG_DFL));
-  {$endif}
-{$endif}
-{$endif supportexceptions}
-
-  if assigned(gdb_stderr) then
-    ui_file_delete(gdb_stderr);
-  if assigned(gdb_stdout) then
-    ui_file_delete(gdb_stdout);
-  gdb_stderr:=mem_fileopen;
-  gdb_stdout:=mem_fileopen;
-  gdb_stdlog:=gdb_stderr;
-  gdb_stdtarg:=gdb_stderr;
-  set_ui_file_write(gdb_stdout,@gdbint_ui_file_write);
-  set_ui_file_write(gdb_stderr,@gdbint_ui_file_write);
-{$ifndef GDB_NEEDS_NO_ERROR_INIT}
-  error_init;
-{$endif GDB_NEEDS_NO_ERROR_INIT}
-{$ifdef GDB_V6}
-//  gdb_stdtargin := gdb_stdin;
-  gdb_stdtargerr := gdb_stderr;
-{$endif}
-
-  next_exit:=exitproc;
-  exitproc:=@DoneLibGDB;
-{$ifdef GDB_V6}
-  uiout := cli_out_new (gdb_stdout);
-{$endif}
-{$ifdef GDB_INIT_HAS_ARGV0}
-  getmem(argv0,length(paramstr(0))+1);
-  strpcopy(argv0,paramstr(0));
-  gdb_init(argv0);
-  freemem(argv0,length(paramstr(0))+1);
-{$else not GDB_INIT_HAS_ARGV0}
-  gdb_init;
-{$endif not GDB_INIT_HAS_ARGV0}
-{$ifdef supportexceptions}
-  {$ifdef unix}
-    fpsignal(SIGINT,OldSigInt);
-  {$else}
-    Signal(SIGINT,OldSigInt);
-  {$endif}
-{$endif supportexceptions}
-  if setjmp(error_return)=0 then
-    begin
-       quit_return:=error_return;
-       exit;
-    end
-  else
-    begin
-{$ifdef Verbose}
-       Debug('|LongJump to Init|');
-{$endif}
-{$ifdef go32v2}
-       RunError(99);
-{$endif def go32v2}
-    end;
-  WatchDog:=0;
-end;
-
-{$ifdef GDB_HAS_SYSROOT}
-var gdb_sysroot  : pchar; cvar;public;
-    gdb_sysrootc : char;
-    return_child_result : longbool;cvar;public;
-    return_child_result_value : longint;cvar;public;
-    batch_silent : longbool;cvar;public;
-{$endif}
-{$ifdef GDB_HAS_DEBUG_FILE_DIRECTORY}
-var
-  debug_file_directory : pchar; cvar; external;
-{$endif GDB_HAS_DEBUG_FILE_DIRECTORY}
-
-begin
-{$ifdef GDB_HAS_SYSROOT}
-  gdb_sysrootc := #0;
-  gdb_sysroot := @gdb_sysrootc;
-{$endif}
-{$ifdef GDB_HAS_DEBUG_FILE_DIRECTORY}
-  debug_file_directory := '/usr/local/lib';
-{$endif GDB_HAS_DEBUG_FILE_DIRECTORY}
-  gdb_stderr:=nil;
-  gdb_stdout:=nil;
-  InitLibGDB;
-end.

+ 0 - 182
packages/base/gdbint/gdbobjs.inc

@@ -1,182 +0,0 @@
-{
-    Copyright (c) 1999 by Pierre Muller
-
-    direct GDB objects linking for debug info
-
-    See the file COPYING.FPC, included in this distribution,
-    for details about the copyright.
-
-    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.
-
- **********************************************************************}
-
-{ gdb-version/gdb directory must be in objects path }
-{ use ifdef or ifndef GDB_V416 to change objects needed for
-  different gdb versions }
-
-{$L infcmd.o}
-{$L symtab.o}
-{$L top.o}
-{$L target.o}
-{$L utils.o}
-{$L breakpoi.o}
-{$L corefile.o}
-{$L symfile.o}
-{$L ../libibert/concat.o}
-{$L environ.o}
-{$L eval.o}
-{$L infrun.o}
-{$L blockfra.o}
-{$L findvar.o}
-{$L printcmd.o}
-{$L i386-tde.o}
-{$L minsyms.o}
-{$L stack.o}
-{$L gdbtypes.o}
-{$L valops.o}
-{$L values.o}
-{$L valprint.o}
-{$L language.o}
-{$L source.o}
-{$L i387-tde.o}
-{$L command.o}
-{$L objfiles.o}
-{$L demangle.o}
-{$L ../libibert/cplus-de.o}
-{$L gnu-rege.o}
-{$L c-typepr.o}
-{$L typeprin.o}
-{$L init.o}
-{$L parse.o}
-{$L serial.o}
-{$L ../libibert/getrunti.o}
-{$L ../readline/complete.o}
-{$L ../readline/readline.o}
-{$L ../readline/history.o}
-{$L ../gdb/version.o}
-{$L inflow.o}
-{$L ../readline/tilde.o}
-{$L ../readline/bind.o}
-{$L mem-brea.o}
-{$L ../libibert/strsigna.o}
-{$L ../bfd/bfd.o}
-{$L ../libibert/vasprint.o}
-{$L ch-lang.o}
-{$ifdef GDB_V416}
-{$L go32targ.o}
-{$else}
-{$L go32-nat.o}
-{$endif}
-{$L thread.o}
-{$L valarith.o}
-{$L expprint.o}
-{$L exec.o}
-{$L ../bfd/corefile.o}
-{$L ../libibert/obstack.o}
-{$L ../bfd/section.o}
-{$L complain.o}
-{$L ../libibert/argv.o}
-{$L ../bfd/opncls.o}
-{$L ../bfd/format.o}
-{$L bcache.o}
-{$L symmisc.o}
-{$L f-lang.o}
-{$L f-valpri.o}
-{$L cp-valpr.o}
-{$L ../opcodes/dis-buf.o}
-{$L ../opcodes/i386-dis.o}
-{$L scm-lang.o}
-{$L ../libibert/basename.o}
-{$L ../libibert/floatfor.o}
-{$L copying.o}
-{$L ser-go32.o}
-{$L remote.o}
-{$L dcache.o}
-{$L remote-u.o}
-{$L buildsym.o}
-{$L maint.o}
-{$L dbxread.o}
-{$L coffread.o}
-{$L elfread.o}
-{$L mipsread.o}
-{$L stabsrea.o}
-{$L c-lang.o}
-{$L m2-lang.o}
-{$L nlmread.o}
-{$L mdebugre.o}
-{$L os9kread.o}
-{$L p-lang.o}
-{$L p-valpri.o}
-{$L ../readline/display.o}
-{$L ../readline/keymaps.o}
-{$L ../readline/rltty.o}
-{$L ../readline/vi_mode.o}
-{$L ../readline/funmap.o}
-{$L ../readline/parens.o}
-{$L ../bfd/cache.o}
-{$L ch-exp.o}
-{$L ch-typep.o}
-{$L ch-valpr.o}
-{$L ../bfd/libbfd.o}
-{$L ../bfd/archures.o}
-{$L ../bfd/targets.o}
-{$L ../bfd/binary.o}
-{$L f-exp_ta.o}
-{$L f-typepr.o}
-{$L c-valpri.o}
-{$L scm-exp.o}
-{$L c-exp_ta.o}
-{$L scm-valp.o}
-{$L dwarfrea.o}
-{$L m2-exp_t.o}
-{$L m2-typep.o}
-{$L m2-valpr.o}
-{$L p-exp_ta.o}
-{$L p-typepr.o}
-{$L ../readline/isearch.o}
-{$L ../readline/search.o}
-{$L ../bfd/cpu-i386.o}
-{$L ../bfd/coff-go3.o}
-{$L ../bfd/srec.o}
-{$L ../bfd/tekhex.o}
-{$L ../bfd/ihex.o}
-{$L ../bfd/syms.o}
-{$L ../bfd/archive.o}
-{$L ../bfd/reloc.o}
-{$L ../bfd/linker.o}
-{$L ../bfd/coffgen.o}
-{$L ../bfd/cofflink.o}
-{$L ../libibert/hex.o}
-{$L ../bfd/hash.o}
-{$L ../bfd/stabs.o}
-{$ifdef GDB_V418}
-{$L ../readline/histexpa.o}
-{$L ../readline/histfile.o}
-{$L gdbarch.o}
-{$L tracepoi.o}
-{$L ax-gdb.o}
-{$L jv-lang.o}
-{$L ../readline/input.o}
-{$L ../readline/util.o}
-{$L ../readline/terminal.o}
-{$L ../readline/undo.o}
-{$L ../readline/macro.o}
-{$L ../readline/shell.o}
-{$L ../readline/nls.o}
-{$L ../readline/kill.o}
-{$L ../libibert/xstrerro.o}
-{$L ../libibert/objalloc.o}
-{$L dwarf2re.o}
-{$L ../bfd/coff-stg.o}
-{$L ../bfd/i386aout.o}
-{$L ../libibert/fnmatch.o}
-{$L ../readline/histsear.o}
-{$L ax-gener.o}
-{$L jv-exp_t.o}
-{$L jv-typep.o}
-{$L jv-valpr.o}
-{$L ../bfd/aout32.o}
-{$L ../bfd/stab-sym.o}
-{$endif GDB_V418}

+ 0 - 104
packages/base/gdbint/gdbver.pp

@@ -1,104 +0,0 @@
-{
-
-  Program to detect the version of libgdb that will be
-  used for linking
-}
-program find_gdb_version;
-
-{$R-}
-
-{$ifdef unix}
-  {$Linklib c}
-{$endif}
-
-{$LINKLIB libgdb.a}
-
-uses
-  strings;
-
-const
-  { This variable should be change with change in GDB CVS PM }
-  Current_cvs_version : longint = 503;
-  Max_version_length = 255;
-
-const
-  output_file:string='';
-
-var
-  version : array[0..0] of char;cvar;external;
-  gdbversion : pchar;
-  subver_str : string;
-  i, version_number,
-  subversion_number : longint;
-  subsubversion_number : longint;
-  error : word;
-  only_ver : boolean;
-  o : text;
-
-begin
-  only_ver:=(Paramcount>0) and (ParamStr(1)='-n');
-  if (paramcount>=2) and (paramstr(1)='-o') then
-    begin
-      only_ver:=true;
-      output_file:=paramstr(2);
-    end;
-  getmem(gdbversion,Max_version_length+1);
-  strlcopy(gdbversion,@version,Max_version_length);
-  gdbversion[Max_version_length]:=#0;
-  if (gdbversion[0] in ['4','5','6','7','8','9']) and (gdbversion[1]='.') then
-    begin
-      if not only_ver then
-        Writeln('GDB version is ',pchar(@version));
-      version_number:=ord(gdbversion[0])-ord('0');
-      i:=2;
-      subver_str:='';
-      while gdbversion[i] in ['0'..'9'] do
-        begin
-          subver_str:=subver_str+gdbversion[i];
-          inc(i);
-        end;
-      val(subver_str,subversion_number,error);
-      inc(i);
-      subver_str:='';
-      while gdbversion[i] in ['0'..'9'] do
-        begin
-          subver_str:=subver_str+gdbversion[i];
-          inc(i);
-        end;
-      if subver_str<>'' then
-        val(subver_str,subsubversion_number,error);
-      { 5.02.90 is a pretest of 5.03.. PM }
-      if subsubversion_number>=90 then
-        inc(subversion_number);
-      if (error=0) and (subversion_number>=0) and
-         (subversion_number<=99) then
-        version_number:=version_number*100+subversion_number;
-    end
-  else if (gdbversion[0]='2') and (gdbversion[1]='0') and
-          (gdbversion[2] in ['0'..'9']) and (gdbversion[3] in ['0'..'9']) then
-    begin
-      { CVS version from 2000 to 2099,
-        assume current_cvs_version  PM }
-      version_number:=Current_cvs_version;
-    end
-  else
-    begin
-      if not only_ver then
-        Writeln('Unsupported GDB version');
-      version_number:=0;
-    end;
-  freemem(gdbversion);
-  if output_file<>'' then
-    begin
-      assign(o,output_file);
-      rewrite(o);
-      writeln(o,'{$define GDB_V',version_number,'}');
-      close(o);
-    end
-  else
-    begin
-      if only_ver then
-        Write(version_number);
-      Halt(version_number);
-    end;
-end.

+ 0 - 1
packages/base/gdbint/gdbver_nogdb.inc

@@ -1 +0,0 @@
-{$define GDB_V606}

+ 0 - 77
packages/base/gdbint/symify.pp

@@ -1,77 +0,0 @@
-{
-    Copyright (c) 1998 by Peter Vreman
-
-    Translate backtrace addresses into file and line info
-
-    See the file COPYING.FPC, included in this distribution,
-    for details about the copyright.
-
-    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.
-
- **********************************************************************}
-program symify;
-uses GDBInt;
-
-var
-  gdb : tgdbinterface;
-
-
-procedure processlog(const fn:string);
-var
-  t    : text;
-  hs,s : string;
-  code : word;
-  i,
-  addr : longint;
-  sym  : tsyminfo;
-begin
-  assign(t,fn);
-  {$I-}
-   reset(t);
-  {$I+}
-  if ioresult<>0 then
-   exit;
-  while not eof(t) do
-   begin
-     readln(t,s);
-     i:=pos('0x',s);
-     if i=3 then
-      begin
-        hs:='$'+Copy(s,5,8);
-        Val(hs,addr,code);
-        if code=0 then
-         begin
-           gdb.GetAddrSymInfo(addr,sym);
-           Write(Copy(s,1,12));
-           if assigned(sym.funcname) then
-             write(' in ',sym.funcname,'+',sym.offset);
-           if assigned(sym.fname) then
-             writeln(' ',sym.fname,':',sym.line)
-           else
-             writeln;
-         end
-        else
-         writeln(s);
-      end
-     else
-      writeln(s);
-   end;
-  close(t);
-end;
-
-
-begin
-  if paramcount<2 then
-   begin
-     writeln('usage: symify <log> <file>');
-     halt(1);
-   end;
-  gdb.init;
-  writeln('loading ',paramstr(2));
-  gdb.gdb_command('file '+paramstr(2));
-  writeln('parsing ',paramstr(1));
-  processlog(paramstr(1));
-  gdb.done;
-end.

+ 0 - 55
packages/base/gdbint/testgdb.pp

@@ -1,55 +0,0 @@
-{
-    Copyright (c) 1998 by Peter Vreman
-
-    Small example program to the GDB
-
-    See the file COPYING.FPC, included in this distribution,
-    for details about the copyright.
-
-    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.
-
- **********************************************************************}
-program testgdb;
-uses gdbcon;
-var
-  last,s,parafile : string;
-  gdb : tgdbcontroller;
-begin
-  gdb.init;
-  if paramcount=1 then
-    parafile:=paramstr(1)
-  else
-    parafile:='test';
-  gdb.loadfile(parafile);
-  Writeln('Welcome to the pascal GDB...');
-  Writeln('Type "q" to exit...');
-  last:='';
-  repeat
-    write('>');
-    readln(s);
-    if (s='a') then
-     gdb.starttrace
-    else
-     if (s='s') then
-      gdb.tracestep
-    else
-     if (s='n') then
-      gdb.tracenext
-    else
-     if (s='q') then
-      break
-    else
-     begin
-       if s='' then
-         s:=last;
-       GDB.Command(s);
-       GDB.WriteErrorBuf;
-       GDB.WriteOutputBuf;
-       last:=s;
-     end;
-  until false;
-  gdb.done;
-  Writeln('End of pascal GDB...');
-end.

+ 0 - 2289
packages/base/imagemagick/Makefile

@@ -1,2289 +0,0 @@
-#
-# Don't edit, this file is generated by FPCMake Version 2.0.0 [2007/11/08]
-#
-default: all
-MAKEFILETARGETS=i386-linux i386-go32v2 i386-win32 i386-os2 i386-freebsd i386-beos i386-netbsd i386-solaris i386-qnx i386-netware i386-openbsd i386-wdosx i386-darwin i386-emx i386-watcom i386-netwlibc i386-wince i386-embedded i386-symbian m68k-linux m68k-freebsd m68k-netbsd m68k-amiga m68k-atari m68k-openbsd m68k-palmos m68k-embedded powerpc-linux powerpc-netbsd powerpc-amiga powerpc-macos powerpc-darwin powerpc-morphos powerpc-embedded sparc-linux sparc-netbsd sparc-solaris sparc-embedded x86_64-linux x86_64-freebsd x86_64-darwin x86_64-win64 x86_64-embedded arm-linux arm-palmos arm-wince arm-gba arm-nds arm-embedded arm-symbian powerpc64-linux powerpc64-darwin powerpc64-embedded
-BSDs = freebsd netbsd openbsd darwin
-UNIXs = linux $(BSDs) solaris qnx
-LIMIT83fs = go32v2 os2 emx watcom
-OSNeedsComspecToRunBatch = go32v2 watcom
-FORCE:
-.PHONY: FORCE
-override PATH:=$(patsubst %/,%,$(subst \,/,$(PATH)))
-ifneq ($(findstring darwin,$(OSTYPE)),)
-inUnix=1 #darwin
-SEARCHPATH:=$(filter-out .,$(subst :, ,$(PATH)))
-else
-ifeq ($(findstring ;,$(PATH)),)
-inUnix=1
-SEARCHPATH:=$(filter-out .,$(subst :, ,$(PATH)))
-else
-SEARCHPATH:=$(subst ;, ,$(PATH))
-endif
-endif
-SEARCHPATH+=$(patsubst %/,%,$(subst \,/,$(dir $(MAKE))))
-PWD:=$(strip $(wildcard $(addsuffix /pwd.exe,$(SEARCHPATH))))
-ifeq ($(PWD),)
-PWD:=$(strip $(wildcard $(addsuffix /pwd,$(SEARCHPATH))))
-ifeq ($(PWD),)
-$(error You need the GNU utils package to use this Makefile)
-else
-PWD:=$(firstword $(PWD))
-SRCEXEEXT=
-endif
-else
-PWD:=$(firstword $(PWD))
-SRCEXEEXT=.exe
-endif
-ifndef inUnix
-ifeq ($(OS),Windows_NT)
-inWinNT=1
-else
-ifdef OS2_SHELL
-inOS2=1
-endif
-endif
-else
-ifneq ($(findstring cygdrive,$(PATH)),)
-inCygWin=1
-endif
-endif
-ifdef inUnix
-SRCBATCHEXT=.sh
-else
-ifdef inOS2
-SRCBATCHEXT=.cmd
-else
-SRCBATCHEXT=.bat
-endif
-endif
-ifdef COMSPEC
-ifneq ($(findstring $(OS_SOURCE),$(OSNeedsComspecToRunBatch)),)
-RUNBATCH=$(COMSPEC) /C
-endif
-endif
-ifdef inUnix
-PATHSEP=/
-else
-PATHSEP:=$(subst /,\,/)
-ifdef inCygWin
-PATHSEP=/
-endif
-endif
-ifdef PWD
-BASEDIR:=$(subst \,/,$(shell $(PWD)))
-ifdef inCygWin
-ifneq ($(findstring /cygdrive/,$(BASEDIR)),)
-BASENODIR:=$(patsubst /cygdrive%,%,$(BASEDIR))
-BASEDRIVE:=$(firstword $(subst /, ,$(BASENODIR)))
-BASEDIR:=$(subst /cygdrive/$(BASEDRIVE)/,$(BASEDRIVE):/,$(BASEDIR))
-endif
-endif
-else
-BASEDIR=.
-endif
-ifdef inOS2
-ifndef ECHO
-ECHO:=$(strip $(wildcard $(addsuffix /gecho$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(ECHO),)
-ECHO:=$(strip $(wildcard $(addsuffix /echo$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(ECHO),)
-ECHO=echo
-else
-ECHO:=$(firstword $(ECHO))
-endif
-else
-ECHO:=$(firstword $(ECHO))
-endif
-endif
-export ECHO
-endif
-override DEFAULT_FPCDIR=../../..
-ifndef FPC
-ifdef PP
-FPC=$(PP)
-endif
-endif
-ifndef FPC
-FPCPROG:=$(strip $(wildcard $(addsuffix /fpc$(SRCEXEEXT),$(SEARCHPATH))))
-ifneq ($(FPCPROG),)
-FPCPROG:=$(firstword $(FPCPROG))
-ifneq ($(CPU_TARGET),)
-FPC:=$(shell $(FPCPROG) -P$(CPU_TARGET) -PB)
-else
-FPC:=$(shell $(FPCPROG) -PB)
-endif
-ifneq ($(findstring Error,$(FPC)),)
-override FPC=$(firstword $(strip $(wildcard $(addsuffix /ppc386$(SRCEXEEXT),$(SEARCHPATH)))))
-endif
-else
-override FPC=$(firstword $(strip $(wildcard $(addsuffix /ppc386$(SRCEXEEXT),$(SEARCHPATH)))))
-endif
-endif
-override FPC:=$(subst $(SRCEXEEXT),,$(FPC))
-override FPC:=$(subst \,/,$(FPC))$(SRCEXEEXT)
-FOUNDFPC:=$(strip $(wildcard $(FPC)))
-ifeq ($(FOUNDFPC),)
-FOUNDFPC=$(strip $(wildcard $(addsuffix /$(FPC),$(SEARCHPATH))))
-ifeq ($(FOUNDFPC),)
-$(error Compiler $(FPC) not found)
-endif
-endif
-ifndef FPC_COMPILERINFO
-FPC_COMPILERINFO:=$(shell $(FPC) -iVSPTPSOTO)
-endif
-ifndef FPC_VERSION
-FPC_VERSION:=$(word 1,$(FPC_COMPILERINFO))
-endif
-export FPC FPC_VERSION FPC_COMPILERINFO
-unexport CHECKDEPEND ALLDEPENDENCIES
-ifndef CPU_TARGET
-ifdef CPU_TARGET_DEFAULT
-CPU_TARGET=$(CPU_TARGET_DEFAULT)
-endif
-endif
-ifndef OS_TARGET
-ifdef OS_TARGET_DEFAULT
-OS_TARGET=$(OS_TARGET_DEFAULT)
-endif
-endif
-ifneq ($(words $(FPC_COMPILERINFO)),5)
-FPC_COMPILERINFO+=$(shell $(FPC) -iSP)
-FPC_COMPILERINFO+=$(shell $(FPC) -iTP)
-FPC_COMPILERINFO+=$(shell $(FPC) -iSO)
-FPC_COMPILERINFO+=$(shell $(FPC) -iTO)
-endif
-ifndef CPU_SOURCE
-CPU_SOURCE:=$(word 2,$(FPC_COMPILERINFO))
-endif
-ifndef CPU_TARGET
-CPU_TARGET:=$(word 3,$(FPC_COMPILERINFO))
-endif
-ifndef OS_SOURCE
-OS_SOURCE:=$(word 4,$(FPC_COMPILERINFO))
-endif
-ifndef OS_TARGET
-OS_TARGET:=$(word 5,$(FPC_COMPILERINFO))
-endif
-FULL_TARGET=$(CPU_TARGET)-$(OS_TARGET)
-FULL_SOURCE=$(CPU_SOURCE)-$(OS_SOURCE)
-ifneq ($(findstring $(OS_SOURCE),$(LIMIT83fs)),)
-TARGETSUFFIX=$(OS_TARGET)
-SOURCESUFFIX=$(OS_SOURCE)
-else
-TARGETSUFFIX=$(FULL_TARGET)
-SOURCESUFFIX=$(FULL_SOURCE)
-endif
-ifneq ($(FULL_TARGET),$(FULL_SOURCE))
-CROSSCOMPILE=1
-endif
-ifeq ($(findstring makefile,$(MAKECMDGOALS)),)
-ifeq ($(findstring $(FULL_TARGET),$(MAKEFILETARGETS)),)
-$(error The Makefile doesn't support target $(FULL_TARGET), please run fpcmake first)
-endif
-endif
-ifneq ($(findstring $(OS_TARGET),$(BSDs)),)
-BSDhier=1
-endif
-ifeq ($(OS_TARGET),linux)
-linuxHier=1
-endif
-export OS_TARGET OS_SOURCE CPU_TARGET CPU_SOURCE FULL_TARGET FULL_SOURCE TARGETSUFFIX SOURCESUFFIX CROSSCOMPILE
-ifdef FPCDIR
-override FPCDIR:=$(subst \,/,$(FPCDIR))
-ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
-override FPCDIR=wrong
-endif
-else
-override FPCDIR=wrong
-endif
-ifdef DEFAULT_FPCDIR
-ifeq ($(FPCDIR),wrong)
-override FPCDIR:=$(subst \,/,$(DEFAULT_FPCDIR))
-ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
-override FPCDIR=wrong
-endif
-endif
-endif
-ifeq ($(FPCDIR),wrong)
-ifdef inUnix
-override FPCDIR=/usr/local/lib/fpc/$(FPC_VERSION)
-ifeq ($(wildcard $(FPCDIR)/units),)
-override FPCDIR=/usr/lib/fpc/$(FPC_VERSION)
-endif
-else
-override FPCDIR:=$(subst /$(FPC),,$(firstword $(strip $(wildcard $(addsuffix /$(FPC),$(SEARCHPATH))))))
-override FPCDIR:=$(FPCDIR)/..
-ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
-override FPCDIR:=$(FPCDIR)/..
-ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
-override FPCDIR:=$(BASEDIR)
-ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
-override FPCDIR=c:/pp
-endif
-endif
-endif
-endif
-endif
-ifndef CROSSBINDIR
-CROSSBINDIR:=$(wildcard $(FPCDIR)/bin/$(TARGETSUFFIX))
-endif
-ifndef BINUTILSPREFIX
-ifndef CROSSBINDIR
-ifdef CROSSCOMPILE
-BINUTILSPREFIX=$(CPU_TARGET)-$(OS_TARGET)-
-endif
-endif
-endif
-UNITSDIR:=$(wildcard $(FPCDIR)/units/$(TARGETSUFFIX))
-ifeq ($(UNITSDIR),)
-UNITSDIR:=$(wildcard $(FPCDIR)/units/$(OS_TARGET))
-endif
-PACKAGESDIR:=$(wildcard $(FPCDIR) $(FPCDIR)/packages $(FPCDIR)/packages/base $(FPCDIR)/packages/extra)
-override PACKAGE_NAME=gtk2
-override PACKAGE_VERSION=2.0.0
-ifeq ($(FULL_TARGET),i386-linux)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),i386-go32v2)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),i386-win32)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),i386-os2)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),i386-freebsd)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),i386-beos)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),i386-netbsd)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),i386-solaris)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),i386-qnx)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),i386-netware)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),i386-openbsd)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),i386-wdosx)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),i386-darwin)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),i386-emx)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),i386-watcom)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),i386-netwlibc)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),i386-wince)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),i386-embedded)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),i386-symbian)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),m68k-linux)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),m68k-freebsd)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),m68k-netbsd)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),m68k-amiga)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),m68k-atari)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),m68k-openbsd)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),m68k-palmos)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),m68k-embedded)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),powerpc-linux)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),powerpc-netbsd)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),powerpc-amiga)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),powerpc-macos)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),powerpc-darwin)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),powerpc-morphos)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),powerpc-embedded)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),sparc-linux)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),sparc-netbsd)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),sparc-solaris)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),sparc-embedded)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),x86_64-linux)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),x86_64-freebsd)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),x86_64-darwin)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),x86_64-win64)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),x86_64-embedded)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),arm-linux)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),arm-palmos)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),arm-wince)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),arm-gba)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),arm-nds)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),arm-embedded)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),arm-symbian)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),powerpc64-linux)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),powerpc64-darwin)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),powerpc64-embedded)
-override TARGET_UNITS+=buildim
-endif
-ifeq ($(FULL_TARGET),i386-linux)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),i386-go32v2)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),i386-win32)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),i386-os2)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),i386-freebsd)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),i386-beos)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),i386-netbsd)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),i386-solaris)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),i386-qnx)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),i386-netware)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),i386-openbsd)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),i386-wdosx)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),i386-darwin)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),i386-emx)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),i386-watcom)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),i386-netwlibc)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),i386-wince)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),i386-embedded)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),i386-symbian)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),m68k-linux)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),m68k-freebsd)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),m68k-netbsd)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),m68k-amiga)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),m68k-atari)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),m68k-openbsd)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),m68k-palmos)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),m68k-embedded)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),powerpc-linux)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),powerpc-netbsd)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),powerpc-amiga)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),powerpc-macos)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),powerpc-darwin)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),powerpc-morphos)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),powerpc-embedded)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),sparc-linux)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),sparc-netbsd)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),sparc-solaris)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),sparc-embedded)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),x86_64-linux)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),x86_64-freebsd)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),x86_64-darwin)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),x86_64-win64)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),x86_64-embedded)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),arm-linux)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),arm-palmos)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),arm-wince)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),arm-gba)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),arm-nds)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),arm-embedded)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),arm-symbian)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),powerpc64-linux)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),powerpc64-darwin)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-ifeq ($(FULL_TARGET),powerpc64-embedded)
-override TARGET_IMPLICITUNITS+=magick_wand imagemagick
-endif
-override INSTALL_BUILDUNIT=buildgtk2
-override INSTALL_FPCPACKAGE=y
-ifeq ($(FULL_TARGET),i386-linux)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),i386-go32v2)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),i386-win32)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),i386-os2)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),i386-freebsd)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),i386-beos)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),i386-netbsd)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),i386-solaris)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),i386-qnx)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),i386-netware)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),i386-openbsd)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),i386-wdosx)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),i386-darwin)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),i386-emx)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),i386-watcom)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),i386-netwlibc)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),i386-wince)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),i386-embedded)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),i386-symbian)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),m68k-linux)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),m68k-freebsd)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),m68k-netbsd)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),m68k-amiga)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),m68k-atari)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),m68k-openbsd)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),m68k-palmos)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),m68k-embedded)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),powerpc-linux)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),powerpc-netbsd)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),powerpc-amiga)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),powerpc-macos)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),powerpc-darwin)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),powerpc-morphos)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),powerpc-embedded)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),sparc-linux)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),sparc-netbsd)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),sparc-solaris)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),sparc-embedded)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),x86_64-linux)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),x86_64-freebsd)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),x86_64-darwin)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),x86_64-win64)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),x86_64-embedded)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),arm-linux)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),arm-palmos)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),arm-wince)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),arm-gba)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),arm-nds)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),arm-embedded)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),arm-symbian)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),powerpc64-linux)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),powerpc64-darwin)
-override COMPILER_UNITDIR+=magick wand
-endif
-ifeq ($(FULL_TARGET),powerpc64-embedded)
-override COMPILER_UNITDIR+=magick wand
-endif
-override SHARED_BUILD=n
-override SHARED_BUILD=n
-ifdef REQUIRE_UNITSDIR
-override UNITSDIR+=$(REQUIRE_UNITSDIR)
-endif
-ifdef REQUIRE_PACKAGESDIR
-override PACKAGESDIR+=$(REQUIRE_PACKAGESDIR)
-endif
-ifdef ZIPINSTALL
-ifneq ($(findstring $(OS_TARGET),$(UNIXs)),)
-UNIXHier=1
-endif
-else
-ifneq ($(findstring $(OS_SOURCE),$(UNIXs)),)
-UNIXHier=1
-endif
-endif
-ifndef INSTALL_PREFIX
-ifdef PREFIX
-INSTALL_PREFIX=$(PREFIX)
-endif
-endif
-ifndef INSTALL_PREFIX
-ifdef UNIXHier
-INSTALL_PREFIX=/usr/local
-else
-ifdef INSTALL_FPCPACKAGE
-INSTALL_BASEDIR:=/pp
-else
-INSTALL_BASEDIR:=/$(PACKAGE_NAME)
-endif
-endif
-endif
-export INSTALL_PREFIX
-ifdef INSTALL_FPCSUBDIR
-export INSTALL_FPCSUBDIR
-endif
-ifndef DIST_DESTDIR
-DIST_DESTDIR:=$(BASEDIR)
-endif
-export DIST_DESTDIR
-ifndef COMPILER_UNITTARGETDIR
-ifdef PACKAGEDIR_MAIN
-COMPILER_UNITTARGETDIR=$(PACKAGEDIR_MAIN)/units/$(TARGETSUFFIX)
-else
-COMPILER_UNITTARGETDIR=units/$(TARGETSUFFIX)
-endif
-endif
-ifndef COMPILER_TARGETDIR
-COMPILER_TARGETDIR=.
-endif
-ifndef INSTALL_BASEDIR
-ifdef UNIXHier
-ifdef INSTALL_FPCPACKAGE
-INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/fpc/$(FPC_VERSION)
-else
-INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/$(PACKAGE_NAME)
-endif
-else
-INSTALL_BASEDIR:=$(INSTALL_PREFIX)
-endif
-endif
-ifndef INSTALL_BINDIR
-ifdef UNIXHier
-INSTALL_BINDIR:=$(INSTALL_PREFIX)/bin
-else
-INSTALL_BINDIR:=$(INSTALL_BASEDIR)/bin
-ifdef INSTALL_FPCPACKAGE
-ifdef CROSSCOMPILE
-ifdef CROSSINSTALL
-INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(SOURCESUFFIX)
-else
-INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX)
-endif
-else
-INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX)
-endif
-endif
-endif
-endif
-ifndef INSTALL_UNITDIR
-INSTALL_UNITDIR:=$(INSTALL_BASEDIR)/units/$(TARGETSUFFIX)
-ifdef INSTALL_FPCPACKAGE
-ifdef PACKAGE_NAME
-INSTALL_UNITDIR:=$(INSTALL_UNITDIR)/$(PACKAGE_NAME)
-endif
-endif
-endif
-ifndef INSTALL_LIBDIR
-ifdef UNIXHier
-INSTALL_LIBDIR:=$(INSTALL_PREFIX)/lib
-else
-INSTALL_LIBDIR:=$(INSTALL_UNITDIR)
-endif
-endif
-ifndef INSTALL_SOURCEDIR
-ifdef UNIXHier
-ifdef BSDhier
-SRCPREFIXDIR=share/src
-else
-ifdef linuxHier
-SRCPREFIXDIR=share/src
-else
-SRCPREFIXDIR=src
-endif
-endif
-ifdef INSTALL_FPCPACKAGE
-ifdef INSTALL_FPCSUBDIR
-INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/fpc-$(FPC_VERSION)/$(INSTALL_FPCSUBDIR)/$(PACKAGE_NAME)
-else
-INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
-endif
-else
-INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
-endif
-else
-ifdef INSTALL_FPCPACKAGE
-ifdef INSTALL_FPCSUBDIR
-INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source/$(INSTALL_FPCSUBDIR)/$(PACKAGE_NAME)
-else
-INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source/$(PACKAGE_NAME)
-endif
-else
-INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source
-endif
-endif
-endif
-ifndef INSTALL_DOCDIR
-ifdef UNIXHier
-ifdef BSDhier
-DOCPREFIXDIR=share/doc
-else
-ifdef linuxHier
-DOCPREFIXDIR=share/doc
-else
-DOCPREFIXDIR=doc
-endif
-endif
-ifdef INSTALL_FPCPACKAGE
-INSTALL_DOCDIR:=$(INSTALL_PREFIX)/$(DOCPREFIXDIR)/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
-else
-INSTALL_DOCDIR:=$(INSTALL_PREFIX)/$(DOCPREFIXDIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
-endif
-else
-ifdef INSTALL_FPCPACKAGE
-INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc/$(PACKAGE_NAME)
-else
-INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc
-endif
-endif
-endif
-ifndef INSTALL_EXAMPLEDIR
-ifdef UNIXHier
-ifdef INSTALL_FPCPACKAGE
-ifdef BSDhier
-INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/share/examples/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
-else
-ifdef linuxHier
-INSTALL_EXAMPLEDIR:=$(INSTALL_DOCDIR)/examples
-else
-INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/fpc-$(FPC_VERSION)/examples/$(PACKAGE_NAME)
-endif
-endif
-else
-ifdef BSDhier
-INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/share/examples/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
-else
-ifdef linuxHier
-INSTALL_EXAMPLEDIR:=$(INSTALL_DOCDIR)/examples/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
-else
-INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
-endif
-endif
-endif
-else
-ifdef INSTALL_FPCPACKAGE
-INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples/$(PACKAGE_NAME)
-else
-INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples
-endif
-endif
-endif
-ifndef INSTALL_DATADIR
-INSTALL_DATADIR=$(INSTALL_BASEDIR)
-endif
-ifndef INSTALL_SHAREDDIR
-INSTALL_SHAREDDIR=$(INSTALL_PREFIX)/lib
-endif
-ifdef CROSSCOMPILE
-ifndef CROSSBINDIR
-CROSSBINDIR:=$(wildcard $(CROSSTARGETDIR)/bin/$(SOURCESUFFIX))
-ifeq ($(CROSSBINDIR),)
-CROSSBINDIR:=$(wildcard $(INSTALL_BASEDIR)/cross/$(TARGETSUFFIX)/bin/$(FULL_SOURCE))
-endif
-endif
-else
-CROSSBINDIR=
-endif
-ifeq ($(OS_SOURCE),linux)
-ifndef GCCLIBDIR
-ifeq ($(CPU_TARGET),i386)
-ifneq ($(findstring x86_64,$(shell uname -a)),)
-ifeq ($(BINUTILSPREFIX),)
-GCCLIBDIR:=$(shell dirname `gcc -m32 -print-libgcc-file-name`)
-endif
-endif
-endif
-ifeq ($(CPU_TARGET),powerpc64)
-ifeq ($(BINUTILSPREFIX),)
-GCCLIBDIR:=$(shell dirname `gcc -m64 -print-libgcc-file-name`)
-endif
-endif
-endif
-ifndef GCCLIBDIR
-CROSSGCC=$(strip $(wildcard $(addsuffix /$(BINUTILSPREFIX)gcc$(SRCEXEEXT),$(SEARCHPATH))))
-ifneq ($(CROSSGCC),)
-GCCLIBDIR:=$(shell dirname `$(CROSSGCC) -print-libgcc-file-name`)
-endif
-endif
-ifndef OTHERLIBDIR
-OTHERLIBDIR:=$(shell grep -v "^\#" /etc/ld.so.conf | awk '{ ORS=" "; print $1 }')
-endif
-endif
-ifdef inUnix
-ifeq ($(OS_SOURCE),netbsd)
-OTHERLIBDIR+=/usr/pkg/lib
-endif
-export GCCLIBDIR OTHERLIB
-endif
-BATCHEXT=.bat
-LOADEREXT=.as
-EXEEXT=.exe
-PPLEXT=.ppl
-PPUEXT=.ppu
-OEXT=.o
-ASMEXT=.s
-SMARTEXT=.sl
-STATICLIBEXT=.a
-SHAREDLIBEXT=.so
-SHAREDLIBPREFIX=libfp
-STATICLIBPREFIX=libp
-IMPORTLIBPREFIX=libimp
-RSTEXT=.rst
-ifeq ($(findstring 1.0.,$(FPC_VERSION)),)
-ifeq ($(OS_TARGET),go32v1)
-STATICLIBPREFIX=
-SHORTSUFFIX=v1
-endif
-ifeq ($(OS_TARGET),go32v2)
-STATICLIBPREFIX=
-SHORTSUFFIX=dos
-endif
-ifeq ($(OS_TARGET),watcom)
-STATICLIBPREFIX=
-OEXT=.obj
-ASMEXT=.asm
-SHAREDLIBEXT=.dll
-SHORTSUFFIX=wat
-endif
-ifeq ($(OS_TARGET),linux)
-BATCHEXT=.sh
-EXEEXT=
-HASSHAREDLIB=1
-SHORTSUFFIX=lnx
-endif
-ifeq ($(OS_TARGET),freebsd)
-BATCHEXT=.sh
-EXEEXT=
-HASSHAREDLIB=1
-SHORTSUFFIX=fbs
-endif
-ifeq ($(OS_TARGET),netbsd)
-BATCHEXT=.sh
-EXEEXT=
-HASSHAREDLIB=1
-SHORTSUFFIX=nbs
-endif
-ifeq ($(OS_TARGET),openbsd)
-BATCHEXT=.sh
-EXEEXT=
-HASSHAREDLIB=1
-SHORTSUFFIX=obs
-endif
-ifeq ($(OS_TARGET),win32)
-SHAREDLIBEXT=.dll
-SHORTSUFFIX=w32
-endif
-ifeq ($(OS_TARGET),os2)
-BATCHEXT=.cmd
-AOUTEXT=.out
-STATICLIBPREFIX=
-SHAREDLIBEXT=.dll
-SHORTSUFFIX=os2
-ECHO=echo
-endif
-ifeq ($(OS_TARGET),emx)
-BATCHEXT=.cmd
-AOUTEXT=.out
-STATICLIBPREFIX=
-SHAREDLIBEXT=.dll
-SHORTSUFFIX=emx
-ECHO=echo
-endif
-ifeq ($(OS_TARGET),amiga)
-EXEEXT=
-SHAREDLIBEXT=.library
-SHORTSUFFIX=amg
-endif
-ifeq ($(OS_TARGET),morphos)
-EXEEXT=
-SHAREDLIBEXT=.library
-SHORTSUFFIX=mos
-endif
-ifeq ($(OS_TARGET),atari)
-EXEEXT=.ttp
-SHORTSUFFIX=ata
-endif
-ifeq ($(OS_TARGET),beos)
-BATCHEXT=.sh
-EXEEXT=
-SHORTSUFFIX=be
-endif
-ifeq ($(OS_TARGET),solaris)
-BATCHEXT=.sh
-EXEEXT=
-SHORTSUFFIX=sun
-endif
-ifeq ($(OS_TARGET),qnx)
-BATCHEXT=.sh
-EXEEXT=
-SHORTSUFFIX=qnx
-endif
-ifeq ($(OS_TARGET),netware)
-EXEEXT=.nlm
-STATICLIBPREFIX=
-SHORTSUFFIX=nw
-endif
-ifeq ($(OS_TARGET),netwlibc)
-EXEEXT=.nlm
-STATICLIBPREFIX=
-SHORTSUFFIX=nwl
-endif
-ifeq ($(OS_TARGET),macos)
-BATCHEXT=
-EXEEXT=
-DEBUGSYMEXT=.xcoff
-SHORTSUFFIX=mac
-endif
-ifeq ($(OS_TARGET),darwin)
-BATCHEXT=.sh
-EXEEXT=
-HASSHAREDLIB=1
-SHORTSUFFIX=dwn
-endif
-ifeq ($(OS_TARGET),gba)
-EXEEXT=.gba
-SHAREDLIBEXT=.so
-SHORTSUFFIX=gba
-endif
-ifeq ($(OS_TARGET),symbian)
-SHAREDLIBEXT=.dll
-SHORTSUFFIX=symbian
-endif
-else
-ifeq ($(OS_TARGET),go32v1)
-PPUEXT=.pp1
-OEXT=.o1
-ASMEXT=.s1
-SMARTEXT=.sl1
-STATICLIBEXT=.a1
-SHAREDLIBEXT=.so1
-STATICLIBPREFIX=
-SHORTSUFFIX=v1
-endif
-ifeq ($(OS_TARGET),go32v2)
-STATICLIBPREFIX=
-SHORTSUFFIX=dos
-endif
-ifeq ($(OS_TARGET),watcom)
-STATICLIBPREFIX=
-SHORTSUFFIX=wat
-endif
-ifeq ($(OS_TARGET),linux)
-BATCHEXT=.sh
-EXEEXT=
-HASSHAREDLIB=1
-SHORTSUFFIX=lnx
-endif
-ifeq ($(OS_TARGET),freebsd)
-BATCHEXT=.sh
-EXEEXT=
-HASSHAREDLIB=1
-SHORTSUFFIX=fbs
-endif
-ifeq ($(OS_TARGET),netbsd)
-BATCHEXT=.sh
-EXEEXT=
-HASSHAREDLIB=1
-SHORTSUFFIX=nbs
-endif
-ifeq ($(OS_TARGET),openbsd)
-BATCHEXT=.sh
-EXEEXT=
-HASSHAREDLIB=1
-SHORTSUFFIX=obs
-endif
-ifeq ($(OS_TARGET),win32)
-PPUEXT=.ppw
-OEXT=.ow
-ASMEXT=.sw
-SMARTEXT=.slw
-STATICLIBEXT=.aw
-SHAREDLIBEXT=.dll
-SHORTSUFFIX=w32
-endif
-ifeq ($(OS_TARGET),os2)
-BATCHEXT=.cmd
-PPUEXT=.ppo
-ASMEXT=.so2
-OEXT=.oo2
-AOUTEXT=.out
-SMARTEXT=.sl2
-STATICLIBPREFIX=
-STATICLIBEXT=.ao2
-SHAREDLIBEXT=.dll
-SHORTSUFFIX=os2
-ECHO=echo
-endif
-ifeq ($(OS_TARGET),amiga)
-EXEEXT=
-PPUEXT=.ppu
-ASMEXT=.s
-OEXT=.o
-SMARTEXT=.sl
-STATICLIBEXT=.a
-SHAREDLIBEXT=.library
-SHORTSUFFIX=amg
-endif
-ifeq ($(OS_TARGET),atari)
-PPUEXT=.ppu
-ASMEXT=.s
-OEXT=.o
-SMARTEXT=.sl
-STATICLIBEXT=.a
-EXEEXT=.ttp
-SHORTSUFFIX=ata
-endif
-ifeq ($(OS_TARGET),beos)
-BATCHEXT=.sh
-PPUEXT=.ppu
-ASMEXT=.s
-OEXT=.o
-SMARTEXT=.sl
-STATICLIBEXT=.a
-EXEEXT=
-SHORTSUFFIX=be
-endif
-ifeq ($(OS_TARGET),solaris)
-BATCHEXT=.sh
-PPUEXT=.ppu
-ASMEXT=.s
-OEXT=.o
-SMARTEXT=.sl
-STATICLIBEXT=.a
-EXEEXT=
-SHORTSUFFIX=sun
-endif
-ifeq ($(OS_TARGET),qnx)
-BATCHEXT=.sh
-PPUEXT=.ppu
-ASMEXT=.s
-OEXT=.o
-SMARTEXT=.sl
-STATICLIBEXT=.a
-EXEEXT=
-SHORTSUFFIX=qnx
-endif
-ifeq ($(OS_TARGET),netware)
-STATICLIBPREFIX=
-PPUEXT=.ppu
-OEXT=.o
-ASMEXT=.s
-SMARTEXT=.sl
-STATICLIBEXT=.a
-SHAREDLIBEXT=.nlm
-EXEEXT=.nlm
-SHORTSUFFIX=nw
-endif
-ifeq ($(OS_TARGET),netwlibc)
-STATICLIBPREFIX=
-PPUEXT=.ppu
-OEXT=.o
-ASMEXT=.s
-SMARTEXT=.sl
-STATICLIBEXT=.a
-SHAREDLIBEXT=.nlm
-EXEEXT=.nlm
-SHORTSUFFIX=nwl
-endif
-ifeq ($(OS_TARGET),macos)
-BATCHEXT=
-PPUEXT=.ppu
-ASMEXT=.s
-OEXT=.o
-SMARTEXT=.sl
-STATICLIBEXT=.a
-EXEEXT=
-DEBUGSYMEXT=.xcoff
-SHORTSUFFIX=mac
-endif
-endif
-ifneq ($(findstring $(OS_SOURCE),$(LIMIT83fs)),)
-FPCMADE=fpcmade.$(SHORTSUFFIX)
-ZIPSUFFIX=$(SHORTSUFFIX)
-ZIPCROSSPREFIX=
-ZIPSOURCESUFFIX=src
-ZIPEXAMPLESUFFIX=exm
-else
-FPCMADE=fpcmade.$(TARGETSUFFIX)
-ZIPSOURCESUFFIX=.source
-ZIPEXAMPLESUFFIX=.examples
-ifdef CROSSCOMPILE
-ZIPSUFFIX=.$(SOURCESUFFIX)
-ZIPCROSSPREFIX=$(TARGETSUFFIX)-
-else
-ZIPSUFFIX=.$(TARGETSUFFIX)
-ZIPCROSSPREFIX=
-endif
-endif
-ifndef ECHO
-ECHO:=$(strip $(wildcard $(addsuffix /gecho$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(ECHO),)
-ECHO:=$(strip $(wildcard $(addsuffix /echo$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(ECHO),)
-ECHO= __missing_command_ECHO
-else
-ECHO:=$(firstword $(ECHO))
-endif
-else
-ECHO:=$(firstword $(ECHO))
-endif
-endif
-export ECHO
-ifndef DATE
-DATE:=$(strip $(wildcard $(addsuffix /gdate$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(DATE),)
-DATE:=$(strip $(wildcard $(addsuffix /date$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(DATE),)
-DATE= __missing_command_DATE
-else
-DATE:=$(firstword $(DATE))
-endif
-else
-DATE:=$(firstword $(DATE))
-endif
-endif
-export DATE
-ifndef GINSTALL
-GINSTALL:=$(strip $(wildcard $(addsuffix /ginstall$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(GINSTALL),)
-GINSTALL:=$(strip $(wildcard $(addsuffix /install$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(GINSTALL),)
-GINSTALL= __missing_command_GINSTALL
-else
-GINSTALL:=$(firstword $(GINSTALL))
-endif
-else
-GINSTALL:=$(firstword $(GINSTALL))
-endif
-endif
-export GINSTALL
-ifndef CPPROG
-CPPROG:=$(strip $(wildcard $(addsuffix /cp$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(CPPROG),)
-CPPROG= __missing_command_CPPROG
-else
-CPPROG:=$(firstword $(CPPROG))
-endif
-endif
-export CPPROG
-ifndef RMPROG
-RMPROG:=$(strip $(wildcard $(addsuffix /rm$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(RMPROG),)
-RMPROG= __missing_command_RMPROG
-else
-RMPROG:=$(firstword $(RMPROG))
-endif
-endif
-export RMPROG
-ifndef MVPROG
-MVPROG:=$(strip $(wildcard $(addsuffix /mv$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(MVPROG),)
-MVPROG= __missing_command_MVPROG
-else
-MVPROG:=$(firstword $(MVPROG))
-endif
-endif
-export MVPROG
-ifndef MKDIRPROG
-MKDIRPROG:=$(strip $(wildcard $(addsuffix /gmkdir$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(MKDIRPROG),)
-MKDIRPROG:=$(strip $(wildcard $(addsuffix /mkdir$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(MKDIRPROG),)
-MKDIRPROG= __missing_command_MKDIRPROG
-else
-MKDIRPROG:=$(firstword $(MKDIRPROG))
-endif
-else
-MKDIRPROG:=$(firstword $(MKDIRPROG))
-endif
-endif
-export MKDIRPROG
-ifndef ECHOREDIR
-ifndef inUnix
-ECHOREDIR=echo
-else
-ECHOREDIR=$(ECHO)
-endif
-endif
-ifndef COPY
-COPY:=$(CPPROG) -fp
-endif
-ifndef COPYTREE
-COPYTREE:=$(CPPROG) -Rfp
-endif
-ifndef MKDIRTREE
-MKDIRTREE:=$(MKDIRPROG) -p
-endif
-ifndef MOVE
-MOVE:=$(MVPROG) -f
-endif
-ifndef DEL
-DEL:=$(RMPROG) -f
-endif
-ifndef DELTREE
-DELTREE:=$(RMPROG) -rf
-endif
-ifndef INSTALL
-ifdef inUnix
-INSTALL:=$(GINSTALL) -c -m 644
-else
-INSTALL:=$(COPY)
-endif
-endif
-ifndef INSTALLEXE
-ifdef inUnix
-INSTALLEXE:=$(GINSTALL) -c -m 755
-else
-INSTALLEXE:=$(COPY)
-endif
-endif
-ifndef MKDIR
-MKDIR:=$(GINSTALL) -m 755 -d
-endif
-export ECHOREDIR COPY COPYTREE MOVE DEL DELTREE INSTALL INSTALLEXE MKDIR
-ifndef PPUMOVE
-PPUMOVE:=$(strip $(wildcard $(addsuffix /ppumove$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(PPUMOVE),)
-PPUMOVE= __missing_command_PPUMOVE
-else
-PPUMOVE:=$(firstword $(PPUMOVE))
-endif
-endif
-export PPUMOVE
-ifndef FPCMAKE
-FPCMAKE:=$(strip $(wildcard $(addsuffix /fpcmake$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(FPCMAKE),)
-FPCMAKE= __missing_command_FPCMAKE
-else
-FPCMAKE:=$(firstword $(FPCMAKE))
-endif
-endif
-export FPCMAKE
-ifndef ZIPPROG
-ZIPPROG:=$(strip $(wildcard $(addsuffix /zip$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(ZIPPROG),)
-ZIPPROG= __missing_command_ZIPPROG
-else
-ZIPPROG:=$(firstword $(ZIPPROG))
-endif
-endif
-export ZIPPROG
-ifndef TARPROG
-TARPROG:=$(strip $(wildcard $(addsuffix /gtar$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(TARPROG),)
-TARPROG:=$(strip $(wildcard $(addsuffix /tar$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(TARPROG),)
-TARPROG= __missing_command_TARPROG
-else
-TARPROG:=$(firstword $(TARPROG))
-endif
-else
-TARPROG:=$(firstword $(TARPROG))
-endif
-endif
-export TARPROG
-ASNAME=$(BINUTILSPREFIX)as
-LDNAME=$(BINUTILSPREFIX)ld
-ARNAME=$(BINUTILSPREFIX)ar
-RCNAME=$(BINUTILSPREFIX)rc
-ifneq ($(findstring 1.0.,$(FPC_VERSION)),)
-ifeq ($(OS_TARGET),win32)
-ifeq ($(CROSSBINDIR),)
-ASNAME=asw
-LDNAME=ldw
-ARNAME=arw
-endif
-endif
-endif
-ifndef ASPROG
-ifdef CROSSBINDIR
-ASPROG=$(CROSSBINDIR)/$(ASNAME)$(SRCEXEEXT)
-else
-ASPROG=$(ASNAME)
-endif
-endif
-ifndef LDPROG
-ifdef CROSSBINDIR
-LDPROG=$(CROSSBINDIR)/$(LDNAME)$(SRCEXEEXT)
-else
-LDPROG=$(LDNAME)
-endif
-endif
-ifndef RCPROG
-ifdef CROSSBINDIR
-RCPROG=$(CROSSBINDIR)/$(RCNAME)$(SRCEXEEXT)
-else
-RCPROG=$(RCNAME)
-endif
-endif
-ifndef ARPROG
-ifdef CROSSBINDIR
-ARPROG=$(CROSSBINDIR)/$(ARNAME)$(SRCEXEEXT)
-else
-ARPROG=$(ARNAME)
-endif
-endif
-AS=$(ASPROG)
-LD=$(LDPROG)
-RC=$(RCPROG)
-AR=$(ARPROG)
-PPAS=ppas$(SRCBATCHEXT)
-ifdef inUnix
-LDCONFIG=ldconfig
-else
-LDCONFIG=
-endif
-ifdef DATE
-DATESTR:=$(shell $(DATE) +%Y%m%d)
-else
-DATESTR=
-endif
-ifndef UPXPROG
-ifeq ($(OS_TARGET),go32v2)
-UPXPROG:=1
-endif
-ifeq ($(OS_TARGET),win32)
-UPXPROG:=1
-endif
-ifdef UPXPROG
-UPXPROG:=$(strip $(wildcard $(addsuffix /upx$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(UPXPROG),)
-UPXPROG=
-else
-UPXPROG:=$(firstword $(UPXPROG))
-endif
-else
-UPXPROG=
-endif
-endif
-export UPXPROG
-ZIPOPT=-9
-ZIPEXT=.zip
-ifeq ($(USETAR),bz2)
-TAROPT=vj
-TAREXT=.tar.bz2
-else
-TAROPT=vz
-TAREXT=.tar.gz
-endif
-override REQUIRE_PACKAGES=rtl 
-ifeq ($(FULL_TARGET),i386-linux)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),i386-go32v2)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),i386-win32)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),i386-os2)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),i386-freebsd)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),i386-beos)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),i386-netbsd)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),i386-solaris)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),i386-qnx)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),i386-netware)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),i386-openbsd)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),i386-wdosx)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),i386-darwin)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),i386-emx)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),i386-watcom)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),i386-netwlibc)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),i386-wince)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),i386-embedded)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),i386-symbian)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),m68k-linux)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),m68k-freebsd)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),m68k-netbsd)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),m68k-amiga)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),m68k-atari)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),m68k-openbsd)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),m68k-palmos)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),m68k-embedded)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),powerpc-linux)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),powerpc-netbsd)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),powerpc-amiga)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),powerpc-macos)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),powerpc-darwin)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),powerpc-morphos)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),powerpc-embedded)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),sparc-linux)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),sparc-netbsd)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),sparc-solaris)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),sparc-embedded)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),x86_64-linux)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),x86_64-freebsd)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),x86_64-darwin)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),x86_64-win64)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),x86_64-embedded)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),arm-linux)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),arm-palmos)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),arm-wince)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),arm-gba)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),arm-nds)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),arm-embedded)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),arm-symbian)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),powerpc64-linux)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),powerpc64-darwin)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifeq ($(FULL_TARGET),powerpc64-embedded)
-REQUIRE_PACKAGES_RTL=1
-endif
-ifdef REQUIRE_PACKAGES_RTL
-PACKAGEDIR_RTL:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /rtl/Makefile.fpc,$(PACKAGESDIR))))))
-ifneq ($(PACKAGEDIR_RTL),)
-ifneq ($(wildcard $(PACKAGEDIR_RTL)/units/$(TARGETSUFFIX)),)
-UNITDIR_RTL=$(PACKAGEDIR_RTL)/units/$(TARGETSUFFIX)
-else
-UNITDIR_RTL=$(PACKAGEDIR_RTL)
-endif
-ifdef CHECKDEPEND
-$(PACKAGEDIR_RTL)/$(FPCMADE):
-	$(MAKE) -C $(PACKAGEDIR_RTL) $(FPCMADE)
-override ALLDEPENDENCIES+=$(PACKAGEDIR_RTL)/$(FPCMADE)
-endif
-else
-PACKAGEDIR_RTL=
-UNITDIR_RTL:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /rtl/Package.fpc,$(UNITSDIR)))))
-ifneq ($(UNITDIR_RTL),)
-UNITDIR_RTL:=$(firstword $(UNITDIR_RTL))
-else
-UNITDIR_RTL=
-endif
-endif
-ifdef UNITDIR_RTL
-override COMPILER_UNITDIR+=$(UNITDIR_RTL)
-endif
-endif
-ifndef NOCPUDEF
-override FPCOPTDEF=$(CPU_TARGET)
-endif
-ifneq ($(OS_TARGET),$(OS_SOURCE))
-override FPCOPT+=-T$(OS_TARGET)
-endif
-ifneq ($(CPU_TARGET),$(CPU_SOURCE))
-override FPCOPT+=-P$(CPU_TARGET)
-endif
-ifeq ($(OS_SOURCE),openbsd)
-override FPCOPT+=-FD$(NEW_BINUTILS_PATH)
-endif
-ifndef CROSSBOOTSTRAP
-ifneq ($(BINUTILSPREFIX),)
-override FPCOPT+=-XP$(BINUTILSPREFIX)
-endif
-ifneq ($(BINUTILSPREFIX),)
-override FPCOPT+=-Xr$(RLINKPATH)
-endif
-endif
-ifdef UNITDIR
-override FPCOPT+=$(addprefix -Fu,$(UNITDIR))
-endif
-ifdef LIBDIR
-override FPCOPT+=$(addprefix -Fl,$(LIBDIR))
-endif
-ifdef OBJDIR
-override FPCOPT+=$(addprefix -Fo,$(OBJDIR))
-endif
-ifdef INCDIR
-override FPCOPT+=$(addprefix -Fi,$(INCDIR))
-endif
-ifdef LINKSMART
-override FPCOPT+=-XX
-endif
-ifdef CREATESMART
-override FPCOPT+=-CX
-endif
-ifdef DEBUG
-override FPCOPT+=-gl
-override FPCOPTDEF+=DEBUG
-endif
-ifdef RELEASE
-ifneq ($(findstring 2.0.,$(FPC_VERSION)),)
-ifeq ($(CPU_TARGET),i386)
-FPCCPUOPT:=-OG2p3
-endif
-ifeq ($(CPU_TARGET),powerpc)
-FPCCPUOPT:=-O1r
-endif
-else
-FPCCPUOPT:=-O2
-endif
-override FPCOPT+=-Ur -Xs $(FPCCPUOPT) -n
-override FPCOPTDEF+=RELEASE
-endif
-ifdef STRIP
-override FPCOPT+=-Xs
-endif
-ifdef OPTIMIZE
-override FPCOPT+=-O2
-endif
-ifdef VERBOSE
-override FPCOPT+=-vwni
-endif
-ifdef COMPILER_OPTIONS
-override FPCOPT+=$(COMPILER_OPTIONS)
-endif
-ifdef COMPILER_UNITDIR
-override FPCOPT+=$(addprefix -Fu,$(COMPILER_UNITDIR))
-endif
-ifdef COMPILER_LIBRARYDIR
-override FPCOPT+=$(addprefix -Fl,$(COMPILER_LIBRARYDIR))
-endif
-ifdef COMPILER_OBJECTDIR
-override FPCOPT+=$(addprefix -Fo,$(COMPILER_OBJECTDIR))
-endif
-ifdef COMPILER_INCLUDEDIR
-override FPCOPT+=$(addprefix -Fi,$(COMPILER_INCLUDEDIR))
-endif
-ifdef CROSSBINDIR
-override FPCOPT+=-FD$(CROSSBINDIR)
-endif
-ifdef COMPILER_TARGETDIR
-override FPCOPT+=-FE$(COMPILER_TARGETDIR)
-ifeq ($(COMPILER_TARGETDIR),.)
-override TARGETDIRPREFIX=
-else
-override TARGETDIRPREFIX=$(COMPILER_TARGETDIR)/
-endif
-endif
-ifdef COMPILER_UNITTARGETDIR
-override FPCOPT+=-FU$(COMPILER_UNITTARGETDIR)
-ifeq ($(COMPILER_UNITTARGETDIR),.)
-override UNITTARGETDIRPREFIX=
-else
-override UNITTARGETDIRPREFIX=$(COMPILER_UNITTARGETDIR)/
-endif
-else
-ifdef COMPILER_TARGETDIR
-override COMPILER_UNITTARGETDIR=$(COMPILER_TARGETDIR)
-override UNITTARGETDIRPREFIX=$(TARGETDIRPREFIX)
-endif
-endif
-ifdef CREATESHARED
-override FPCOPT+=-Cg
-ifeq ($(CPU_TARGET),i386)
-override FPCOPT+=-Aas
-endif
-endif
-ifeq ($(findstring 2.0.,$(FPC_VERSION)),)
-ifeq ($(OS_TARGET),linux)
-ifeq ($(CPU_TARGET),x86_64)
-override FPCOPT+=-Cg
-endif
-endif
-endif
-ifdef LINKSHARED
-endif
-ifdef GCCLIBDIR
-override FPCOPT+=-Fl$(GCCLIBDIR)
-endif
-ifdef OTHERLIBDIR
-override FPCOPT+=$(addprefix -Fl,$(OTHERLIBDIR))
-endif
-ifdef OPT
-override FPCOPT+=$(OPT)
-endif
-ifdef FPCOPTDEF
-override FPCOPT+=$(addprefix -d,$(FPCOPTDEF))
-endif
-ifdef CFGFILE
-override FPCOPT+=@$(CFGFILE)
-endif
-ifdef USEENV
-override FPCEXTCMD:=$(FPCOPT)
-override FPCOPT:=!FPCEXTCMD
-export FPCEXTCMD
-endif
-override AFULL_TARGET=$(CPU_TARGET)-$(OS_TARGET)
-override AFULL_SOURCE=$(CPU_SOURCE)-$(OS_SOURCE)
-ifneq ($(AFULL_TARGET),$(AFULL_SOURCE))
-override ACROSSCOMPILE=1
-endif
-ifdef ACROSSCOMPILE
-override FPCOPT+=$(CROSSOPT)
-endif
-override COMPILER:=$(FPC) $(FPCOPT)
-ifeq (,$(findstring -s ,$(COMPILER)))
-EXECPPAS=
-else
-ifeq ($(FULL_SOURCE),$(FULL_TARGET))
-ifdef RUNBATCH
-EXECPPAS:=@$(RUNBATCH) $(PPAS)
-else
-EXECPPAS:=@$(PPAS)
-endif
-endif
-endif
-.PHONY: fpc_units
-ifneq ($(TARGET_UNITS),)
-override ALLTARGET+=fpc_units
-override UNITPPUFILES=$(addsuffix $(PPUEXT),$(TARGET_UNITS))
-override IMPLICITUNITPPUFILES=$(addsuffix $(PPUEXT),$(TARGET_IMPLICITUNITS))
-override INSTALLPPUFILES+=$(UNITPPUFILES) $(IMPLICITUNITPPUFILES)
-override CLEANPPUFILES+=$(UNITPPUFILES) $(IMPLICITUNITPPUFILES)
-endif
-fpc_units: $(COMPILER_UNITTARGETDIR) $(UNITPPUFILES)
-ifdef TARGET_RSTS
-override RSTFILES=$(addsuffix $(RSTEXT),$(TARGET_RSTS))
-override CLEANRSTFILES+=$(RSTFILES)
-endif
-.PHONY: fpc_all fpc_smart fpc_debug fpc_release fpc_shared
-$(FPCMADE): $(ALLDEPENDENCIES) $(ALLTARGET)
-	@$(ECHOREDIR) Compiled > $(FPCMADE)
-fpc_all: $(FPCMADE)
-fpc_smart:
-	$(MAKE) all LINKSMART=1 CREATESMART=1
-fpc_debug:
-	$(MAKE) all DEBUG=1
-fpc_release:
-	$(MAKE) all RELEASE=1
-.SUFFIXES: $(EXEEXT) $(PPUEXT) $(OEXT) .pas .lpr .dpr .pp .rc .res
-$(COMPILER_UNITTARGETDIR):
-	$(MKDIRTREE) $(COMPILER_UNITTARGETDIR)
-$(COMPILER_TARGETDIR):
-	$(MKDIRTREE) $(COMPILER_TARGETDIR)
-%$(PPUEXT): %.pp
-	$(COMPILER) $<
-	$(EXECPPAS)
-%$(PPUEXT): %.pas
-	$(COMPILER) $<
-	$(EXECPPAS)
-%$(EXEEXT): %.pp
-	$(COMPILER) $<
-	$(EXECPPAS)
-%$(EXEEXT): %.pas
-	$(COMPILER) $<
-	$(EXECPPAS)
-%$(EXEEXT): %.lpr
-	$(COMPILER) $<
-	$(EXECPPAS)
-%$(EXEEXT): %.dpr
-	$(COMPILER) $<
-	$(EXECPPAS)
-%.res: %.rc
-	windres -i $< -o $@
-vpath %.pp $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
-vpath %.pas $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
-vpath %.lpr $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
-vpath %.dpr $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
-vpath %.inc $(COMPILER_INCLUDEDIR)
-vpath %$(OEXT) $(COMPILER_UNITTARGETDIR)
-vpath %$(PPUEXT) $(COMPILER_UNITTARGETDIR)
-.PHONY: fpc_shared
-override INSTALLTARGET+=fpc_shared_install
-ifndef SHARED_LIBVERSION
-SHARED_LIBVERSION=$(FPC_VERSION)
-endif
-ifndef SHARED_LIBNAME
-SHARED_LIBNAME=$(PACKAGE_NAME)
-endif
-ifndef SHARED_FULLNAME
-SHARED_FULLNAME=$(SHAREDLIBPREFIX)$(SHARED_LIBNAME)-$(SHARED_LIBVERSION)$(SHAREDLIBEXT)
-endif
-ifndef SHARED_LIBUNITS
-SHARED_LIBUNITS:=$(TARGET_UNITS) $(TARGET_IMPLICITUNITS)
-override SHARED_LIBUNITS:=$(filter-out $(INSTALL_BUILDUNIT),$(SHARED_LIBUNITS))
-endif
-fpc_shared:
-ifdef HASSHAREDLIB
-	$(MAKE) all CREATESHARED=1 LINKSHARED=1 CREATESMART=1
-ifneq ($(SHARED_BUILD),n)
-	$(PPUMOVE) -q $(SHARED_LIBUNITS) -i$(COMPILER_UNITTARGETDIR) -o$(SHARED_FULLNAME) -d$(COMPILER_UNITTARGETDIR)
-endif
-else
-	@$(ECHO) Shared Libraries not supported
-endif
-fpc_shared_install:
-ifneq ($(SHARED_BUILD),n)
-ifneq ($(SHARED_LIBUNITS),)
-ifneq ($(wildcard $(COMPILER_UNITTARGETDIR)/$(SHARED_FULLNAME)),)
-	$(INSTALL) $(COMPILER_UNITTARGETDIR)/$(SHARED_FULLNAME) $(INSTALL_SHAREDDIR)
-endif
-endif
-endif
-.PHONY: fpc_install fpc_sourceinstall fpc_exampleinstall
-ifdef INSTALL_UNITS
-override INSTALLPPUFILES+=$(addsuffix $(PPUEXT),$(INSTALL_UNITS))
-endif
-ifdef INSTALL_BUILDUNIT
-override INSTALLPPUFILES:=$(filter-out $(INSTALL_BUILDUNIT)$(PPUEXT),$(INSTALLPPUFILES))
-endif
-ifdef INSTALLPPUFILES
-override INSTALLPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(INSTALLPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(INSTALLPPUFILES))) $(addprefix $(IMPORTLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(INSTALLPPUFILES)))
-ifneq ($(UNITTARGETDIRPREFIX),)
-override INSTALLPPUFILES:=$(addprefix $(UNITTARGETDIRPREFIX),$(notdir $(INSTALLPPUFILES)))
-override INSTALLPPULINKFILES:=$(wildcard $(addprefix $(UNITTARGETDIRPREFIX),$(notdir $(INSTALLPPULINKFILES))))
-endif
-override INSTALL_CREATEPACKAGEFPC=1
-endif
-ifdef INSTALLEXEFILES
-ifneq ($(TARGETDIRPREFIX),)
-override INSTALLEXEFILES:=$(addprefix $(TARGETDIRPREFIX),$(notdir $(INSTALLEXEFILES)))
-endif
-endif
-fpc_install: all $(INSTALLTARGET)
-ifdef INSTALLEXEFILES
-	$(MKDIR) $(INSTALL_BINDIR)
-ifdef UPXPROG
-	-$(UPXPROG) $(INSTALLEXEFILES)
-endif
-	$(INSTALLEXE) $(INSTALLEXEFILES) $(INSTALL_BINDIR)
-endif
-ifdef INSTALL_CREATEPACKAGEFPC
-ifdef FPCMAKE
-ifdef PACKAGE_VERSION
-ifneq ($(wildcard Makefile.fpc),)
-	$(FPCMAKE) -p -T$(CPU_TARGET)-$(OS_TARGET) Makefile.fpc
-	$(MKDIR) $(INSTALL_UNITDIR)
-	$(INSTALL) Package.fpc $(INSTALL_UNITDIR)
-endif
-endif
-endif
-endif
-ifdef INSTALLPPUFILES
-	$(MKDIR) $(INSTALL_UNITDIR)
-	$(INSTALL) $(INSTALLPPUFILES) $(INSTALL_UNITDIR)
-ifneq ($(INSTALLPPULINKFILES),)
-	$(INSTALL) $(INSTALLPPULINKFILES) $(INSTALL_UNITDIR)
-endif
-ifneq ($(wildcard $(LIB_FULLNAME)),)
-	$(MKDIR) $(INSTALL_LIBDIR)
-	$(INSTALL) $(LIB_FULLNAME) $(INSTALL_LIBDIR)
-ifdef inUnix
-	ln -sf $(LIB_FULLNAME) $(INSTALL_LIBDIR)/$(LIB_NAME)
-endif
-endif
-endif
-ifdef INSTALL_FILES
-	$(MKDIR) $(INSTALL_DATADIR)
-	$(INSTALL) $(INSTALL_FILES) $(INSTALL_DATADIR)
-endif
-fpc_sourceinstall: distclean
-	$(MKDIR) $(INSTALL_SOURCEDIR)
-	$(COPYTREE) $(BASEDIR)/* $(INSTALL_SOURCEDIR)
-fpc_exampleinstall: $(addsuffix _distclean,$(TARGET_EXAMPLEDIRS))
-ifdef HASEXAMPLES
-	$(MKDIR) $(INSTALL_EXAMPLEDIR)
-endif
-ifdef EXAMPLESOURCEFILES
-	$(COPY) $(EXAMPLESOURCEFILES) $(INSTALL_EXAMPLEDIR)
-endif
-ifdef TARGET_EXAMPLEDIRS
-	$(COPYTREE) $(addsuffix /*,$(TARGET_EXAMPLEDIRS)) $(INSTALL_EXAMPLEDIR)
-endif
-.PHONY: fpc_distinstall
-fpc_distinstall: install exampleinstall
-.PHONY: fpc_zipinstall fpc_zipsourceinstall fpc_zipexampleinstall
-ifndef PACKDIR
-ifndef inUnix
-PACKDIR=$(BASEDIR)/../fpc-pack
-else
-PACKDIR=/tmp/fpc-pack
-endif
-endif
-ifndef ZIPNAME
-ifdef DIST_ZIPNAME
-ZIPNAME=$(DIST_ZIPNAME)
-else
-ZIPNAME=$(PACKAGE_NAME)
-endif
-endif
-ifndef FULLZIPNAME
-FULLZIPNAME=$(ZIPCROSSPREFIX)$(ZIPPREFIX)$(ZIPNAME)$(ZIPSUFFIX)
-endif
-ifndef ZIPTARGET
-ifdef DIST_ZIPTARGET
-ZIPTARGET=DIST_ZIPTARGET
-else
-ZIPTARGET=install
-endif
-endif
-ifndef USEZIP
-ifdef inUnix
-USETAR=1
-endif
-endif
-ifndef inUnix
-USEZIPWRAPPER=1
-endif
-ifdef USEZIPWRAPPER
-ZIPPATHSEP=$(PATHSEP)
-ZIPWRAPPER=$(subst /,$(PATHSEP),$(DIST_DESTDIR)/fpczip$(SRCBATCHEXT))
-else
-ZIPPATHSEP=/
-endif
-ZIPCMD_CDPACK:=cd $(subst /,$(ZIPPATHSEP),$(PACKDIR))
-ZIPCMD_CDBASE:=cd $(subst /,$(ZIPPATHSEP),$(BASEDIR))
-ifdef USETAR
-ZIPDESTFILE:=$(DIST_DESTDIR)/$(FULLZIPNAME)$(TAREXT)
-ZIPCMD_ZIP:=$(TARPROG) cf$(TAROPT) $(ZIPDESTFILE) *
-else
-ZIPDESTFILE:=$(DIST_DESTDIR)/$(FULLZIPNAME)$(ZIPEXT)
-ZIPCMD_ZIP:=$(subst /,$(ZIPPATHSEP),$(ZIPPROG)) -Dr $(ZIPOPT) $(ZIPDESTFILE) *
-endif
-fpc_zipinstall:
-	$(MAKE) $(ZIPTARGET) INSTALL_PREFIX=$(PACKDIR) ZIPINSTALL=1
-	$(MKDIR) $(DIST_DESTDIR)
-	$(DEL) $(ZIPDESTFILE)
-ifdef USEZIPWRAPPER
-ifneq ($(ECHOREDIR),echo)
-	$(ECHOREDIR) -e "$(subst \,\\,$(ZIPCMD_CDPACK))" > $(ZIPWRAPPER)
-	$(ECHOREDIR) -e "$(subst \,\\,$(ZIPCMD_ZIP))" >> $(ZIPWRAPPER)
-	$(ECHOREDIR) -e "$(subst \,\\,$(ZIPCMD_CDBASE))" >> $(ZIPWRAPPER)
-else
-	echo $(ZIPCMD_CDPACK) > $(ZIPWRAPPER)
-	echo $(ZIPCMD_ZIP) >> $(ZIPWRAPPER)
-	echo $(ZIPCMD_CDBASE) >> $(ZIPWRAPPER)
-endif
-ifdef inUnix
-	/bin/sh $(ZIPWRAPPER)
-else
-ifdef RUNBATCH
-	$(RUNBATCH) (ZIPWRAPPER)
-else
-	$(ZIPWRAPPER)
-endif
-endif
-	$(DEL) $(ZIPWRAPPER)
-else
-	$(ZIPCMD_CDPACK) ; $(ZIPCMD_ZIP) ; $(ZIPCMD_CDBASE)
-endif
-	$(DELTREE) $(PACKDIR)
-fpc_zipsourceinstall:
-	$(MAKE) fpc_zipinstall ZIPTARGET=sourceinstall ZIPSUFFIX=$(ZIPSOURCESUFFIX)
-fpc_zipexampleinstall:
-ifdef HASEXAMPLES
-	$(MAKE) fpc_zipinstall ZIPTARGET=exampleinstall ZIPSUFFIX=$(ZIPEXAMPLESUFFIX)
-endif
-fpc_zipdistinstall:
-	$(MAKE) fpc_zipinstall ZIPTARGET=distinstall
-.PHONY: fpc_clean fpc_cleanall fpc_distclean
-ifdef EXEFILES
-override CLEANEXEFILES:=$(addprefix $(TARGETDIRPREFIX),$(CLEANEXEFILES))
-endif
-ifdef CLEAN_UNITS
-override CLEANPPUFILES+=$(addsuffix $(PPUEXT),$(CLEAN_UNITS))
-endif
-ifdef CLEANPPUFILES
-override CLEANPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(CLEANPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(CLEANPPUFILES))) $(addprefix $(IMPORTLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(CLEANPPUFILES)))
-ifdef DEBUGSYMEXT
-override CLEANPPULINKFILES+=$(subst $(PPUEXT),$(DEBUGSYMEXT),$(CLEANPPUFILES))
-endif
-override CLEANPPUFILES:=$(addprefix $(UNITTARGETDIRPREFIX),$(CLEANPPUFILES))
-override CLEANPPULINKFILES:=$(wildcard $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANPPULINKFILES)))
-endif
-fpc_clean: $(CLEANTARGET)
-ifdef CLEANEXEFILES
-	-$(DEL) $(CLEANEXEFILES)
-endif
-ifdef CLEANPPUFILES
-	-$(DEL) $(CLEANPPUFILES)
-endif
-ifneq ($(CLEANPPULINKFILES),)
-	-$(DEL) $(CLEANPPULINKFILES)
-endif
-ifdef CLEANRSTFILES
-	-$(DEL) $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANRSTFILES))
-endif
-ifdef CLEAN_FILES
-	-$(DEL) $(CLEAN_FILES)
-endif
-ifdef LIB_NAME
-	-$(DEL) $(LIB_NAME) $(LIB_FULLNAME)
-endif
-	-$(DEL) $(FPCMADE) Package.fpc $(PPAS) script.res link.res $(FPCEXTFILE) $(REDIRFILE)
-	-$(DEL) *$(ASMEXT) *_ppas$(BATCHEXT)
-fpc_cleanall: $(CLEANTARGET)
-ifdef CLEANEXEFILES
-	-$(DEL) $(CLEANEXEFILES)
-endif
-ifdef COMPILER_UNITTARGETDIR
-ifdef CLEANPPUFILES
-	-$(DEL) $(CLEANPPUFILES)
-endif
-ifneq ($(CLEANPPULINKFILES),)
-	-$(DEL) $(CLEANPPULINKFILES)
-endif
-ifdef CLEANRSTFILES
-	-$(DEL) $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANRSTFILES))
-endif
-endif
-	-$(DELTREE) units
-	-$(DEL) *$(OEXT) *$(PPUEXT) *$(RSTEXT) *$(ASMEXT) *$(STATICLIBEXT) *$(SHAREDLIBEXT) *$(PPLEXT)
-ifneq ($(PPUEXT),.ppu)
-	-$(DEL) *.o *.ppu *.a
-endif
-	-$(DELTREE) *$(SMARTEXT)
-	-$(DEL) fpcmade.* Package.fpc $(PPAS) script.res link.res $(FPCEXTFILE) $(REDIRFILE)
-	-$(DEL) *_ppas$(BATCHEXT)
-ifdef AOUTEXT
-	-$(DEL) *$(AOUTEXT)
-endif
-ifdef DEBUGSYMEXT
-	-$(DEL) *$(DEBUGSYMEXT)
-endif
-fpc_distclean: cleanall
-.PHONY: fpc_baseinfo
-override INFORULES+=fpc_baseinfo
-fpc_baseinfo:
-	@$(ECHO)
-	@$(ECHO)  == Package info ==
-	@$(ECHO)  Package Name..... $(PACKAGE_NAME)
-	@$(ECHO)  Package Version.. $(PACKAGE_VERSION)
-	@$(ECHO)
-	@$(ECHO)  == Configuration info ==
-	@$(ECHO)
-	@$(ECHO)  FPC.......... $(FPC)
-	@$(ECHO)  FPC Version.. $(FPC_VERSION)
-	@$(ECHO)  Source CPU... $(CPU_SOURCE)
-	@$(ECHO)  Target CPU... $(CPU_TARGET)
-	@$(ECHO)  Source OS.... $(OS_SOURCE)
-	@$(ECHO)  Target OS.... $(OS_TARGET)
-	@$(ECHO)  Full Source.. $(FULL_SOURCE)
-	@$(ECHO)  Full Target.. $(FULL_TARGET)
-	@$(ECHO)  SourceSuffix. $(SOURCESUFFIX)
-	@$(ECHO)  TargetSuffix. $(TARGETSUFFIX)
-	@$(ECHO)
-	@$(ECHO)  == Directory info ==
-	@$(ECHO)
-	@$(ECHO)  Required pkgs... $(REQUIRE_PACKAGES)
-	@$(ECHO)
-	@$(ECHO)  Basedir......... $(BASEDIR)
-	@$(ECHO)  FPCDir.......... $(FPCDIR)
-	@$(ECHO)  CrossBinDir..... $(CROSSBINDIR)
-	@$(ECHO)  UnitsDir........ $(UNITSDIR)
-	@$(ECHO)  PackagesDir..... $(PACKAGESDIR)
-	@$(ECHO)
-	@$(ECHO)  GCC library..... $(GCCLIBDIR)
-	@$(ECHO)  Other library... $(OTHERLIBDIR)
-	@$(ECHO)
-	@$(ECHO)  == Tools info ==
-	@$(ECHO)
-	@$(ECHO)  As........ $(AS)
-	@$(ECHO)  Ld........ $(LD)
-	@$(ECHO)  Ar........ $(AR)
-	@$(ECHO)  Rc........ $(RC)
-	@$(ECHO)
-	@$(ECHO)  Mv........ $(MVPROG)
-	@$(ECHO)  Cp........ $(CPPROG)
-	@$(ECHO)  Rm........ $(RMPROG)
-	@$(ECHO)  GInstall.. $(GINSTALL)
-	@$(ECHO)  Echo...... $(ECHO)
-	@$(ECHO)  Shell..... $(SHELL)
-	@$(ECHO)  Date...... $(DATE)
-	@$(ECHO)  FPCMake... $(FPCMAKE)
-	@$(ECHO)  PPUMove... $(PPUMOVE)
-	@$(ECHO)  Upx....... $(UPXPROG)
-	@$(ECHO)  Zip....... $(ZIPPROG)
-	@$(ECHO)
-	@$(ECHO)  == Object info ==
-	@$(ECHO)
-	@$(ECHO)  Target Loaders........ $(TARGET_LOADERS)
-	@$(ECHO)  Target Units.......... $(TARGET_UNITS)
-	@$(ECHO)  Target Implicit Units. $(TARGET_IMPLICITUNITS)
-	@$(ECHO)  Target Programs....... $(TARGET_PROGRAMS)
-	@$(ECHO)  Target Dirs........... $(TARGET_DIRS)
-	@$(ECHO)  Target Examples....... $(TARGET_EXAMPLES)
-	@$(ECHO)  Target ExampleDirs.... $(TARGET_EXAMPLEDIRS)
-	@$(ECHO)
-	@$(ECHO)  Clean Units......... $(CLEAN_UNITS)
-	@$(ECHO)  Clean Files......... $(CLEAN_FILES)
-	@$(ECHO)
-	@$(ECHO)  Install Units....... $(INSTALL_UNITS)
-	@$(ECHO)  Install Files....... $(INSTALL_FILES)
-	@$(ECHO)
-	@$(ECHO)  == Install info ==
-	@$(ECHO)
-	@$(ECHO)  DateStr.............. $(DATESTR)
-	@$(ECHO)  ZipName.............. $(ZIPNAME)
-	@$(ECHO)  ZipPrefix............ $(ZIPPREFIX)
-	@$(ECHO)  ZipCrossPrefix....... $(ZIPCROSSPREFIX)
-	@$(ECHO)  ZipSuffix............ $(ZIPSUFFIX)
-	@$(ECHO)  FullZipName.......... $(FULLZIPNAME)
-	@$(ECHO)  Install FPC Package.. $(INSTALL_FPCPACKAGE)
-	@$(ECHO)
-	@$(ECHO)  Install base dir..... $(INSTALL_BASEDIR)
-	@$(ECHO)  Install binary dir... $(INSTALL_BINDIR)
-	@$(ECHO)  Install library dir.. $(INSTALL_LIBDIR)
-	@$(ECHO)  Install units dir.... $(INSTALL_UNITDIR)
-	@$(ECHO)  Install source dir... $(INSTALL_SOURCEDIR)
-	@$(ECHO)  Install doc dir...... $(INSTALL_DOCDIR)
-	@$(ECHO)  Install example dir.. $(INSTALL_EXAMPLEDIR)
-	@$(ECHO)  Install data dir..... $(INSTALL_DATADIR)
-	@$(ECHO)
-	@$(ECHO)  Dist destination dir. $(DIST_DESTDIR)
-	@$(ECHO)  Dist zip name........ $(DIST_ZIPNAME)
-	@$(ECHO)
-.PHONY: fpc_info
-fpc_info: $(INFORULES)
-.PHONY: fpc_makefile fpc_makefiles fpc_makefile_sub1 fpc_makefile_sub2 \
-	fpc_makefile_dirs
-fpc_makefile:
-	$(FPCMAKE) -w -T$(OS_TARGET) Makefile.fpc
-fpc_makefile_sub1:
-ifdef TARGET_DIRS
-	$(FPCMAKE) -w -T$(OS_TARGET) $(addsuffix /Makefile.fpc,$(TARGET_DIRS))
-endif
-ifdef TARGET_EXAMPLEDIRS
-	$(FPCMAKE) -w -T$(OS_TARGET) $(addsuffix /Makefile.fpc,$(TARGET_EXAMPLEDIRS))
-endif
-fpc_makefile_sub2: $(addsuffix _makefile_dirs,$(TARGET_DIRS) $(TARGET_EXAMPLEDIRS))
-fpc_makefile_dirs: fpc_makefile_sub1 fpc_makefile_sub2
-fpc_makefiles: fpc_makefile fpc_makefile_dirs
-all: fpc_all
-debug: fpc_debug
-smart: fpc_smart
-release: fpc_release
-units: fpc_units
-examples:
-shared: fpc_shared
-install: fpc_install
-sourceinstall: fpc_sourceinstall
-exampleinstall: fpc_exampleinstall
-distinstall: fpc_distinstall
-zipinstall: fpc_zipinstall
-zipsourceinstall: fpc_zipsourceinstall
-zipexampleinstall: fpc_zipexampleinstall
-zipdistinstall: fpc_zipdistinstall
-clean: fpc_clean
-distclean: fpc_distclean
-cleanall: fpc_cleanall
-info: fpc_info
-makefiles: fpc_makefiles
-.PHONY: all debug smart release units examples shared install sourceinstall exampleinstall distinstall zipinstall zipsourceinstall zipexampleinstall zipdistinstall clean distclean cleanall info makefiles
-ifneq ($(wildcard fpcmake.loc),)
-include fpcmake.loc
-endif
-.NOTPARALLEL:

+ 0 - 31
packages/base/imagemagick/Makefile.fpc

@@ -1,31 +0,0 @@
-#
-#   Makefile.fpc for Free Pascal GTK 2.x.y Bindings
-#
-
-[package]
-name=gtk2
-version=2.0.0
-
-[require]
-libc=y
-
-[target]
-units=buildim 
-exampledirs=
-implicitunits=magick_wand imagemagick
-
-[compiler]
-unitdir=magick wand
-
-[install]
-buildunit=buildgtk2
-fpcpackage=y
-
-[shared]
-build=n
-
-[default]
-fpcdir=../../..
-
-[rules]
-.NOTPARALLEL:

+ 0 - 29
packages/base/imagemagick/buildim.pp

@@ -1,29 +0,0 @@
-{
-   Dummy unit to compile imagemagick in one command
-
-   This unit is part of imagemagick.
-
-   This library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2 of the License, or (at your option) any later version.
-
-   This library 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
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with this library; if not, write to the
-   Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-   Boston, MA 02111-1307, USA.
-}
-unit buildim;
-
-Interface
-
-uses imagemagick, magick_wand;
-
-Implementation
-
-end.

BIN
packages/base/imagemagick/demo1/image.png


+ 0 - 111
packages/base/imagemagick/demo1/wanddemo.dpr

@@ -1,111 +0,0 @@
-<?xml version="1.0"?>
-<CONFIG>
-  <ProjectOptions>
-    <PathDelim Value="/"/>
-    <Version Value="5"/>
-    <General>
-      <MainUnit Value="0"/>
-      <IconPath Value="./"/>
-      <TargetFileExt Value=""/>
-      <ActiveEditorIndexAtStart Value="4"/>
-    </General>
-    <LazDoc Paths=""/>
-    <Units Count="6">
-      <Unit0>
-        <CursorPos X="1" Y="48"/>
-        <EditorIndex Value="0"/>
-        <Filename Value="wanddemo.lpr"/>
-        <IsPartOfProject Value="True"/>
-        <Loaded Value="True"/>
-        <TopLine Value="15"/>
-        <UnitName Value="wanddemo"/>
-        <UsageCount Value="23"/>
-      </Unit0>
-      <Unit1>
-        <CursorPos X="2" Y="48"/>
-        <Filename Value="wanddemo.dpr"/>
-        <TopLine Value="15"/>
-        <UnitName Value="wanddemo"/>
-        <UsageCount Value="20"/>
-      </Unit1>
-      <Unit2>
-        <CursorPos X="3" Y="26"/>
-        <EditorIndex Value="2"/>
-        <Filename Value="magick_type.inc"/>
-        <Loaded Value="True"/>
-        <TopLine Value="9"/>
-        <UsageCount Value="11"/>
-      </Unit2>
-      <Unit3>
-        <CursorPos X="1" Y="62"/>
-        <EditorIndex Value="1"/>
-        <Filename Value="magick_wand.pas"/>
-        <Loaded Value="True"/>
-        <TopLine Value="33"/>
-        <UnitName Value="magick_wand"/>
-        <UsageCount Value="11"/>
-      </Unit3>
-      <Unit4>
-        <CursorPos X="25" Y="24"/>
-        <EditorIndex Value="4"/>
-        <Filename Value="magick_image.inc"/>
-        <Loaded Value="True"/>
-        <TopLine Value="18"/>
-        <UsageCount Value="11"/>
-      </Unit4>
-      <Unit5>
-        <CursorPos X="70" Y="80"/>
-        <EditorIndex Value="3"/>
-        <Filename Value="drawing_wand.inc"/>
-        <Loaded Value="True"/>
-        <TopLine Value="113"/>
-        <UsageCount Value="11"/>
-      </Unit5>
-    </Units>
-    <PublishOptions>
-      <Version Value="2"/>
-      <IgnoreBinaries Value="False"/>
-      <IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>
-      <ExcludeFileFilter Value="*.(bak|ppu|ppw|o|so);*~;backup"/>
-    </PublishOptions>
-    <RunParams>
-      <local>
-        <FormatVersion Value="1"/>
-        <LaunchingApplication PathPlusParams="/usr/X11R6/bin/xterm -T 'Lazarus Run Output' -e $(LazarusDir)/tools/runwait.sh $(TargetCmdLine)"/>
-      </local>
-    </RunParams>
-    <JumpHistory Count="3" HistoryIndex="2">
-      <Position1>
-        <Filename Value="wanddemo.lpr"/>
-        <Caret Line="28" Column="20" TopLine="14"/>
-      </Position1>
-      <Position2>
-        <Filename Value="wanddemo.lpr"/>
-        <Caret Line="26" Column="16" TopLine="14"/>
-      </Position2>
-      <Position3>
-        <Filename Value="wanddemo.lpr"/>
-        <Caret Line="28" Column="17" TopLine="15"/>
-      </Position3>
-    </JumpHistory>
-  </ProjectOptions>
-  <CompilerOptions>
-    <Version Value="5"/>
-    <CodeGeneration>
-      <Generate Value="Faster"/>
-    </CodeGeneration>
-    <Other>
-      <CompilerPath Value="$(CompPath)"/>
-    </Other>
-  </CompilerOptions>
-  <Debugging>
-    <Exceptions Count="2">
-      <Item1>
-        <Name Value="ECodetoolError"/>
-      </Item1>
-      <Item2>
-        <Name Value="EFOpenError"/>
-      </Item2>
-    </Exceptions>
-  </Debugging>
-</CONFIG>

+ 0 - 59
packages/base/imagemagick/demo1/wanddemo.lpr

@@ -1,59 +0,0 @@
-{
-  Demonstration program for the ImageMagick Library
-
-  This program was converted from c by: Felipe Monteiro de Carvalho
-
-  Usage: Just execute the program. It will resize the image.png image
-  on it's directory to fit (106, 80) and convert it to a jpg.
-
-  Dez/2005
-}
-program wanddemo;
-
-{$mode objfpc}{$H+}
-
-uses SysUtils, magick_wand, ImageMagick;
-
-procedure ThrowWandException(wand: PMagickWand);
-var
-  description: PChar;
-  severity: ExceptionType;
-begin
-  description := MagickGetException(wand, @severity);
-  WriteLn(Format('An error ocurred. Description: %s', [description]));
-  description := MagickRelinquishMemory(description);
-  Abort;
-end;
-
-var
-  status: MagickBooleanType;
-  wand: PMagickWand;
-begin
-  { Read an image. }
-
-  MagickWandGenesis;
-
-  wand := NewMagickWand;
-
-  try
-    status := MagickReadImage(wand, 'image.png');
-    if (status = MagickFalse) then ThrowWandException(wand);
-
-    { Turn the images into a thumbnail sequence. }
-
-    MagickResetIterator(wand);
-
-    while (MagickNextImage(wand) <> MagickFalse) do
-     MagickResizeImage(wand, 106, 80, LanczosFilter, 1.0);
-
-    { Write the image as MIFF and destroy it. }
-
-    status := MagickWriteImages(wand, 'image.jpg', MagickTrue);
-    if (status = MagickFalse) then ThrowWandException(wand);
-
-  finally
-    wand := DestroyMagickWand(wand);
-
-    MagickWandTerminus;
-  end;
-end.

+ 0 - 151
packages/base/imagemagick/demo2/screenshot.lpr

@@ -1,151 +0,0 @@
-{
-  Demonstration software for image resizing and screenshot using PascalMagick
-
-  Created by: Felipe Monteiro de Carvalho
-
-  This software takes a screenshot of the screen and enlarges it using anti-aliasing
- or not depending on what the user select.
-
-  Notes: This software uses X11 to take the screenshot so it will only work on UNIXes
-
-  More information on this page:
-  http://wiki.lazarus.freepascal.org/index.php/PascalMagick
-
-  April/2006
-}
-program screenshot;
-
-{$mode objfpc}{$H+}
-
-uses SysUtils, magick_wand, ImageMagick, Unix;
-
-type
-  TCommand = (cmdQuit, cmdSample, cmdAntiAliase);
-
-{
-  Catches exceptions from ImageMagick
-}
-procedure ThrowWandException(wand: PMagickWand);
-var
-  description: PChar;
-  severity: ExceptionType;
-begin
-  description := MagickGetException(wand, @severity);
-  WriteLn(Format('An error ocurred. Description: %s', [description]));
-  description := MagickRelinquishMemory(description);
-  Abort;
-end;
-
-{
-  Shows the main screen
-}
-function MainScreen: TCommand;
-var
-  i: Integer;
-  Continuar: Boolean;
-begin
-  Continuar := False;
-
-  WriteLn('=========================================================');
-  WriteLn('         Welcome to PascalMagick demo software 2');
-  WriteLn('=========================================================');
-
-  while not Continuar do
-  begin
-    WriteLn('');
-    WriteLn('The following commands are available:');
-    WriteLn('   0 - Quit');
-    WriteLn('   1 - Capture screenshot and resize it to 2024x1536');
-    WriteLn('   2 - Same as #1 except that uses Anti-Aliasing');
-    Write(': ');
-    ReadLn(i);
-
-    case i of
-     0:
-     begin
-       Result := cmdQuit;
-       Continuar := True;
-     end;
-
-     1:
-     begin
-       Result := cmdSample;
-       Continuar := True;
-     end;
-
-     2:
-     begin
-       Result := cmdAntiAliase;
-       Continuar := True;
-     end;
-
-    else
-      WriteLn('Wrong Command!!');
-    end;
-  end;
-end;
-
-{
-  Main procedure
-}
-var
-  status: MagickBooleanType;
-  wand: PMagickWand;
-  TempDir, shellStr: string;
-  Antes: TTimeStamp;
-  Command: TCommand;
-begin
-  { Presentation screen and user options }
-
-  Command := MainScreen;
-
-  if Command = cmdQuit then Exit;
-
-
-  { Create the image }
-
-  Antes := DateTimeToTimeStamp(Now);
-
-  TempDir := GetTempDir(False);
-
-  shellStr := 'xwd -root -out ' + TempDir + 'display.xwd';
-
-  WriteLn(shellStr);
-
-  shell(shellStr);
-
-  { Read an image. }
-
-  MagickWandGenesis;
-
-  wand := NewMagickWand;
-
-  try
-    status := MagickReadImage(wand, PChar(TempDir + 'display.xwd'));
-    if (status = MagickFalse) then ThrowWandException(wand);
-
-    { Enlarge the Image }
-
-    WriteLn('Enlarging');
-
-    if Command = cmdAntiAliase then MagickResizeImage(wand, 2024, 1536, BoxFilter, 1.0)
-    else MagickSampleImage(wand, 2024, 1536);
-
-    WriteLn(IntToStr(DateTimeToTimeStamp(Now).Time - Antes.Time));
-
-    WriteLn('Saving');
-
-    { Write the image as MIFF and destroy it. }
-
-    status := MagickWriteImages(wand, PChar(TempDir + 'enlarged.jpg'), MagickTrue);
-    if (status = MagickFalse) then ThrowWandException(wand);
-
-    WriteLn(IntToStr(DateTimeToTimeStamp(Now).Time - Antes.Time));
-
-  finally
-    wand := DestroyMagickWand(wand);
-
-    MagickWandTerminus;
-  end;
-end.
-

+ 0 - 52
packages/base/imagemagick/magick/cache_view.inc

@@ -1,52 +0,0 @@
-{
-  Copyright 1999-2005 ImageMagick Studio LLC, a non-profit organization
-  dedicated to making software imaging solutions freely available.
-  
-  You may not use this file except in compliance with the License.
-  obtain a copy of the License at
-  
-    http://www.imagemagick.org/script/license.php
-  
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
-
-  ImageMagick Cache View Methods.
-}
-
-type
-  ViewInfo = record
-    image: PImage;
-
-    id: Cardinal;
-
-    signature: Cardinal;
-  end;
-  
-  PViewInfo = ^ViewInfo;
-
-{extern MagickExport const PixelPacket
-  *AcquireCacheView(const ViewInfo *,const long,const long,const unsigned long,
-    const unsigned long,ExceptionInfo *);
-
-extern MagickExport IndexPacket
-  *GetCacheViewIndexes(const ViewInfo *);
-
-extern MagickExport MagickBooleanType
-  SyncCacheView(ViewInfo *);
-
-extern MagickExport PixelPacket
-  *GetCacheViewPixels(const ViewInfo *),
-  *GetCacheView(ViewInfo *,const long,const long,const unsigned long,
-    const unsigned long),
-  *SetCacheView(ViewInfo *,const long,const long,const unsigned long,
-    const unsigned long);
-
-extern MagickExport ViewInfo
-  *OpenCacheView(Image *);
-
-extern MagickExport void
-  CloseCacheView(ViewInfo *);}
-

+ 0 - 44
packages/base/imagemagick/magick/compare.inc

@@ -1,44 +0,0 @@
-{
-  Copyright 1999-2005 ImageMagick Studio LLC, a non-profit organization
-  dedicated to making software imaging solutions freely available.
-  
-  You may not use this file except in compliance with the License.
-  obtain a copy of the License at
-  
-    http://www.imagemagick.org/script/license.php
-  
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
-
-  ImageMagick image compare methods.
-}
-
-//#include "magick/image.h"
-
-type
- MetricType = (
-  UndefinedMetric,
-  MeanAbsoluteErrorMetric,
-  MeanSquaredErrorMetric,
-  PeakAbsoluteErrorMetric,
-  PeakSignalToNoiseRatioMetric,
-  RootMeanSquaredErrorMetric
- );
-
-{extern MagickExport Image
-  *CompareImageChannels(Image *,const Image *,const ChannelType,
-    const MetricType,double *,ExceptionInfo *),
-  *CompareImages(Image *,const Image *,const MetricType,double *,
-    ExceptionInfo *);
-
-extern MagickExport MagickBooleanType
-  CompareImageCommand(ImageInfo *,int,char **,char **,ExceptionInfo *),
-  GetImageChannelDistortion(Image *,const Image *,const ChannelType,
-    const MetricType,double *,ExceptionInfo *),
-  GetImageDistortion(Image *,const Image *,const MetricType,double *,
-    ExceptionInfo *),
-  IsImagesEqual(Image *,const Image *);}
-

+ 0 - 45
packages/base/imagemagick/magick/constitute.inc

@@ -1,45 +0,0 @@
-{
-  Copyright 1999-2005 ImageMagick Studio LLC, a non-profit organization
-  dedicated to making software imaging solutions freely available.
-  
-  You may not use this file except in compliance with the License.
-  obtain a copy of the License at
-  
-    http://www.imagemagick.org/script/license.php
-  
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
-
-  ImageMagick image constitute methods.
-}
-
-type
- StorageType = (
-  UndefinedPixel,
-  CharPixel,
-  DoublePixel,
-  FloatPixel,
-  IntegerPixel,
-  LongPixel,
-  QuantumPixel,
-  ShortPixel
- );
-
-{extern MagickExport Image
-  *ConstituteImage(const unsigned long,const unsigned long,const char *,
-    const StorageType,const void *,ExceptionInfo *),
-  *PingImage(const ImageInfo *,ExceptionInfo *),
-  *ReadImage(const ImageInfo *,ExceptionInfo *),
-  *ReadInlineImage(const ImageInfo *,const char *,ExceptionInfo *);
-
-extern MagickExport MagickBooleanType
-  WriteImage(const ImageInfo *,Image *),
-  WriteImages(const ImageInfo *,Image *,const char *,ExceptionInfo *);
-
-extern MagickExport void
-  DestroyConstitute(void);}
-
-

+ 0 - 298
packages/base/imagemagick/magick/draw.inc

@@ -1,298 +0,0 @@
-{
-  Copyright 1999-2005 ImageMagick Studio LLC, a non-profit organization
-  dedicated to making software imaging solutions freely available.
-  
-  You may not use this file except in compliance with the License.
-  obtain a copy of the License at
-  
-    http://www.imagemagick.org/script/license.php
-  
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
-
-  ImageMagick drawing methods.
-}
-
-//#include "magick/type.h"
-
-type
- AlignType = (
-  UndefinedAlign,
-  LeftAlign,
-  CenterAlign,
-  RightAlign
- );
-
-type
- ClipPathUnits = (
-  UndefinedPathUnits,
-  UserSpace,
-  UserSpaceOnUse,
-  ObjectBoundingBox
- );
-
-type
- DecorationType = (
-  UndefinedDecoration,
-  NoDecoration,
-  UnderlineDecoration,
-  OverlineDecoration,
-  LineThroughDecoration
- );
-
-type
- FillRule = (
-  UndefinedRule,
-//#undef EvenOddRule
-  EvenOddRule,
-  NonZeroRule
- );
-
-type
- GradientType = (
-  UndefinedGradient,
-  LinearGradient,
-  RadialGradient
- );
-
-type
- LineCap = (
-  UndefinedCap,
-  ButtCap,
-  RoundCap,
-  SquareCap
- );
-
-type
- LineJoin = (
-  UndefinedJoin,
-  MiterJoin,
-  RoundJoin,
-  BevelJoin
- );
-
-type
- PaintMethod = (
-  UndefinedMethod,
-  PointMethod,
-  ReplaceMethod,
-  FloodfillMethod,
-  FillToBorderMethod,
-  ResetMethod
- );
-
-type
- PrimitiveType = (
-  UndefinedPrimitive,
-  PointPrimitive,
-  LinePrimitive,
-  RectanglePrimitive,
-  RoundRectanglePrimitive,
-  ArcPrimitive,
-  EllipsePrimitive,
-  CirclePrimitive,
-  PolylinePrimitive,
-  PolygonPrimitive,
-  BezierPrimitive,
-  ColorPrimitive,
-  MattePrimitive,
-  TextPrimitive,
-  ImagePrimitive,
-  PathPrimitive
- );
-
-type
- ReferenceType = (
-  UndefinedReference,
-  GradientReference
- );
-
-type
- SpreadMethod = (
-  UndefinedSpread,
-  PadSpread,
-  ReflectSpead,
-  RepeatSpread
- );
-
-type
-  GradientInfo = record
-    type_: GradientType;
-
-    color: PixelPacket;
-
-    stop: SegmentInfo;
-
-    length: Cardinal;
-
-    spread: SpreadMethod;
-
-    debug: MagickBooleanType;
-
-    signature: Cardinal;
-
-    previous, next: Pointer;
-{  struct _GradientInfo
-    *previous,
-    *next;}
-  end;
-
-type
-  ElementReference = record
-    id: PChar;
-
-    type_: ReferenceType;
-
-    gradient: GradientInfo;
-
-    signature: Cardinal;
-
-    previous, next: Pointer;
-{  struct _ElementReference
-    *previous,
-    *next;}
-  end;
-
-type
-  DrawInfo = record
-    primitive,
-    geometry: PChar;
-
-    viewbox: RectangleInfo;
-
-    affine: AffineMatrix;
-
-    gravity: GravityType;
-
-    fill,
-    stroke: PixelPacket;
-
-    stroke_width: double;
-
-    gradient: GradientInfo;
-
-    fill_pattern,
-    tile,
-    stroke_pattern: PImage;
-
-    stroke_antialias,
-    text_antialias: MagickBooleanType;
-
-    fill_rule: FillRule;
-
-    linecap_: LineCap;
-
-    linejoin_: LineJoin;
-
-    miterlimit: Cardinal;
-
-    dash_offset: double;
-
-    decorate: DecorationType;
-
-    compose: CompositeOperator;
-
-    text: PChar;
-
-    face: Cardinal;
-
-    font,
-    metrics,
-    family: PChar;
-
-    style: StyleType;
-
-    stretch: StretchType;
-
-    weight: Cardinal;
-    
-    encoding: PChar;
-
-    pointsize: double;
-
-    density: PChar;
-
-    align: AlignType;
-
-    undercolor,
-    border_color: PixelPacket;
-
-    server_name: PChar;
-
-    dash_pattern: Pdouble;
-
-    clip_path: PChar;
-
-    bounds: SegmentInfo;
-
-    clip_units: ClipPathUnits;
-
-    opacity: Quantum;
-
-    render: MagickBooleanType;
-
-    element_reference: ElementReference;
-
-    debug: MagickBooleanType;
-
-    signature: Cardinal;
-  end;
-  
-  PDrawInfo = ^DrawInfo;
-  
-  PPDrawInfo = ^PDrawInfo;
-
-type
-  PointInfo = record
-    x, y: double;
-  end;
-  
-  PPointInfo = ^PointInfo;
-
-type
-  PrimitiveInfo = record
-    point: PointInfo;
-
-    coordinates: Cardinal;
-
-    primitive: PrimitiveType;
-
-    method: PaintMethod;
-
-    text: PChar;
-  end;
-
-type
-  TypeMetric = record
-    pixels_per_em: PointInfo;
-
-    ascent,
-    descent,
-    width,
-    height,
-    max_advance,
-    underline_position,
-    underline_thickness: double;
-
-    bounds: SegmentInfo;
-  end;
-
-{extern MagickExport DrawInfo
-  *CloneDrawInfo(const ImageInfo *,const DrawInfo *),
-  *DestroyDrawInfo(DrawInfo *);
-
-extern MagickExport MagickBooleanType
-  DrawAffineImage(Image *,const Image *,const AffineMatrix *),
-  DrawClipPath(Image *,const DrawInfo *,const char *),
-  DrawImage(Image *,const DrawInfo *),
-  DrawPatternPath(Image *,const DrawInfo *,const char *,Image **),
-  DrawPrimitive(Image *,const DrawInfo *,const PrimitiveInfo *);
-
-extern MagickExport void
-  GetAffineMatrix(AffineMatrix *),
-  GetDrawInfo(const ImageInfo *,DrawInfo *);}
-
-

+ 0 - 71
packages/base/imagemagick/magick/effect.inc

@@ -1,71 +0,0 @@
-{
-  Copyright 1999-2005 ImageMagick Studio LLC, a non-profit organization
-  dedicated to making software imaging solutions freely available.
-  
-  You may not use this file except in compliance with the License.
-  obtain a copy of the License at
-  
-    http://www.imagemagick.org/script/license.php
-  
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
-
-  ImageMagick image effects methods.
-}
-
-type
-  NoiseType = ( 
-  UndefinedNoise,
-  UniformNoise,
-  GaussianNoise,
-  MultiplicativeGaussianNoise,
-  ImpulseNoise,
-  LaplacianNoise,
-  PoissonNoise
- );
-
-{extern MagickExport Image
-  *AdaptiveThresholdImage(const Image *,const unsigned long,const unsigned long,    const long,ExceptionInfo *),
-  *AddNoiseImage(const Image *,const NoiseType,ExceptionInfo *),
-  *AddNoiseImageChannel(const Image *,const ChannelType,const NoiseType,
-    ExceptionInfo *),
-  *BlurImage(const Image *,const double,const double,ExceptionInfo *),
-  *BlurImageChannel(const Image *,const ChannelType,const double,const double,
-    ExceptionInfo *),
-  *DespeckleImage(const Image *,ExceptionInfo *),
-  *EdgeImage(const Image *,const double,ExceptionInfo *),
-  *EmbossImage(const Image *,const double,const double,ExceptionInfo *),
-  *GaussianBlurImage(const Image *,const double,const double,ExceptionInfo *),
-  *GaussianBlurImageChannel(const Image *,const ChannelType,const double,
-    const double,ExceptionInfo *),
-  *MedianFilterImage(const Image *,const double,ExceptionInfo *),
-  *MotionBlurImage(const Image *,const double,const double,const double,
-    ExceptionInfo *),
-  *PreviewImage(const Image *,const PreviewType,ExceptionInfo *),
-  *RadialBlurImage(const Image *,const double,ExceptionInfo *),
-  *RadialBlurImageChannel(const Image *,const ChannelType,const double,
-    ExceptionInfo *),
-  *ReduceNoiseImage(const Image *,const double,ExceptionInfo *),
-  *ShadeImage(const Image *,const MagickBooleanType,const double,const double,
-    ExceptionInfo *),
-  *SharpenImage(const Image *,const double,const double,ExceptionInfo *),
-  *SharpenImageChannel(const Image *,const ChannelType,const double,
-    const double,ExceptionInfo *),
-  *SpreadImage(const Image *,const double,ExceptionInfo *),
-  *UnsharpMaskImage(const Image *,const double,const double,const double,
-    const double,ExceptionInfo *),
-  *UnsharpMaskImageChannel(const Image *,const ChannelType,const double,
-    const double,const double,const double,ExceptionInfo *);
-
-extern MagickExport MagickBooleanType
-  BlackThresholdImage(Image *,const char *),
-  BilevelImage(Image *,const double),
-  BilevelImageChannel(Image *,const ChannelType,const double),
-  RandomThresholdImage(Image *,const char *,ExceptionInfo *),
-  RandomThresholdImageChannel(Image *,const ChannelType,const char *,
-    ExceptionInfo *),
-  WhiteThresholdImage(Image *,const char *);}
-

+ 0 - 63
packages/base/imagemagick/magick/fx.inc

@@ -1,63 +0,0 @@
-{
-  Copyright 1999-2005 ImageMagick Studio LLC, a non-profit organization
-  dedicated to making software imaging solutions freely available.
-  
-  You may not use this file except in compliance with the License.
-  obtain a copy of the License at
-  
-    http://www.imagemagick.org/script/license.php
-  
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
-
-  ImageMagick image f/x methods.
-}
-
-type
- MagickEvaluateOperator = (
-  UndefinedEvaluateOperator,
-  AddEvaluateOperator,
-  AndEvaluateOperator,
-  DivideEvaluateOperator,
-  LeftShiftEvaluateOperator,
-  MaxEvaluateOperator,
-  MinEvaluateOperator,
-  MultiplyEvaluateOperator,
-  OrEvaluateOperator,
-  RightShiftEvaluateOperator,
-  SetEvaluateOperator,
-  SubtractEvaluateOperator,
-  XorEvaluateOperator
- );
-
-{extern MagickExport Image
-  *CharcoalImage(const Image *,const double,const double,ExceptionInfo *),
-  *ColorizeImage(const Image *,const char *,const PixelPacket,ExceptionInfo *),
-  *ConvolveImage(const Image *,const unsigned long,const double *,
-    ExceptionInfo *),
-  *ConvolveImageChannel(const Image *,const ChannelType,const unsigned long,
-    const double *,ExceptionInfo *),
-  *FxImage(const Image *,const char *,ExceptionInfo *),
-  *FxImageChannel(const Image *,const ChannelType,const char *,ExceptionInfo *),
-  *ImplodeImage(const Image *,const double,ExceptionInfo *),
-  *MorphImages(const Image *,const unsigned long,ExceptionInfo *),
-  *OilPaintImage(const Image *,const double,ExceptionInfo *),
-  *SepiaToneImage(const Image *,const double,ExceptionInfo *),
-  *ShadowImage(const Image *,const double,const double,const long,const long,
-    ExceptionInfo *),
-  *SteganoImage(const Image *,const Image *,ExceptionInfo *),
-  *StereoImage(const Image *,const Image *,ExceptionInfo *),
-  *SwirlImage(const Image *,double,ExceptionInfo *),
-  *TintImage(const Image *,const char *,const PixelPacket,ExceptionInfo *),
-  *WaveImage(const Image *,const double,const double,ExceptionInfo *);
-
-extern MagickExport MagickBooleanType
-  EvaluateImage(Image *,const MagickEvaluateOperator,const double,
-    ExceptionInfo *),
-  EvaluateImageChannel(Image *,const ChannelType,const MagickEvaluateOperator,
-    const double,ExceptionInfo *),
-  SolarizeImage(Image *,const double);}
-

+ 0 - 118
packages/base/imagemagick/magick/imagemagick.pas

@@ -1,118 +0,0 @@
-{
-  Copyright 1999-2005 ImageMagick Studio LLC, a non-profit organization
-  dedicated to making software imaging solutions freely available.
-  
-  You may not use this file except in compliance with the License.
-  obtain a copy of the License at
-  
-    http://www.imagemagick.org/script/license.php
-  
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
-
-  ImageMagick Application Programming Interface declarations.
-  
-  Converted from c by: Felipe Monteiro de Carvalho Dez/2005
-
-	Bug-fixed by Ángel Eduardo García Hernández
-	Thanks to Marc Geldon and RuBBeR
-}
-{Version 0.4}
-unit ImageMagick;
-
-{$ifdef FPC}
-  {$mode objfpc}
-	{$PACKRECORDS C}
-{$endif}
-
-interface
-
-uses SysUtils;
-
-{$MINENUMSIZE 1}
-
-const
-{$ifdef Win32}
-  WandExport = 'CORE_RL_wand_.dll';
-{$else}
-  WandExport = 'libWand';
-{$endif}
-
-{# include "magick/methods.h"
-#endif}
-{$include magick_type.inc}
-{$include type.inc}
-
-{#$include animate.inc}
-{#$include annotate.inc}
-{#$include attribute.inc}
-{#$include blob.inc}
-{#$include cache.inc}
-{$include cache_view.inc}
-{#include "magick/coder.h"
-#include "magick/client.h"
-#include "magick/color.h"
-#include "magick/colorspace.h"}
-{$include compare.inc}
-{#include "magick/composite.h"
-#include "magick/compress.h"
-#include "magick/configure.h"
-#include "magick/conjure.h"}
-{$include constitute.inc}
-{#include "magick/convert.h"
-#include "magick/decorate.h"
-#include "magick/delegate.h"
-#include "magick/deprecate.h"
-#include "magick/display.h"}
-{$include draw.inc}
-{$include effect.inc}
-{#include "magick/enhance.h"
-#include "magick/exception.h"}
-{$include fx.inc}
-{#include "magick/gem.h"
-#include "magick/geometry.h"
-#include "magick/hashmap.h"
-#include "magick/identify.h"
-#include "magick/image.h"
-#include "magick/import.h"
-#include "magick/list.h"
-#include "magick/locale_.h"
-#include "magick/log.h"
-#include "magick/magic.h"
-#include "magick/magick.h"
-#include "magick/memory_.h"
-#include "magick/module.h"
-#include "magick/mogrify.h"
-#include "magick/monitor.h"
-#include "magick/montage.h"
-#include "magick/option.h"
-#include "magick/paint.h"}
-{$include pixel.inc}
-{#include "magick/prepress.h"
-#include "magick/profile.h"}
-{$include quantize.inc}
-{#include "magick/quantum.h"
-#include "magick/registry.h"
-#include "magick/random_.h"
-#include "magick/resize.h"
-#include "magick/resource_.h"
-#include "magick/segment.h"
-#include "magick/shear.h"
-#include "magick/signature.h"
-#include "magick/splay-tree.h"
-#include "magick/stream.h"}
-{$include statistic.inc}
-{#include "magick/string_.h"
-#include "magick/timer.h"
-#include "magick/token.h"
-#include "magick/transform.h"
-#include "magick/utility.h"
-#include "magick/version.h"
-#include "magick/xwindow.h"}
-
-implementation
-
-end.

+ 0 - 640
packages/base/imagemagick/magick/magick_type.inc

@@ -1,640 +0,0 @@
-{
-  Copyright 1999-2005 ImageMagick Studio LLC, a non-profit organization
-  dedicated to making software imaging solutions freely available.
-  
-  You may not use this file except in compliance with the License.
-  obtain a copy of the License at
-  
-    http://www.imagemagick.org/script/license.php
-  
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
-
-  ImageMagick structure members.
-
-  NOTE: This is a simplifyed version of magick/magick-type.h
-}
-
-const MaxTextExtent = 4096;
-
-const
-  MagickFalse = 0;
-  MagickTrue = 1;
-
-type
-  MagickBooleanType = Cardinal;
-
-  PMagickBooleanType = ^MagickBooleanType;
-
-//#include "magick/semaphore.h"
-
-{
-  The Quantum Depth was fixed at 16 to make the code simpler
-
-  In the future there is the possibility to go to the c bindings
- and implement the variable QuantumDepth here
-}
-const
-  QuantumDepth = 16;
-
-{$define QuantumLeap}
-
-const
-  MagickEpsilon = 1.0E-10;
-  MaxColormapSize = 65536;
-  MaxMap = 65535;
-  QuantumFormat = '%u';
-  QuantumRange = 65535;
-
-type
-  MagickRealType = double;
-  Quantum = Word;
-
-{
-  Type declarations.
-}
-type
-  MagickStatusType = Word;
-  MagickOffsetType = Int64;
-  MagickSizeType = Int64;
-
-const
-  UndefinedChannel = 0;
-  RedChannel = $0001;
-  GrayChannel = $0001;
-  CyanChannel = $0001;
-  GreenChannel = $0002;
-  MagentaChannel = $0002;
-  BlueChannel = $0004;
-  YellowChannel = $0004;
-  AlphaChannel = $0008;
-  OpacityChannel = $0008;
-  MatteChannel = $0008;  // deprecated
-  BlackChannel = $0020;
-  IndexChannel = $0020;
-  AllChannels = $ff;
-  
-type
-  ChannelType = Byte;
-
-  PChannelType = ^ChannelType;
-
-type
- ClassType = (
-  UndefinedClass,
-  DirectClass,
-  PseudoClass
- );
-
-  PClassType = ^ClassType;
-
-type
- ColorspaceType = (
-  UndefinedColorspace,
-  RGBColorspace,
-  GRAYColorspace,
-  TransparentColorspace,
-  OHTAColorspace,
-  LABColorspace,
-  XYZColorspace,
-  YCbCrColorspace,
-  YCCColorspace,
-  YIQColorspace,
-  YPbPrColorspace,
-  YUVColorspace,
-  CMYKColorspace,
-  sRGBColorspace,
-  HSBColorspace,
-  HSLColorspace,
-  HWBColorspace,
-  Rec601LumaColorspace,
-  Rec709LumaColorspace,
-  LogColorspace
- );
-
-  PColorspaceType = ^ColorspaceType;
-
-type
- CompositeOperator = (
-  UndefinedCompositeOp,
-  NoCompositeOp,
-  AddCompositeOp,
-  AtopCompositeOp,
-  BlendCompositeOp,
-  BumpmapCompositeOp,
-  ClearCompositeOp,
-  ColorBurnCompositeOp,
-  ColorDodgeCompositeOp,
-  ColorizeCompositeOp,
-  CopyBlackCompositeOp,
-  CopyBlueCompositeOp,
-  CopyCompositeOp,
-  CopyCyanCompositeOp,
-  CopyGreenCompositeOp,
-  CopyMagentaCompositeOp,
-  CopyOpacityCompositeOp,
-  CopyRedCompositeOp,
-  CopyYellowCompositeOp,
-  DarkenCompositeOp,
-  DstAtopCompositeOp,
-  DstCompositeOp,
-  DstInCompositeOp,
-  DstOutCompositeOp,
-  DstOverCompositeOp,
-  DifferenceCompositeOp,
-  DisplaceCompositeOp,
-  DissolveCompositeOp,
-  ExclusionCompositeOp,
-  HardLightCompositeOp,
-  HueCompositeOp,
-  InCompositeOp,
-  LightenCompositeOp,
-  LuminizeCompositeOp,
-  MinusCompositeOp,
-  ModulateCompositeOp,
-  MultiplyCompositeOp,
-  OutCompositeOp,
-  OverCompositeOp,
-  OverlayCompositeOp,
-  PlusCompositeOp,
-  ReplaceCompositeOp,
-  SaturateCompositeOp,
-  ScreenCompositeOp,
-  SoftLightCompositeOp,
-  SrcAtopCompositeOp,
-  SrcCompositeOp,
-  SrcInCompositeOp,
-  SrcOutCompositeOp,
-  SrcOverCompositeOp,
-  SubtractCompositeOp,
-  ThresholdCompositeOp,
-  XorCompositeOp
- );
-
-  PCompositeOperator = ^CompositeOperator;
-
-type
- CompressionType = (
-  UndefinedCompression,
-  NoCompression,
-  BZipCompression,
-  FaxCompression,
-  Group4Compression,
-  JPEGCompression,
-  JPEG2000Compression,
-  LosslessJPEGCompression,
-  LZWCompression,
-  RLECompression,
-  ZipCompression
- );
-
-  PCompressionType = ^CompressionType;
-  
-const
-  UnrecognizedDispose = 0;
-  UndefinedDispose = 0;
-  NoneDispose = 1;
-  BackgroundDispose = 2;
-  PreviousDispose = 3;
-
-type
-  DisposeType = Byte;
-
-  PDisposeType = ^DisposeType;
-  
-type
- EndianType = (
-  UndefinedEndian,
-  LSBEndian,
-  MSBEndian
- );
-
-  PEndianType = ^EndianType;
-
-const
-  UndefinedException = 0;
-  WarningException = 300;
-  ResourceLimitWarning = 300;
-  TypeWarning = 305;
-  OptionWarning = 310;
-  DelegateWarning = 315;
-  MissingDelegateWarning = 320;
-  CorruptImageWarning = 325;
-  FileOpenWarning = 330;
-  BlobWarning = 335;
-  StreamWarning = 340;
-  CacheWarning = 345;
-  CoderWarning = 350;
-  ModuleWarning = 355;
-  DrawWarning = 360;
-  ImageWarning = 365;
-  WandWarning = 370;
-  XServerWarning = 380;
-  MonitorWarning = 385;
-  RegistryWarning = 390;
-  ConfigureWarning = 395;
-  ErrorException = 400;
-  ResourceLimitError = 400;
-  TypeError = 405;
-  OptionError = 410;
-  DelegateError = 415;
-  MissingDelegateError = 420;
-  CorruptImageError = 425;
-  FileOpenError = 430;
-  BlobError = 435;
-  StreamError = 440;
-  CacheError = 445;
-  CoderError = 450;
-  ModuleError = 455;
-  DrawError = 460;
-  ImageError = 465;
-  WandError = 470;
-  XServerError = 480;
-  MonitorError = 485;
-  RegistryError = 490;
-  ConfigureError = 495;
-  FatalErrorException = 700;
-  ResourceLimitFatalError = 700;
-  TypeFatalError = 705;
-  OptionFatalError = 710;
-  DelegateFatalError = 715;
-  MissingDelegateFatalError = 720;
-  CorruptImageFatalError = 725;
-  FileOpenFatalError = 730;
-  BlobFatalError = 735;
-  StreamFatalError = 740;
-  CacheFatalError = 745;
-  CoderFatalError = 750;
-  ModuleFatalError = 755;
-  DrawFatalError = 760;
-  ImageFatalError = 765;
-  WandFatalError = 770;
-  XServerFatalError = 780;
-  MonitorFatalError = 785;
-  RegistryFatalError = 790;
-  ConfigureFatalError = 795;
-  
-type
-  ExceptionType = Word;
-  
-  PExceptionType = ^ExceptionType;
-
-type
- FilterTypes = (
-  UndefinedFilter,
-  PointFilter,
-  BoxFilter,
-  TriangleFilter,
-  HermiteFilter,
-  HanningFilter,
-  HammingFilter,
-  BlackmanFilter,
-  GaussianFilter,
-  QuadraticFilter,
-  CubicFilter,
-  CatromFilter,
-  MitchellFilter,
-  LanczosFilter,
-  BesselFilter,
-  SincFilter
- );
-
-  PFilterTypes = ^FilterTypes;
-
-const
-  UndefinedGravity = 0;
-  ForgetGravity = 0;
-  NorthWestGravity = 1;
-  NorthGravity = 2;
-  NorthEastGravity = 3;
-  WestGravity = 4;
-  CenterGravity = 5;
-  EastGravity = 6;
-  SouthWestGravity = 7;
-  SouthGravity = 8;
-  SouthEastGravity = 9;
-  StaticGravity = 10;
-
-type
-  GravityType = Byte;
-
-  PGravityType = ^GravityType;
-
-type ImageType = (
-  UndefinedType,
-  BilevelType,
-  GrayscaleType,
-  GrayscaleMatteType,
-  PaletteType,
-  PaletteMatteType,
-  TrueColorType,
-  TrueColorMatteType,
-  ColorSeparationType,
-  ColorSeparationMatteType,
-  OptimizeType
- );
-
-  PImageType = ^ImageType;
-
-type
- InterlaceType = (
-  UndefinedInterlace,
-  NoInterlace,
-  LineInterlace,
-  PlaneInterlace,
-  PartitionInterlace
- );
-
-  PInterlaceType = ^InterlaceType;
-
-type
- OrientationType = (
-  UndefinedOrientation,
-  TopLeftOrientation,
-  TopRightOrientation,
-  BottomRightOrientation,
-  BottomLeftOrientation,
-  LeftTopOrientation,
-  RightTopOrientation,
-  RightBottomOrientation,
-  LeftBottomOrientation
- );
-
-  POrientationType = ^OrientationType;
-
-type PreviewType = (
-  UndefinedPreview,
-  RotatePreview,
-  ShearPreview,
-  RollPreview,
-  HuePreview,
-  SaturationPreview,
-  BrightnessPreview,
-  GammaPreview,
-  SpiffPreview,
-  DullPreview,
-  GrayscalePreview,
-  QuantizePreview,
-  DespecklePreview,
-  ReduceNoisePreview,
-  AddNoisePreview,
-  SharpenPreview,
-  BlurPreview,
-  ThresholdPreview,
-  EdgeDetectPreview,
-  SpreadPreview,
-  SolarizePreview,
-  ShadePreview,
-  RaisePreview,
-  SegmentPreview,
-  SwirlPreview,
-  ImplodePreview,
-  WavePreview,
-  OilPaintPreview,
-  CharcoalDrawingPreview,
-  JPEGPreview
- );
-
-  PPreviewType = ^PreviewType;
-
-type RenderingIntent = (
-  UndefinedIntent,
-  SaturationIntent,
-  PerceptualIntent,
-  AbsoluteIntent,
-  RelativeIntent
- );
-
-  PRenderingIntent = ^RenderingIntent;
-
-type ResolutionType = (
-  UndefinedResolution,
-  PixelsPerInchResolution,
-  PixelsPerCentimeterResolution
- );
-
-  PResolutionType = ^ResolutionType;
-
-type TimerState = (
-  UndefinedTimerState,
-  StoppedTimerState,
-  RunningTimerState
- );
-
-  PTimerState = ^TimerState;
-
-type
-  AffineMatrix = record
-    sx, rx, ry, sy, tx, ty: double;
-  end;
-  
-  PAffineMatrix = ^AffineMatrix;
-
-type
- IndexPacket = Quantum;
-
-type
-  PixelPacket = record
-{$ifdef WORDS_BIGENDIAN}
-   red, green, blue, opacity: Quantum;
-{$else}
-   blue, green, red, opacity: Quantum;
-{$endif}
-  end;
-  
-  PPixelPacket = ^PixelPacket;
-
-type
-  ColorPacket = record
-   pixel: PixelPacket;
-   index: IndexPacket;
-   count: Cardinal;
-  end;
-  
-  PColorPacket = ^ColorPacket;
-
-type
-  ErrorInfo = record
-   mean_error_per_pixel, normalized_mean_error, normalized_maximum_error: double;
-  end;
-
-type
-  PrimaryInfo = record
-   x, y, z: double;
-  end;
-
-type 
-  ProfileInfo = record
-   name: PChar;
-   length: Integer;
-   info: PChar;
-   signature: Cardinal;
-  end;
-  
-  PProfileInfo = ^ProfileInfo;
-
-type 
-  RectangleInfo = record
-   width, height: Cardinal;
-   x, y: Cardinal;
-  end;
-
-type
-  SegmentInfo = record
-   x1, y1, x2, y2: double;
-  end;
-
-type
-  Timer = record
-   start, stop, total: double;
-  end;
-  
-  PTimer = ^Timer;
-
-type
-  TimerInfo = record
-   user, elapsed: Timer;
-   state: TimerState;
-   signature: Cardinal;
-  end;
-  
-  PTimerInfo = ^TimerInfo;
-
-type
-  ChromaticityInfo = record
-   red_primary, green_primary, blue_primary, white_point: PrimaryInfo;
- end;
-
-type
-  ExceptionInfo = record
-   //severity: ExceptionType;
-   //error_number: Shortint;
-   severity: Cardinal;
-   error_number: Cardinal;
-   reason, description: PChar;
-	 exceptions: Pointer;
-	 relinquish: MagickBooleanType;
-   semaphore: Pointer; //PSemaphoreInfo;
-   signature: Cardinal;
-  end;
-  
-  PExceptionInfo = ^ExceptionInfo;
-
-//typedef struct _Ascii85Info _Ascii85Info_;
-
-//typedef struct _BlobInfo _BlobInfo_;
-
-type
-  MagickProgressMonitor = function (const str: PChar; const para: MagickOffsetType;
-   const sizetype: MagickSizeType; param: Pointer): PMagickBooleanType;
-
-type
-  Image = record
-   storage_class: ClassType;
-   colorspace: ColorspaceType;
-   compression: CompressionType;
-   quality: Cardinal;
-   orientation: OrientationType;
-   taint, matte: MagickBooleanType;
-   columns, rows, depth, colors: Cardinal;
-   colormap: PPixelPacket;
-   background_color, border_color, matte_color: PixelPacket;
-   gamma: double;
-   chromaticity: ChromaticityInfo;
-   rendering_intent: RenderingIntent;
-   profiles: Pointer;
-   units: ResolutionType;
-   montage, directory, geometry: PChar;
-   offset: Integer;
-   x_resolution, y_resolution: double;
-   page, extract_info, tile_info: RectangleInfo;  // deprecated
-   bias, blur, fuzz: double;
-   filter: FilterTypes;
-   interlace: InterlaceType;
-   endian: EndianType;
-   gravity: GravityType;
-   compose: CompositeOperator;
-   dispose: DisposeType;
-   clip_mask: Pointer; // PImage
-   scene, delay, ticks_per_second, iterations, total_colors: Cardinal;
-   start_loop: Integer;
-   error: ErrorInfo;
-   timer: TimerInfo;
-   progress_monitor: MagickProgressMonitor;
-   client_data: Pointer;
-   cache: Pointer;
-   attributes: Pointer;
-   ascii85: Pointer; //_Ascii85Info_
-   blob: Pointer; // _BlobInfo_
-   filename, magick_filename, magick: array[1..MaxTextExtent] of char;
-   magick_columns, magick_rows: Cardinal;
-   exception: ExceptionInfo;
-   debug: MagickBooleanType;
-   reference_count: Longint;
-   semaphore: Pointer; //PSemaphoreInfo;
-   color_profile, iptc_profile: ProfileInfo;
-   generic_profile: PProfileInfo;
-   generic_profiles: Cardinal;  // this & ProfileInfo is deprecated
-   signature: Cardinal;
-   previous, list, next: Pointer;
-{  struct _Image
-    *previous,
-    *list,
-    *next;}
- end;
- 
- PImage = ^Image;
-
-//type
-//  size_t = PStreamHandler(procedure (const image: PImage;
-//   const param: Pointer; const) );
-
-type
-  ImageInfo = record
-   compression: CompressionType;
-   orientation: OrientationType;
-   temporary, adjoin, affirm, antialias: MagickBooleanType;
-   size, extract, page, scenes: PChar;
-   scene, number_scenes, depth: Cardinal;
-   interlace: InterlaceType;
-   endian: EndianType;
-   units: ResolutionType;
-   quality: Cardinal;
-   sampling_factor, server_name, font, texture, density: PChar;
-   pointsize, fuzz: double;
-   background_color, border_color, matte_color: PixelPacket;
-   dither, monochrome: MagickBooleanType;
-   colors: Cardinal;
-   colorspace: ColorspaceType;
-   type_: ImageType ;
-   preview_type: PreviewType;
-   group: Longint;
-   ping, verbose: MagickBooleanType;
-   view, authenticate: PChar;
-   channel: ChannelType;
-   attributes: PImage;
-   options: Pointer;
-   progress_monitor: MagickProgressMonitor;
-   client_data, cache: Pointer;
-   stream: Cardinal; //StreamHandler;
-   file_: Pointer; // *file
-   blob: Pointer;
-   length: Integer;
-   magick, unique, zero, filename: array[1..MaxTextExtent] of char;
-   debug: MagickBooleanType;
-
-  {
-    Deprecated.
-  }
-   tile: PChar;
-   subimage, subrange: Cardinal;
-   pen: PixelPacket;
-   signature: Cardinal;
- end;
-
-  PImageInfo = ^ImageInfo;
-
-

+ 0 - 82
packages/base/imagemagick/magick/pixel.inc

@@ -1,82 +0,0 @@
-{
-  Copyright 1999-2005 ImageMagick Studio LLC, a non-profit organization
-  dedicated to making software imaging solutions freely available.
-  
-  You may not use this file except in compliance with the License.
-  obtain a copy of the License at
-  
-    http://www.imagemagick.org/script/license.php
-  
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
-
-  ImageMagick image constitute methods.
-}
-
-//#include <magick/constitute.h>
-
-type
-  QuantumType = (
-  UndefinedQuantum,
-  AlphaQuantum,
-  BlackQuantum,
-  BlueQuantum,
-  CMYKAQuantum,
-  CMYKQuantum,
-  CyanQuantum,
-  GrayAlphaQuantum,
-  GrayQuantum,
-  GreenQuantum,
-  IndexAlphaQuantum,
-  IndexQuantum,
-  MagentaQuantum,
-  OpacityQuantum,
-  RedQuantum,
-  RGBAQuantum,
-  RGBOQuantum,
-  RGBQuantum,
-  YellowQuantum,
-  GrayPadQuantum,
-  RGBPadQuantum
- );
-
-type
-  LongPixelPacket = record
-    red,
-    green,
-    blue,
-    opacity,
-    index: Cardinal;
-  end;
-
-type
-  MagickPixelPacket = record
-    colorspace: ColorspaceType;
-
-    matte: MagickBooleanType;
-
-    fuzz: double;
-
-    depth: Cardinal;
-
-    red,
-    green,
-    blue,
-    opacity,
-    index: MagickRealType;
-  end;
-
-  PMagickPixelPacket = ^MagickPixelPacket;
-
-{extern MagickExport MagickBooleanType
-  ExportImagePixels(const Image *,const long,const long,const unsigned long,
-    const unsigned long,const char *,const StorageType,void *,ExceptionInfo *),
-  ExportQuantumPixels(Image *,const QuantumType,const size_t,
-    const unsigned char *),
-  ImportImagePixels(Image *,const long,const long,const unsigned long,
-    const unsigned long,const char *,const StorageType,const void *),
-  ImportQuantumPixels(Image *,const QuantumType,const size_t,unsigned char *);}
-

+ 0 - 50
packages/base/imagemagick/magick/quantize.inc

@@ -1,50 +0,0 @@
-{
-  Copyright 1999-2005 ImageMagick Studio LLC, a non-profit organization
-  dedicated to making software imaging solutions freely available.
-  
-  You may not use this file except in compliance with the License.
-  obtain a copy of the License at
-  
-    http://www.imagemagick.org/script/license.php
-  
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
-
-  ImageMagick image quantization methods.
-}
-
-type
-  QuantizeInfo = record
-    number_colors: Cardinal;
-
-    tree_depth: Cardinal;
-
-    dither: MagickBooleanType;
-
-    colorspace: ColorspaceType;
-
-    measure_error: MagickBooleanType;
-
-    signature: Cardinal;
-  end;
-	PQuantizeInfo = ^QuantizeInfo;
-
-{extern MagickExport MagickBooleanType
-  GetImageQuantizeError(Image *),
-  MapImage(Image *,const Image *,const MagickBooleanType),
-  MapImages(Image *,const Image *,const MagickBooleanType),
-  OrderedDitherImage(Image *),
-  PosterizeImage(Image *,const unsigned long,const MagickBooleanType),
-  QuantizeImage(const QuantizeInfo *,Image *),
-  QuantizeImages(const QuantizeInfo *,Image *);
-
-extern MagickExport QuantizeInfo
-  *CloneQuantizeInfo(const QuantizeInfo *),
-  *DestroyQuantizeInfo(QuantizeInfo *);
-
-extern MagickExport void
-  CompressImageColormap(Image *),
-  GetQuantizeInfo(QuantizeInfo *);}

+ 0 - 37
packages/base/imagemagick/magick/semaphore.inc

@@ -1,37 +0,0 @@
-{
-  Copyright 1999-2005 ImageMagick Studio LLC, a non-profit organization
-  dedicated to making software imaging solutions freely available.
-  
-  You may not use this file except in compliance with the License.
-  obtain a copy of the License at
-  
-    http://www.imagemagick.org/script/license.php
-  
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
-
-  ImageMagick methods to lock and unlock semaphores.
-}
-#ifndef _MAGICK_SEMAPHORE_H
-#define _MAGICK_SEMAPHORE_H
-#endif
-
-typedef struct SemaphoreInfo
-  SemaphoreInfo;
-
-extern MagickExport MagickBooleanType
-  LockSemaphoreInfo(SemaphoreInfo *),
-  UnlockSemaphoreInfo(SemaphoreInfo *);
-
-extern MagickExport SemaphoreInfo
-  *AllocateSemaphoreInfo(void),
-  *DestroySemaphoreInfo(SemaphoreInfo *);
-
-extern MagickExport void
-  AcquireSemaphoreInfo(SemaphoreInfo **),
-  DestroySemaphore(void),
-  InitializeSemaphore(void),
-  RelinquishSemaphoreInfo(SemaphoreInfo *);

+ 0 - 53
packages/base/imagemagick/magick/statistic.inc

@@ -1,53 +0,0 @@
-{
-  Copyright 1999-2005 ImageMagick Studio LLC, a non-profit organization
-  dedicated to making software imaging solutions freely available.
-  
-  You may not use this file except in compliance with the License.
-  obtain a copy of the License at
-  
-    http://www.imagemagick.org/script/license.php
-  
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
-
-  ImageMagick image methods.
-}
-
-type
-  ChannelStatistics = record
-    depth: Cardinal;
-
-    minima, maxima: Quantum;
-
-    mean, standard_deviation: double;
-
-    scale: Cardinal;
-  end;
-  
-  PChannelStatistics = ^ChannelStatistics;
-
-{extern MagickExport ChannelStatistics
-  *GetImageChannelStatistics(const Image *,ExceptionInfo *);
-
-extern MagickExport MagickBooleanType
-  GetImageChannelExtrema(const Image *,const ChannelType,unsigned long *,
-    unsigned long *,ExceptionInfo *),
-  GetImageExtrema(const Image *,unsigned long *,unsigned long *,
-    ExceptionInfo *),
-  GetImageChannelMean(const Image *,const ChannelType,double *,double *,
-    ExceptionInfo *),
-  GetImageMean(const Image *,double *,double *,ExceptionInfo *),
-  SetImageChannelDepth(Image *,const ChannelType,const unsigned long),
-  SetImageDepth(Image *,const unsigned long);
-
-extern MagickExport RectangleInfo
-  GetImageBoundingBox(const Image *,ExceptionInfo *exception);
-
-extern MagickExport unsigned long
-  GetImageChannelDepth(const Image *,const ChannelType,ExceptionInfo *),
-  GetImageDepth(const Image *,ExceptionInfo *),
-  GetImageQuantumDepth(const Image *,const MagickBooleanType);}
-

+ 0 - 88
packages/base/imagemagick/magick/type.inc

@@ -1,88 +0,0 @@
-{
-  Copyright 1999-2005 ImageMagick Studio LLC, a non-profit organization
-  dedicated to making software imaging solutions freely available.
-  
-  You may not use this file except in compliance with the License.
-  obtain a copy of the License at
-  
-    http://www.imagemagick.org/script/license.php
-  
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
-
-  ImageMagick image type methods.
-}
-
-type
- StretchType = (
-  UndefinedStretch,
-  NormalStretch,
-  UltraCondensedStretch,
-  ExtraCondensedStretch,
-  CondensedStretch,
-  SemiCondensedStretch,
-  SemiExpandedStretch,
-  ExpandedStretch,
-  ExtraExpandedStretch,
-  UltraExpandedStretch,
-  AnyStretch
- );
-
-type
- StyleType = (
-  UndefinedStyle,
-  NormalStyle,
-  ItalicStyle,
-  ObliqueStyle,
-  AnyStyle
- );
-
-type
-  TypeInfo = record
-    face: Cardinal;
-
-    path,
-    name,
-    description,
-    family: PChar;
-
-    style: StyleType;
-
-    stretch: StretchType;
-
-    weight: Cardinal;
-
-    encoding,
-    foundry,
-    format,
-    metrics,
-    glyphs: PChar;
-
-    stealth: MagickBooleanType;
-
-    previous, next: Pointer;
-{  struct _TypeInfo
-    *previous,
-    *next;  /* deprecated, use GetTypeInfoList() */}
-
-    signature: Cardinal;
-  end;
-
-{function GetTypeList(const char *,unsigned long *,ExceptionInfo *): PPChar; external MagickExport;
-
-extern MagickExport MagickBooleanType
-  ListTypeInfo(FILE *,ExceptionInfo *);
-
-extern MagickExport const TypeInfo
-  *GetTypeInfo(const char *,ExceptionInfo *),
-  *GetTypeInfoByFamily(const char *,const StyleType,const StretchType,
-    const unsigned long,ExceptionInfo *),
-  **GetTypeInfoList(const char *,unsigned long *,ExceptionInfo *);
-
-MagickExport void
-  DestroyTypeList(void);}
-
-

+ 0 - 283
packages/base/imagemagick/wand/drawing_wand.inc

@@ -1,283 +0,0 @@
-{
-  Copyright 1999-2005 ImageMagick Studio LLC, a non-profit organization
-  dedicated to making software imaging solutions freely available.
-  
-  You may not use this file except in compliance with the License.
-  obtain a copy of the License at
-  
-    http://www.imagemagick.org/script/license.php
-  
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
-
-  ImageMagick drawing wand API.
-}
-
-{
-  Declaration from drawing-wand.c
-}
-type
- PathOperation = (
-  PathDefaultOperation,
-  PathCloseOperation,                        // Z|z (none) */
-  PathCurveToOperation,                      // C|c (x1 y1 x2 y2 x y)+ */
-  PathCurveToQuadraticBezierOperation,       // Q|q (x1 y1 x y)+ */
-  PathCurveToQuadraticBezierSmoothOperation, // T|t (x y)+ */
-  PathCurveToSmoothOperation,                // S|s (x2 y2 x y)+ */
-  PathEllipticArcOperation,                  // A|a (rx ry x-axis-rotation large-arc-flag sweep-flag x y)+ */
-  PathLineToHorizontalOperation,             // H|h x+ */
-  PathLineToOperation,                       // L|l (x y)+ */
-  PathLineToVerticalOperation,               // V|v y+ */
-  PathMoveToOperation                        // M|m (x y)+ */
- );
-
-type
- PathMode = (
-  DefaultPathMode,
-  AbsolutePathMode,
-  RelativePathMode
- );
-
-  DrawingWand = record
-    id: Cardinal;
-
-    name: array[0..MaxTextExtent] of Char;
-
-    { Support structures }
-  
-    image: PImage;
-
-    exception: ExceptionInfo;
-
-    { MVG output string and housekeeping }
-  
-    mvg: PChar;               // MVG data
-
-    mvg_alloc,                // total allocated memory
-//    mvg_length: size_t;       // total MVG length
-
-    mvg_width: Cardinal;      // current line width 
-
-    { Pattern support }
-    
-    pattern_id: PChar;
-
-    pattern_bounds: RectangleInfo;
-
-//    pattern_offset: size_t;
-
-    { Graphic wand }
-    
-    index: Cardinal;          // array index
-
-    graphic_context: PPDrawInfo;
-
-    filter_off: MagickBooleanType;    // true if not filtering attributes
-
-    { Pretty-printing depth }
-  
-    indent_depth: Cardinal;       // number of left-hand pad characters 
-
-    { Path operation support }
-  
-    path_operation: PathOperation;
-
-    path_mode: PathMode;
-
-    destroy,
-    debug: MagickBooleanType;
-
-    signature: Cardinal;
-  end;
- 
-  PDrawingWand = ^DrawingWand;
-
-const x = 9;
-
-function DrawGetTextAlignment(const wand: PDrawingWand): AlignType; cdecl; external WandExport;
-
-function DrawGetClipPath(const wand: PDrawingWand): PChar; cdecl; external WandExport;
-function DrawGetException(const wand: PDrawingWand; severity: PExceptionType): PChar; cdecl; external WandExport;
-function DrawGetFont(const wand: PDrawingWand): PChar; cdecl; external WandExport;
-function DrawGetFontFamily(const wand: PDrawingWand): PChar; cdecl; external WandExport;
-function DrawGetTextEncoding(const wand: PDrawingWand): PChar; cdecl; external WandExport;
-function DrawGetVectorGraphics(const wand: PDrawingWand): PChar; cdecl; external WandExport;
-
-function DrawGetClipUnits(const wand: PDrawingWand): ClipPathUnits; cdecl; external WandExport;
-
-function DrawGetTextDecoration(const wand: PDrawingWand): DecorationType; cdecl; external WandExport;
-
-function DrawGetFillAlpha(const wand: PDrawingWand): double; cdecl; external WandExport;
-function DrawGetFontSize(const wand: PDrawingWand): double; cdecl; external WandExport;
-function DrawGetStrokeDashArray(const wand: PDrawingWand; number_elements: Cardinal): PDouble; cdecl; external WandExport;
-function DrawGetStrokeDashOffset(const wand: PDrawingWand): double; cdecl; external WandExport;
-function DrawGetStrokeAlpha(const wand: PDrawingWand): double; cdecl; external WandExport;
-function DrawGetStrokeWidth(const wand: PDrawingWand): double; cdecl; external WandExport;
-
-function PeekDrawingWand(const wand: PDrawingWand): PDrawInfo; cdecl; external WandExport;
-
-function CloneDrawingWand(const wand: PDrawingWand): PDrawingWand; cdecl; external WandExport;
-function DestroyDrawingWand(wand: PDrawingWand): PDrawingWand; cdecl; external WandExport;
-{ Sem documentação
-function DrawAllocateWand(const DrawInfo *,Image *): PDrawingWand; cdecl; external WandExport;
-}
-function NewDrawingWand: PDrawingWand; cdecl; external WandExport;
-
-function DrawGetClipRule(const wand: PDrawingWand): FillRule; cdecl; external WandExport;
-function DrawGetFillRule(const wand: PDrawingWand): FillRule; cdecl; external WandExport;
-
-function DrawGetGravity(const wand: PDrawingWand): GravityType; cdecl; external WandExport;
-
-function DrawGetStrokeLineCap(const wand: PDrawingWand): LineCap; cdecl; external WandExport;
-
-function DrawGetStrokeLineJoin(const wand: PDrawingWand): LineJoin; cdecl; external WandExport;
-
-function DrawClearException(wand: PDrawingWand): MagickBooleanType; cdecl; external WandExport;
-function DrawComposite(wand: PDrawingWand; const compose: CompositeOperator;
- const x, y, width, height: double; magick_wand: PMagickWand): MagickBooleanType; cdecl; external WandExport;
-function DrawGetStrokeAntialias(const wand: PDrawingWand): MagickBooleanType; cdecl; external WandExport;
-function DrawGetTextAntialias(const wand: PDrawingWand): MagickBooleanType; cdecl; external WandExport;
-function DrawPopPattern(wand: PDrawingWand): MagickBooleanType; cdecl; external WandExport;
-function DrawPushPattern(wand: PDrawingWand; const pattern_id: PChar;
- const x, y, width, height: double): MagickBooleanType; cdecl; external WandExport;
-function DrawRender(wand: PDrawingWand): MagickBooleanType; cdecl; external WandExport;
-function DrawSetClipPath(wand: PDrawingWand; const clip_path: PChar): MagickBooleanType; cdecl; external WandExport;
-function DrawSetFillPatternURL(wand: PDrawingWand; const fill_url: PChar): MagickBooleanType; cdecl; external WandExport;
-function DrawSetFont(wand: PDrawingWand; const font_name: PChar): MagickBooleanType; cdecl; external WandExport;
-function DrawSetFontFamily(wand: PDrawingWand; const font_family: PChar): MagickBooleanType; cdecl; external WandExport;
-function DrawSetStrokeDashArray(wand: PDrawingWand; const number_elements: Cardinal;
- const dash_array: Pdouble): MagickBooleanType; cdecl; external WandExport;
-function DrawSetStrokePatternURL(wand: PDrawingWand; const stroke_url: PChar): MagickBooleanType; cdecl; external WandExport;
-function DrawSetVectorGraphics(wand: PDrawingWand; const xml: PChar): MagickBooleanType; cdecl; external WandExport;
-function IsDrawingWand(const wand: PDrawingWand): MagickBooleanType; cdecl; external WandExport;
-function PopDrawingWand(wand: PDrawingWand): MagickBooleanType; cdecl; external WandExport;
-function PushDrawingWand(wand: PDrawingWand): MagickBooleanType; cdecl; external WandExport;
-
-function DrawGetFontStretch(const wand: PDrawingWand): StretchType; cdecl; external WandExport;
-
-function DrawGetFontStyle(const wand: PDrawingWand): StyleType; cdecl; external WandExport;
-
-function DrawGetFontWeight(const wand: PDrawingWand): Cardinal; cdecl; external WandExport;
-function DrawGetStrokeMiterLimit(const wand: PDrawingWand): Cardinal; cdecl; external WandExport;
-
-procedure ClearDrawingWand(wand: PDrawingWand); cdecl; external WandExport;
-procedure DrawAffine(wand: PDrawingWand; const affine: PAffineMatrix); cdecl; external WandExport;
-procedure DrawAnnotation(wand: PDrawingWand; const  x, y: double;
- const text: PChar); cdecl; external WandExport;
-procedure DrawArc(wand: PDrawingWand; const sx, sy, ex, ey, sd, ed: double); cdecl; external WandExport;
-procedure DrawBezier(wand: PDrawingWand; const number_coordinates: Cardinal;
- const coordinates: PPointInfo); cdecl; external WandExport;
-procedure DrawCircle(wand: PDrawingWand; const ox, oy, px, py: double); cdecl; external WandExport;
-procedure DrawColor(wand: PDrawingWand; const x, y: double;
- const paint_method: PaintMethod); cdecl; external WandExport;
-procedure DrawComment(wand: PDrawingWand; const comment: PChar); cdecl; external WandExport;
-procedure DrawEllipse(wand: PDrawingWand; const ox, oy, rx, ry, start, end_: double); cdecl; external WandExport;
-procedure DrawGetFillColor(const wand: PDrawingWand; fill_color: PPixelWand); cdecl; external WandExport;
-procedure DrawGetStrokeColor(const wand: PDrawingWand; stroke_color: PPixelWand); cdecl; external WandExport;
-procedure DrawGetTextUnderColor(const wand: PDrawingWand; under_color: PPixelWand); cdecl; external WandExport;
-procedure DrawLine(wand: PDrawingWand; const sx, sy, ex, ey: double); cdecl; external WandExport;
-procedure DrawMatte(wand: PDrawingWand; const x, y: double;
- const paint_method: PaintMethod); cdecl; external WandExport;
-procedure DrawPathClose(wand: PDrawingWand); cdecl; external WandExport;
-procedure DrawPathCurveToAbsolute(wand: PDrawingWand;
- const x1, y1, x2, y2, x, y: double); cdecl; external WandExport;
-procedure DrawPathCurveToRelative(wand: PDrawingWand;
- const x1, y1, x2, y2, x, y: double); cdecl; external WandExport;
-procedure DrawPathCurveToQuadraticBezierAbsolute(wand: PDrawingWand;
- const x1, y1, x, y: double); cdecl; external WandExport;
-procedure DrawPathCurveToQuadraticBezierRelative(wand: PDrawingWand;
- const x1, y1, x, y: double); cdecl; external WandExport;
-procedure DrawPathCurveToQuadraticBezierSmoothAbsolute(wand: PDrawingWand;
- const x, y: double); cdecl; external WandExport;
-procedure DrawPathCurveToQuadraticBezierSmoothRelative(wand: PDrawingWand;
- const x, y: double); cdecl; external WandExport;
-procedure DrawPathCurveToSmoothAbsolute(wand: PDrawingWand;
- const x2, y2, x, y: double); cdecl; external WandExport;
-procedure DrawPathCurveToSmoothRelative(wand: PDrawingWand;
- const x2, y2, x, y: double); cdecl; external WandExport;
-procedure DrawPathEllipticArcAbsolute(wand: PDrawingWand;
-    const rx, ry, x_axis_rotation: double;
-    const large_arc_flag: MagickBooleanType;
-    const sweep_flag: MagickBooleanType; const x, y: double); cdecl; external WandExport;
-procedure DrawPathEllipticArcRelative(wand: PDrawingWand;
-    const rx, ry, x_axis_rotation: double;
-    const large_arc_flag: MagickBooleanType;
-    const sweep_flag: MagickBooleanType; const x, y: double); cdecl; external WandExport;
-procedure DrawPathFinish(wand: PDrawingWand); cdecl; external WandExport;
-procedure DrawPathLineToAbsolute(wand: PDrawingWand; const x, y: double); cdecl; external WandExport;
-procedure DrawPathLineToRelative(wand: PDrawingWand; const x, y: double); cdecl; external WandExport;
-{procedure DrawPathLineToHorizontalAbsolute(wand: PDrawingWand;
- const mode: PathMode; const x: double); cdecl; external WandExport;
-procedure DrawPathLineToHorizontalRelative(wand: PDrawingWand); cdecl; external WandExport;
-
-Contradição na declaração
-}
-procedure DrawPathLineToVerticalAbsolute(wand: PDrawingWand; const y: double); cdecl; external WandExport;
-procedure DrawPathLineToVerticalRelative(wand: PDrawingWand; const y: double); cdecl; external WandExport;
-procedure DrawPathMoveToAbsolute(wand: PDrawingWand; const x, y: double); cdecl; external WandExport;
-procedure DrawPathMoveToRelative(wand: PDrawingWand; const x, y: double); cdecl; external WandExport;
-procedure DrawPathStart(wand: PDrawingWand); cdecl; external WandExport;
-procedure DrawPoint(wand: PDrawingWand; const x, y: double); cdecl; external WandExport;
-procedure DrawPolygon(wand: PDrawingWand; const number_coordinates: Cardinal; const coordinates: PPointInfo
- ); cdecl; external WandExport;
-procedure DrawPolyline(wand: PDrawingWand; const number_coordinates: Cardinal; const coordinates: PPointInfo
- ); cdecl; external WandExport;
-procedure DrawPopClipPath(wand: PDrawingWand); cdecl; external WandExport;
-procedure DrawPopDefs(wand: PDrawingWand); cdecl; external WandExport;
-procedure DrawPushClipPath(wand: PDrawingWand; clip_path_id: PChar); cdecl; external WandExport;
-procedure DrawPushDefs(wand: PDrawingWand); cdecl; external WandExport;
-procedure DrawRectangle(wand: PDrawingWand; const x1, y1, x2, y2: double); cdecl; external WandExport;
-procedure DrawRotate(wand: PDrawingWand; const degrees: double); cdecl; external WandExport;
-procedure DrawRoundRectangle(wand: PDrawingWand; const x1, y1, x2, y2, rx, ry: double); cdecl; external WandExport;
-procedure DrawScale(wand: PDrawingWand; const x, y: double); cdecl; external WandExport;
-procedure DrawSetClipRule(wand: PDrawingWand; const fill_rule: FillRule); cdecl; external WandExport;
-procedure DrawSetClipUnits(wand: PDrawingWand; const clip_units: ClipPathUnits); cdecl; external WandExport;
-procedure DrawSetFillColor(wand: PDrawingWand; const fill_wand: PPixelWand); cdecl; external WandExport;
-procedure DrawSetFillAlpha(wand: PDrawingWand; const fill_opacity: double); cdecl; external WandExport;
-procedure DrawSetFillRule(wand: PDrawingWand; const fill_rule: FillRule); cdecl; external WandExport;
-procedure DrawSetFontSize(wand: PDrawingWand; const pointsize: double); cdecl; external WandExport;
-procedure DrawSetFontStretch(wand: PDrawingWand; const font_stretch: StretchType); cdecl; external WandExport;
-procedure DrawSetFontStyle(wand: PDrawingWand; const style: StyleType); cdecl; external WandExport;
-procedure DrawSetFontWeight(wand: PDrawingWand; const font_weight: Cardinal); cdecl; external WandExport;
-procedure DrawSetGravity(wand: PDrawingWand; const gravity: GravityType); cdecl; external WandExport;
-procedure DrawSkewX(wand: PDrawingWand; const degrees: double); cdecl; external WandExport;
-procedure DrawSkewY(wand: PDrawingWand; const degrees: double); cdecl; external WandExport;
-procedure DrawSetStrokeAntialias(wand: PDrawingWand; const stroke_antialias: MagickBooleanType
- ); cdecl; external WandExport;
-procedure DrawSetStrokeColor(wand: PDrawingWand; const stroke_wand: PPixelWand); cdecl; external WandExport;
-procedure DrawSetStrokeDashOffset(wand: PDrawingWand; const dash_offset: double); cdecl; external WandExport;
-procedure DrawSetStrokeLineCap(wand: PDrawingWand; const linecap_: LineCap); cdecl; external WandExport;
-procedure DrawSetStrokeLineJoin(wand: PDrawingWand; const linejoin_: LineJoin); cdecl; external WandExport;
-procedure DrawSetStrokeMiterLimit(wand: PDrawingWand; const miterlimit: Cardinal); cdecl; external WandExport;
-procedure DrawSetStrokeAlpha(wand: PDrawingWand; const stroke_opacity: double); cdecl; external WandExport;
-procedure DrawSetStrokeWidth(wand: PDrawingWand; const troke_width: double); cdecl; external WandExport;
-procedure DrawSetTextAlignment(wand: PDrawingWand; const alignment: AlignType); cdecl; external WandExport;
-procedure DrawSetTextAntialias(wand: PDrawingWand; const text_antialias: MagickBooleanType
- ); cdecl; external WandExport;
-procedure DrawSetTextDecoration(wand: PDrawingWand; const decoration: DecorationType); cdecl; external WandExport;
-procedure DrawSetTextEncoding(wand: PDrawingWand; const encoding: PChar); cdecl; external WandExport;
-procedure DrawSetTextUnderColor(wand: PDrawingWand; const under_wand: PPixelWand); cdecl; external WandExport;
-procedure DrawSetViewbox(wand: PDrawingWand; x1, y1, x2, y2: Cardinal); cdecl; external WandExport;
-procedure DrawTranslate(wand: PDrawingWand; const x, y: double); cdecl; external WandExport;
-
-{
-  Deprecated.
-}
-{typedef struct _DrawingWand
-  *DrawContext;
-
-extern WandExport double
-  DrawGetFillOpacity(const wand: PDrawingWand),
-  DrawGetStrokeOpacity(const wand: PDrawingWand);
-
-extern WandExport DrawInfo
-  *DrawPeekGraphicWand(const wand: PDrawingWand);
-
-extern WandExport void
-  DrawPopGraphicContext(DrawingWand *),
-  DrawPushGraphicContext(DrawingWand *),
-  DrawSetFillOpacity(DrawingWand *,const double),
-  DrawSetStrokeOpacity(DrawingWand *,const double);}

+ 0 - 80
packages/base/imagemagick/wand/magick_attribute.inc

@@ -1,80 +0,0 @@
-{
-  Copyright 1999-2005 ImageMagick Studio LLC, a non-profit organization
-  dedicated to making software imaging solutions freely available.
-  
-  You may not use this file except in compliance with the License.
-  obtain a copy of the License at
-  
-    http://www.imagemagick.org/script/license.php
-  
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
-
-  Set or Get Magick Wand Attributes.
-}
-
-function MagickGetException(wand: PMagickWand;
- severity: PExceptionType): PChar; cdecl; external WandExport;
-function MagickGetFilename(const wand: PMagickWand): PChar; cdecl; external WandExport;
-function MagickGetFormat(wand: PMagickWand): PChar; cdecl; external WandExport;
-function MagickGetHomeURL: PChar; cdecl; external WandExport;
-function MagickGetOption(wand: PMagickWand;
- const key: PChar): PChar; cdecl; external WandExport;
-{sem documentação
-extern WandExport char
-  *MagickQueryConfigureOption(const char *),
-  **MagickQueryConfigureOptions(const char *,unsigned long *),
-  **MagickQueryFonts(const char *,unsigned long *),
-  **MagickQueryFormats(const char *,unsigned long *);}
-
-function MagickGetCompression(wand: PMagickWand): CompressionType; cdecl; external WandExport;
-
-function MagickGetCopyright: PChar; cdecl; external WandExport;
-function MagickGetPackageName: PChar; cdecl; external WandExport;
-function MagickGetQuantumDepth(depth: PCardinal): PChar; cdecl; external WandExport;
-function MagickGetQuantumRange(range: PCardinal): PChar; cdecl; external WandExport;
-function MagickGetReleaseDate: PChar; cdecl; external WandExport;
-function MagickGetVersion(version: PCardinal): PChar; cdecl; external WandExport;
-
-function MagickGetSamplingFactors(wand: PMagickWand;
- number_factors: PCardinal): Pdouble; cdecl; external WandExport;
-{function (wand: PMagickWand): Pdouble; cdecl; external WandExport;
-  *MagickQueryFontMetrics(MagickWand *,const DrawingWand *,const char *),
-  *MagickQueryMultilineFontMetrics(MagickWand *,const DrawingWand *,
-    const char *);}
-
-function MagickGetInterlaceScheme(wand: PMagickWand): InterlaceType; cdecl; external WandExport;
-
-{function (const wand: PMagickWand): ; cdecl; external WandExport;
-extern WandExport MagickBooleanType
-  MagickGetPage(MagickWand *,unsigned long *,unsigned long *,long *,long *),
-  MagickGetSize(const MagickWand *,unsigned long *,unsigned long *),
-  MagickSetBackgroundColor(MagickWand *,const PixelWand *),
-  MagickSetCompression(MagickWand *,const CompressionType),
-  MagickSetCompressionQuality(MagickWand *,const unsigned long),
-  MagickSetFilename(MagickWand *,const char *),
-  MagickSetFormat(MagickWand *,const char *),
-  MagickSetInterlaceScheme(MagickWand *,const InterlaceType),
-  MagickSetOption(MagickWand *,const char *,const char *),
-  MagickSetPage(MagickWand *,const unsigned long,const unsigned long,
-    const long,const long),
-  MagickSetPassphrase(MagickWand *,const char *),
-  MagickSetResolution(MagickWand *,const double,const double),
-  MagickSetResourceLimit(const ResourceType type,const unsigned long limit),
-  MagickSetSamplingFactors(MagickWand *,const unsigned long,const double *),
-  MagickSetSize(MagickWand *,const unsigned long,const unsigned long),
-  MagickSetType(MagickWand *,const ImageType);
-
-function (const wand: PMagickWand): ; cdecl; external WandExport;
-extern WandExport MagickProgressMonitor
-  MagickSetProgressMonitor(MagickWand *,const MagickProgressMonitor,void *);
-
-function (const wand: PMagickWand): ; cdecl; external WandExport;
-extern WandExport unsigned long
-  MagickGetCompressionQuality(MagickWand *),
-  MagickGetResource(const ResourceType),
-  MagickGetResourceLimit(const ResourceType);}
-

+ 0 - 420
packages/base/imagemagick/wand/magick_image.inc

@@ -1,420 +0,0 @@
-{
-  Copyright 1999-2005 ImageMagick Studio LLC, a non-profit organization
-  dedicated to making software imaging solutions freely available.
-  
-  You may not use this file except in compliance with the License.
-  obtain a copy of the License at
-  
-    http://www.imagemagick.org/script/license.php
-  
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
-
-  Magick Wand Image Methods.
-}
-
-{ BugFix :
-  - MagickDrawImage(...const drawing_wand: PMagickWand...
-  + MagickDrawImage(...const drawing_wand: PDrawingWand...
-  - MagickAffineTransformImage(...const drawing_wand: PMagickWand...
-  + MagickAffineTransformImage(...const drawing_wand: PDrawingWand...
-  - MagickAnnotateImage(...const drawing_wand: PMagickWand...
-  + MagickAnnotateImage(...const drawing_wand: PDrawingWand...
-}
-
-function MagickGetImageChannelStatistics(wand: PMagickWand): PChannelStatistics; cdecl; external WandExport;
-
-function MagickGetImageAttribute(wand: PMagickWand): PChar; cdecl; external WandExport;
-function MagickGetImageFilename(wand: PMagickWand): PChar; cdecl; external WandExport;
-function MagickGetImageFormat(wand: PMagickWand): PChar; cdecl; external WandExport;
-function MagickGetImageSignature(wand: PMagickWand): PChar; cdecl; external WandExport;
-function MagickIdentifyImage(wand: PMagickWand): PChar; cdecl; external WandExport;
-
-function MagickGetImageCompose(wand: PMagickWand): CompositeOperator; cdecl; external WandExport;
-
-function MagickGetImageColorspace(wand: PMagickWand): ColorspaceType; cdecl; external WandExport;
-
-function MagickGetImageCompression(wand: PMagickWand): CompressionType; cdecl; external WandExport;
-
-function MagickGetImageDispose(wand: PMagickWand): DisposeType; cdecl; external WandExport;
-
-function MagickGetImageGamma(wand: PMagickWand): double; cdecl; external WandExport;
-function MagickGetImageTotalInkDensity(wand: PMagickWand): double; cdecl; external WandExport;
-
-function GetImageFromMagickWand(wand: PMagickWand): PImage; cdecl; external WandExport;
-
-function MagickGetImageType(wand: PMagickWand): ImageType; cdecl; external WandExport;
-
-function MagickGetImageInterlaceScheme(wand: PMagickWand): InterlaceType; cdecl; external WandExport;
-
-function MagickGetImageIndex(wand: PMagickWand): Integer; cdecl; external WandExport;
-
-function MagickAdaptiveThresholdImage(wand: PMagickWand;
-     const width, height: Cardinal; const offset: Integer): MagickBooleanType; cdecl; external WandExport;
-function MagickAddImage(wand: PMagickWand; const add_wand: PMagickWand): MagickBooleanType; cdecl; external WandExport;
-function MagickAddNoiseImage(wand: PMagickWand; const noise_type: NoiseType): MagickBooleanType; cdecl; external WandExport;
-function MagickAffineTransformImage(wand: PMagickWand;
- const drawing_wand: PDrawingWand): MagickBooleanType; cdecl; external WandExport;
-function MagickAnnotateImage(wand: PMagickWand;
- const drawing_wand: PDrawingWand; const x, y, angle: double;
- const text: PChar): MagickBooleanType; cdecl; external WandExport;
-function MagickAnimateImages(wand: PMagickWand;
- const server_name: PChar): MagickBooleanType; cdecl; external WandExport;
-function MagickBlackThresholdImage(wand: PMagickWand;
- const threshold: PPixelWand): MagickBooleanType; cdecl; external WandExport;
-function MagickBlurImage(wand: PMagickWand;
- const radius, sigma: double): MagickBooleanType; cdecl; external WandExport;
-function MagickBlurImageChannel(wand: PMagickWand;
- const channel: ChannelType; const radius, sigma: double): MagickBooleanType; cdecl; external WandExport;
-function MagickBorderImage(wand: PMagickWand;
- const bordercolor: PPixelWand; const width, height: Cardinal): MagickBooleanType; cdecl; external WandExport;
-function MagickCharcoalImage(wand: PMagickWand;
-   const radius, sigma: double): MagickBooleanType; cdecl; external WandExport;
-function MagickChopImage(wand: PMagickWand;
- const width, height: Cardinal; const x, y: Integer): MagickBooleanType; cdecl; external WandExport;
-function MagickClipImage(wand: PMagickWand): MagickBooleanType; cdecl; external WandExport;
-function MagickClipPathImage(wand: PMagickWand;
- const pathname: PChar; const inside: MagickBooleanType): MagickBooleanType; cdecl; external WandExport;
-function MagickColorFloodfillImage(wand: PMagickWand;
- const fill: PPixelWand; const fuzz: double; const bordercolor: PPixelWand;
- const x, y: Integer): MagickBooleanType; cdecl; external WandExport;
-function MagickColorizeImage(wand: PMagickWand;
- const colorize, opacity: PPixelWand): MagickBooleanType; cdecl; external WandExport;
-function MagickCommentImage(wand: PMagickWand;
- const comment: PChar): MagickBooleanType; cdecl; external WandExport;
-function MagickCompositeImage(wand: PMagickWand;
- const composite_wand: PMagickWand; const compose: CompositeOperator;
- const x, y: Integer): MagickBooleanType; cdecl; external WandExport;
-function MagickConstituteImage(wand: PMagickWand;
- const columns, rows: Cardinal; const map: PChar;
- const storage: StorageType; pixels: Pointer): MagickBooleanType; cdecl; external WandExport;
-function MagickContrastImage(wand: PMagickWand;
- const sharpen: MagickBooleanType): MagickBooleanType; cdecl; external WandExport;
-function MagickConvolveImage(wand: PMagickWand;
- const order: Cardinal; const kernel: PDouble): MagickBooleanType; cdecl; external WandExport;
-function MagickConvolveImageChannel(wand: PMagickWand;
- const channel: ChannelType; const order: Cardinal;
- const kernel: PDouble): MagickBooleanType; cdecl; external WandExport;
-function MagickCropImage(wand: PMagickWand;
- const width, height: Cardinal; const x, y: Integer): MagickBooleanType; cdecl; external WandExport;
-function MagickCycleColormapImage(wand: PMagickWand;
- const displace: Integer): MagickBooleanType; cdecl; external WandExport;
-function MagickDespeckleImage(wand: PMagickWand): MagickBooleanType; cdecl; external WandExport;
-function MagickDisplayImage(wand: PMagickWand;
- const server_name: PChar): MagickBooleanType; cdecl; external WandExport;
-function MagickDisplayImages(wand: PMagickWand;
- const server_name: PChar): MagickBooleanType; cdecl; external WandExport;
-function MagickDrawImage(wand: PMagickWand;
- const drawing_wand: PDrawingWand): MagickBooleanType; cdecl; external WandExport;
-function MagickEdgeImage(wand: PMagickWand;
- const radius: double): MagickBooleanType; cdecl; external WandExport;
-function MagickEmbossImage(wand: PMagickWand;
- const radius, sigma: double): MagickBooleanType; cdecl; external WandExport;
-function MagickEnhanceImage(wand: PMagickWand): MagickBooleanType; cdecl; external WandExport;
-function MagickEqualizeImage(wand: PMagickWand): MagickBooleanType; cdecl; external WandExport;
-function MagickEvaluateImage(wand: PMagickWand;
- const op: MagickEvaluateOperator; const constant: double): MagickBooleanType; cdecl; external WandExport;
-function MagickEvaluateImageChannel(wand: PMagickWand;
- const op: MagickEvaluateOperator; const constant: double): MagickBooleanType; cdecl; external WandExport;
-function MagickFlipImage(wand: PMagickWand): MagickBooleanType; cdecl; external WandExport;
-function MagickFlopImage(wand: PMagickWand): MagickBooleanType; cdecl; external WandExport;
-function MagickFrameImage(wand: PMagickWand;
- const matte_color: PPixelWand; const width, height: Cardinal;
- const inner_bevel, outer_bevel: Integer): MagickBooleanType; cdecl; external WandExport;
-function MagickGammaImage(wand: PMagickWand; const gamma: double): MagickBooleanType; cdecl; external WandExport;
-function MagickGammaImageChannel(wand: PMagickWand;
- const channel: ChannelType; const gamma: double): MagickBooleanType; cdecl; external WandExport;
-function MagickGaussianBlurImage(wand: PMagickWand;
- const radius, sigma: double): MagickBooleanType; cdecl; external WandExport;
-function MagickGaussianBlurImageChannel(wand: PMagickWand;
- const channel: ChannelType; const radius, sigma: double): MagickBooleanType; cdecl; external WandExport;
-function MagickGetImageBackgroundColor(wand: PMagickWand;
- background_color: PPixelWand): MagickBooleanType; cdecl; external WandExport;
-function MagickGetImageBluePrimary(wand: PMagickWand; x, y: Pdouble): MagickBooleanType; cdecl; external WandExport;
-function MagickGetImageBorderColor(wand: PMagickWand; border_color: PPixelWand
- ): MagickBooleanType; cdecl; external WandExport;
-function MagickGetImageChannelDistortion(wand: PMagickWand;
- const reference: PMagickWand; const channel: ChannelType;
- const metric: MetricType; distortion: Pdouble): MagickBooleanType; cdecl; external WandExport;
-function MagickGetImageDistortion(wand: PMagickWand;
- const reference: PMagickWand; const metric: MetricType;
- distortion: Pdouble): MagickBooleanType; cdecl; external WandExport;
-function MagickGetImageChannelExtrema(wand: PMagickWand;
- const channel: ChannelType; minima, maxima: PCardinal): MagickBooleanType; cdecl; external WandExport;
-function MagickGetImageChannelMean(wand: PMagickWand;
- const channel: ChannelType; mean, standard_deviation: Pdouble): MagickBooleanType; cdecl; external WandExport;
-function MagickGetImageColormapColor(wand: PMagickWand;
- const index: Cardinal; color: PPixelWand): MagickBooleanType; cdecl; external WandExport;
-function MagickGetImageExtrema(wand: PMagickWand;
- min, max: Cardinal): MagickBooleanType; cdecl; external WandExport;
-function MagickGetImageGreenPrimary(wand: PMagickWand; x, y: Pdouble): MagickBooleanType; cdecl; external WandExport;
-function MagickGetImageMatteColor(wand: PMagickWand;
- matte_color: PPixelWand): MagickBooleanType; cdecl; external WandExport;
-function MagickGetImagePage(wand: PMagickWand;
- width, height: PCardinal; x, y: PInteger): MagickBooleanType; cdecl; external WandExport;
-function MagickGetImagePixelColor(wand: PMagickWand;
- const x, y: Integer; color: PPixelWand): MagickBooleanType; cdecl; external WandExport;
-function MagickGetImagePixels(wand: PMagickWand;
- const x, y: Integer; const columns, rows: Cardinal;
- const map: PChar; const storage: StorageType; pixels: Pointer): MagickBooleanType; cdecl; external WandExport;
-function MagickGetImageRedPrimary(wand: PMagickWand; x, y: Pdouble): MagickBooleanType; cdecl; external WandExport;
-function MagickGetImageResolution(wand: PMagickWand; x, y: Pdouble): MagickBooleanType; cdecl; external WandExport;
-function MagickGetImageWhitePoint(wand: PMagickWand; x, y: Pdouble): MagickBooleanType; cdecl; external WandExport;
-function MagickHasNextImage(wand: PMagickWand): MagickBooleanType; cdecl; external WandExport;
-function MagickHasPreviousImage(wand: PMagickWand): MagickBooleanType; cdecl; external WandExport;
-function MagickImplodeImage(wand: PMagickWand; const radius: double): MagickBooleanType; cdecl; external WandExport;
-function MagickLabelImage(wand: PMagickWand; const _label: PChar): MagickBooleanType; cdecl; external WandExport;
-function MagickLevelImage(wand: PMagickWand;
- const black_point, gamma, white_point: double): MagickBooleanType; cdecl; external WandExport;
-function MagickLevelImageChannel(wand: PMagickWand;
- const channel: ChannelType; const black_point, gamma, white_point: double
- ): MagickBooleanType; cdecl; external WandExport;
-function MagickMagnifyImage(wand: PMagickWand): MagickBooleanType; cdecl; external WandExport;
-function MagickMapImage(wand: PMagickWand;
- const map_wand: PMagickWand; const dither: MagickBooleanType): MagickBooleanType; cdecl; external WandExport;
-function MagickMatteFloodfillImage(wand: PMagickWand;
- const opacity: Quantum; const fuzz: double; const bordercolor: PPixelWand;
- const x, y: Integer): MagickBooleanType; cdecl; external WandExport;
-function MagickMedianFilterImage(wand: PMagickWand; const radius: double): MagickBooleanType; cdecl; external WandExport;
-function MagickMinifyImage(wand: PMagickWand): MagickBooleanType; cdecl; external WandExport;
-function MagickModulateImage(wand: PMagickWand;
- const brightness, saturation, hue: double): MagickBooleanType; cdecl; external WandExport;
-function MagickMotionBlurImage(wand: PMagickWand;
- const radius, sigma, angle: double): MagickBooleanType; cdecl; external WandExport;
-function MagickNegateImage(wand: PMagickWand; const gray: MagickBooleanType): MagickBooleanType; cdecl; external WandExport;
-{
-function MagickNegateImageChannel(wand: PMagickWand): MagickBooleanType; external WandExport;
-  (MagickWand *,const ChannelType,
-    const MagickBooleanType),
-  Documentation not found
-}
-function MagickNewImage(wand: PMagickWand;
- const columns, rows: Cardinal; const background: PPixelWand): MagickBooleanType; cdecl; external WandExport;
-function MagickNextImage(wand: PMagickWand): MagickBooleanType; cdecl; external WandExport;
-function MagickNormalizeImage(wand: PMagickWand): MagickBooleanType; cdecl; external WandExport;
-function MagickOilPaintImage(wand: PMagickWand; const radius: double): MagickBooleanType; cdecl; external WandExport;
-function MagickPaintOpaqueImage(wand: PMagickWand;
- const target, fill: PPixelWand; const fuzz: double): MagickBooleanType; cdecl; external WandExport;
-function MagickPaintTransparentImage(wand: PMagickWand;
- const target: PPixelWand; const opacity: Quantum; const fuzz: double): MagickBooleanType; cdecl; external WandExport;
-function MagickPingImage(wand: PMagickWand;
- const filename: PChar): MagickBooleanType; cdecl; external WandExport;
-{
-function MagickPosterizeImage(wand: PMagickWand;
- const levels: Word; const dither: MagickBooleanType): MagickBooleanType; cdecl; external WandExport;
-??
-}
-function MagickPreviousImage(wand: PMagickWand): MagickBooleanType; cdecl; external WandExport;
-function MagickProfileImage(wand: PMagickWand; const name: PChar;
- const profile: PChar; const length: Cardinal): MagickBooleanType; cdecl; external WandExport;
-function MagickQuantizeImage(wand: PMagickWand;
- const number_colors: Cardinal; const colorspace: ColorspaceType;
- const treedepth: Cardinal; const dither, measure_error): MagickBooleanType; cdecl; external WandExport;
-function MagickQuantizeImages(wand: PMagickWand;
- const number_colors: Cardinal; const colorspace: ColorspaceType;
- const treedepth: Cardinal; const dither: MagickBooleanType;
- const measure_error: MagickBooleanType): MagickBooleanType; cdecl; external WandExport;
-function MagickRadialBlurImage(wand: PMagickWand; const angle: double): MagickBooleanType; cdecl; external WandExport;
-function MagickRadialBlurImageChannel(wand: PMagickWand;
- const channel: ChannelType; const angle: double): MagickBooleanType; cdecl; external WandExport;
-function MagickRaiseImage(wand: PMagickWand;
- const width, height: Cardinal; const x, y: Integer;
- const raise_: MagickBooleanType): MagickBooleanType; cdecl; external WandExport;
-function MagickReadImage(wand: PMagickWand; const filename: PChar
-): MagickBooleanType; cdecl; external WandExport;
-function MagickReadImageBlob(wand: PMagickWand;
- const blob: Pointer; const length: Integer): MagickBooleanType; cdecl; external WandExport;
-//function MagickReadImageFile(wand: PMagickWand; file_: file): MagickBooleanType; external WandExport;
-
-function MagickReduceNoiseImage(wand: PMagickWand; const radius: double): MagickBooleanType; cdecl; external WandExport;
-function MagickRemoveImage(wand: PMagickWand): MagickBooleanType; cdecl; external WandExport;
-function MagickResampleImage(wand: PMagickWand;
- const x_resolution, y_resolution: double;
- const filter: FilterTypes; const blur: double): MagickBooleanType; cdecl; external WandExport;
-function MagickResizeImage(wand: PMagickWand;
- const columns, rows: Cardinal; const filter: FilterTypes;
- const blur: double): MagickBooleanType; cdecl; external WandExport;
-function MagickRollImage(wand: PMagickWand;
- const x: Integer; const y: Cardinal): MagickBooleanType; cdecl; external WandExport;
-function MagickRotateImage(wand: PMagickWand; const background: PPixelWand;
- const degrees: double): MagickBooleanType; cdecl; external WandExport;
-function MagickSampleImage(wand: PMagickWand; const columns, rows: Cardinal): MagickBooleanType; cdecl; external WandExport;
-function MagickScaleImage(wand: PMagickWand; const columns, rows: Cardinal): MagickBooleanType; cdecl; external WandExport;
-function MagickSeparateImageChannel(wand: PMagickWand; const channel: ChannelType): MagickBooleanType; cdecl; external WandExport;
-
-// MagickSepiaToneImage(MagickWand *,const double),
-
-function MagickSetImage(wand: PMagickWand; const set_wand: PMagickWand): MagickBooleanType; cdecl; external WandExport;
-function MagickSetImageAttribute(wand: PMagickWand; const key, attribute: PChar): MagickBooleanType; cdecl; external WandExport;
-function MagickSetImageBackgroundColor(wand: PMagickWand; const background: PPixelWand): MagickBooleanType; cdecl; external WandExport;
-function MagickSetImageBias(wand: PMagickWand; const bias: double): MagickBooleanType; cdecl; external WandExport;
-function MagickSetImageBluePrimary(wand: PMagickWand; const x, y: double): MagickBooleanType; cdecl; external WandExport;
-function MagickSetImageBorderColor(wand: PMagickWand; const border: PPixelWand): MagickBooleanType; cdecl; external WandExport;
-function MagickSetImageChannelDepth(wand: PMagickWand; const channel: ChannelType; const depth: Cardinal): MagickBooleanType; cdecl; external WandExport;
-function MagickSetImageColormapColor(wand: PMagickWand; const index: Cardinal; const color: PPixelWand): MagickBooleanType; cdecl; external WandExport;
-function MagickSetImageColorspace(wand: PMagickWand; const colorspace: ColorspaceType): MagickBooleanType; cdecl; external WandExport;
-function MagickSetImageCompose(wand: PMagickWand; const compose: CompositeOperator): MagickBooleanType; cdecl; external WandExport;
-function MagickSetImageCompression(wand: PMagickWand; const compression: CompressionType): MagickBooleanType; cdecl; external WandExport;
-function MagickSetImageCompressionQuality(wand: PMagickWand; const quality: Cardinal): MagickBooleanType; cdecl; external WandExport;
-function MagickSetImageDelay(wand: PMagickWand; const delay: Cardinal): MagickBooleanType; cdecl; external WandExport;
-function MagickSetImageDepth(wand: PMagickWand; const depth: Cardinal): MagickBooleanType; cdecl; external WandExport;
-function MagickSetImageDispose(wand: PMagickWand; const dispose: DisposeType): MagickBooleanType; cdecl; external WandExport;
-function MagickSetImageExtent(wand: PMagickWand; const columns, rows: Cardinal): MagickBooleanType; cdecl; external WandExport;
-function MagickSetImageFilename(wand: PMagickWand; const filename: PChar): MagickBooleanType; cdecl; external WandExport;
-function MagickSetImageFormat(wand: PMagickWand; const format: PChar): MagickBooleanType; cdecl; external WandExport;
-function MagickSetImageGamma(wand: PMagickWand; const gamma: Double): MagickBooleanType; cdecl; external WandExport;
-function MagickSetImageGreenPrimary(wand: PMagickWand; const x, y: Double): MagickBooleanType; cdecl; external WandExport;
-function MagickSetImageIndex(wand: PMagickWand; const index: Integer): MagickBooleanType; cdecl; external WandExport;
-function MagickSetImageInterlaceScheme(wand: PMagickWand; const interlace_scheme: InterlaceType): MagickBooleanType; cdecl; external WandExport;
-function MagickSetImageIterations(wand: PMagickWand; const iterations: Cardinal): MagickBooleanType; cdecl; external WandExport;
-function MagickSetImageMatteColor(wand: PMagickWand; const matte: PPixelWand): MagickBooleanType; cdecl; external WandExport;
-function MagickSetImagePage(wand: PMagickWand; const width, height: Cardinal; const x, y: Integer): MagickBooleanType; cdecl; external WandExport;
-function MagickSetImagePixels(wand: PMagickWand; const x, y: Integer; const columns, rows: Cardinal;
- const map: PChar; const storage: StorageType; const pixels: Pointer): MagickBooleanType; cdecl; external WandExport;
-function MagickSetImageProfile(wand: PMagickWand; const name: PChar; const profile: Pointer;
- const length: Cardinal): MagickBooleanType; cdecl; external WandExport;
-function MagickSetImageRedPrimary(wand: PMagickWand; const x, y: Double): MagickBooleanType; cdecl; external WandExport;
-function MagickSetImageRenderingIntent(wand: PMagickWand; const rendering_intent: RenderingIntent
- ): MagickBooleanType; cdecl; external WandExport;
-function MagickSetImageResolution(wand: PMagickWand; const x_resolution, y_resolution: double
- ): MagickBooleanType; cdecl; external WandExport;
-function MagickSetImageScene(wand: PMagickWand; const scene: Cardinal): MagickBooleanType; cdecl; external WandExport;
-function MagickSetImageType(wand: PMagickWand; const image_type: ImageType
- ): MagickBooleanType; cdecl; external WandExport;
-function MagickSetImageUnits(wand: PMagickWand; const units: ResolutionType
- ): MagickBooleanType; cdecl; external WandExport;
-//function MagickSetImageVirtualPixelMethod(wand: PMagickWand;
-// const method: VirtualPixelMethod): MagickBooleanType; cdecl; external WandExport;
-function MagickSetImageWhitePoint(wand: PMagickWand; const x, y: double
- ): MagickBooleanType; cdecl; external WandExport;
-function MagickShadowImage(wand: PMagickWand; const radius, sigma: double; const x, y: Integer
- ): MagickBooleanType; cdecl; external WandExport;
-function MagickSharpenImage(wand: PMagickWand; const radius, sigma: double
- ): MagickBooleanType; cdecl; external WandExport;
-function MagickSharpenImageChannel(wand: PMagickWand; const channel: ChannelType;
- const radius, sigma: double): MagickBooleanType; cdecl; external WandExport;
-function MagickShaveImage(wand: PMagickWand; const columns, rows: Cardinal
- ): MagickBooleanType; cdecl; external WandExport;
-function MagickShearImage(wand: PMagickWand; const background: PPixelWand;
- const x_shear, y_shear: double): MagickBooleanType; cdecl; external WandExport;
-function MagickSigmoidalContrastImage(wand: PMagickWand;
- const sharpen: MagickBooleanType; const alpha, beta: double
- ): MagickBooleanType; cdecl; external WandExport;
-function MagickSigmoidalContrastImageChannel(wand: PMagickWand;
- const channel: ChannelType; const sharpen: MagickBooleanType; const alpha, beta: double
- ): MagickBooleanType; cdecl; external WandExport;
-function MagickSolarizeImage(wand: PMagickWand; const threshold: double
- ): MagickBooleanType; cdecl; external WandExport;
-function MagickSpliceImage(wand: PMagickWand; const width, height: Cardinal; const x, y: Integer
- ): MagickBooleanType; cdecl; external WandExport;
-function MagickSpreadImage(wand: PMagickWand; const radius: double): MagickBooleanType; cdecl; external WandExport;
-function MagickStripImage(wand: PMagickWand): MagickBooleanType; cdecl; external WandExport;
-function MagickSwirlImage(wand: PMagickWand; const degrees: double): MagickBooleanType; cdecl; external WandExport;
-function MagickTintImage(wand: PMagickWand; const tint: PPixelWand; const opacity: PPixelWand
- ): MagickBooleanType; cdecl; external WandExport;
-function MagickThresholdImage(wand: PMagickWand; const threshold: double): MagickBooleanType; cdecl; external WandExport;
-function MagickThresholdImageChannel(wand: PMagickWand; const channel: ChannelType;
- const threshold: double): MagickBooleanType; cdecl; external WandExport;
-function MagickTrimImage(wand: PMagickWand; const fuzz: double): MagickBooleanType; cdecl; external WandExport;
-function MagickUnsharpMaskImage(wand: PMagickWand;
- const radius, sigma, amount, threshold: double): MagickBooleanType; cdecl; external WandExport;
-function MagickUnsharpMaskImageChannel(wand: PMagickWand;
- const channel: ChannelType; const radius, sigma, amount, threshold: double
- ): MagickBooleanType; cdecl; external WandExport;
-function MagickWaveImage(wand: PMagickWand; const amplitude, wave_length: double
- ): MagickBooleanType; cdecl; external WandExport;
-function MagickWhiteThresholdImage(wand: PMagickWand; const threshold: PPixelWand): MagickBooleanType; cdecl; external WandExport;
-function MagickWriteImage(wand: PMagickWand;
- const filename: PChar): MagickBooleanType; cdecl; external WandExport;
-//  MagickWriteImageFile(MagickWand *,FILE *),
-function MagickWriteImages(wand: PMagickWand;
- const filename: PChar; const adjoin: MagickBooleanType
- ): MagickBooleanType; cdecl; external WandExport;
-//  MagickWriteImagesFile(MagickWand *,FILE *);
-
-
-function MagickSetImageProgressMonitor(wand: PMagickWand;
- const progress_monitor: MagickProgressMonitor; client_data: Pointer): MagickProgressMonitor; cdecl; external WandExport;
-
-function MagickGetImageSize(wand: PMagickWand): MagickSizeType; cdecl; external WandExport;
-
-function MagickAppendImages(wand: PMagickWand; const stack: MagickBooleanType): PMagickWand; cdecl; external WandExport;
-function MagickAverageImages(wand: PMagickWand): PMagickWand; cdecl; external WandExport;
-function MagickCoalesceImages(wand: PMagickWand): PMagickWand; cdecl; external WandExport;
-function MagickCombineImages(wand: PMagickWand; para2: ChannelType): PMagickWand; cdecl; external WandExport;
-function MagickCompareImageChannels(wand: PMagickWand;
- const reference: PMagickWand; const channel: ChannelType; const metric: MetricType; distortion: PDouble
- ): PMagickWand; cdecl; external WandExport;
-function MagickCompareImages(wand: PMagickWand;
- const reference: PMagickWand; const metric: MetricType; distortion: PDouble
- ): PMagickWand; cdecl; external WandExport;
-function MagickDeconstructImages(wand: PMagickWand): PMagickWand; cdecl; external WandExport;
-function MagickFlattenImages(wand: PMagickWand): PMagickWand; cdecl; external WandExport;
-function MagickFxImage(wand: PMagickWand; const expression: PChar): PMagickWand; cdecl; external WandExport;
-function MagickFxImageChannel(wand: PMagickWand; const channel: ChannelType; const expression: PChar
- ): PMagickWand; cdecl; external WandExport;
-function MagickGetImage(wand: PMagickWand): PMagickWand; cdecl; external WandExport;
-function MagickGetImageRegion(wand: PMagickWand;
- const width, height: Cardinal; const x, y: Integer
- ): PMagickWand; cdecl; external WandExport;
-function MagickMorphImages(wand: PMagickWand; const number_frames: Cardinal): PMagickWand; cdecl; external WandExport;
-function MagickMosaicImages(wand: PMagickWand): PMagickWand; cdecl; external WandExport;
-//function MagickMontageImage(wand: PMagickWand;
-// const drawing_wand: DrawingWand; const tile_geometry: PChar;
-// const thumbnail_geometry: PChar; const mode: MontageMode; const frame: PChar
-// ): PMagickWand; cdecl; external WandExport;
-function MagickPreviewImages(wand: PMagickWand; const preview: PreviewType): PMagickWand; cdecl; external WandExport;
-function MagickSteganoImage(wand: PMagickWand; const watermark_wand: PMagickWand;
- const offset: Integer): PMagickWand; cdecl; external WandExport;
-function MagickStereoImage(wand: PMagickWand; const offset_wand: PMagickWand): PMagickWand; cdecl; external WandExport;
-function MagickTextureImage(wand: PMagickWand; const texture_wand: PMagickWand): PMagickWand; cdecl; external WandExport;
-function MagickTransformImage(wand: PMagickWand; const crop, geometry: PChar): PMagickWand; cdecl; external WandExport;
-function NewMagickWandFromImage(para1: PImage): PMagickWand; cdecl; external WandExport;
-
-function MagickGetImageHistogram(wand: PMagickWand; number_colors: PCardinal): PPPixelWand; cdecl; external  WandExport;
-
-function MagickGetImageRenderingIntent(wand: PMagickWand): RenderingIntent; cdecl; external WandExport;
-
-function MagickGetImageUnits(wand: PMagickWand): ResolutionType; cdecl; external WandExport;
-
-function MagickGetImageBlob(wand: PMagickWand; length: Psize_t): PByte; cdecl; external WandExport;
-function MagickGetImagesBlob(wand: PMagickWand; length: Psize_t): PByte; cdecl; external WandExport;
-function MagickGetImageProfile(wand: PMagickWand; name: PChar; length: Psize_t): PByte; cdecl; external WandExport;
-function MagickRemoveImageProfile(wand: PMagickWand; name: PChar; length: Psize_t): PByte; cdecl; external WandExport;
-
-function MagickGetImageColors(wand: PMagickWand): Cardinal; cdecl; external WandExport;
-function MagickGetImageCompressionQuality(wand: PMagickWand): Cardinal; cdecl; external WandExport;
-function MagickGetImageDelay(wand: PMagickWand): Cardinal; cdecl; external WandExport;
-function MagickGetImageChannelDepth(wand: PMagickWand; const channel: ChannelType): Cardinal; cdecl; external WandExport;
-function MagickGetImageDepth(wand: PMagickWand): Cardinal; cdecl; external WandExport;
-function MagickGetImageHeight(wand: PMagickWand): Cardinal; cdecl; external WandExport;
-function MagickGetImageIterations(wand: PMagickWand): Cardinal; cdecl; external WandExport;
-function MagickGetImageScene(wand: PMagickWand): Cardinal; cdecl; external WandExport;
-function MagickGetImageWidth(wand: PMagickWand): Cardinal; cdecl; external WandExport;
-function MagickGetNumberImages(wand: PMagickWand): Cardinal; cdecl; external WandExport;
-
-//function MagickGetImageVirtualPixelMethod(wand: PMagickWand): VirtualPixelMethod; cdecl; external WandExport;
-
-{
-  Deprecated methods.
-}
-{extern WandExport char
-  *MagickDescribeImage(MagickWand *);
-
-extern WandExport MagickBooleanType
-  MagickOpaqueImage(MagickWand *,const PixelWand *,const PixelWand *,
-    const double),
-  MagickSetImageOption(MagickWand *,const char *,const char *,const char *),
-  MagickTransparentImage(MagickWand *,const PixelWand *,const Quantum,
-    const double);
-
-extern WandExport MagickWand
-  *MagickRegionOfInterestImage(MagickWand *,const unsigned long,
-	  const unsigned long,const long,const long);
-
-extern WandExport unsigned char
-  *MagickWriteImageBlob(MagickWand *,size_t *);
-}

+ 0 - 79
packages/base/imagemagick/wand/magick_wand.pas

@@ -1,79 +0,0 @@
-{
-  Copyright 1999-2005 ImageMagick Studio LLC, a non-profit organization
-  dedicated to making software imaging solutions freely available.
-  
-  You may not use this file except in compliance with the License.
-  obtain a copy of the License at
-  
-    http://www.imagemagick.org/script/license.php
-  
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
-
-  ImageMagick MagickWand API.
-  
-  Converted from c by: Felipe Monteiro de Carvalho Dez/2005
-
-	Bug-fixed by Ángel Eduardo García Hernández
-	Thanks to Marc Geldon and RuBBeR
-}
-{Version 0.4}
-unit magick_wand;
-
-{$IFDEF FPC}
-  {$mode objfpc}
-	{$PACKRECORDS C}
-{$ENDIF}
-
-{$MINENUMSIZE 1}
-
-interface
-
-uses ImageMagick;
-
-{ Various types }
-type
-  MagickWand = record
-    id: Cardinal;
-    name: array[1..MaxTextExtent] of Char;
-    exception: ExceptionInfo;
-    image_info: PImageInfo;
-    quantize_info: PQuantizeInfo;
-    images: PImage;
-    active, pend, debug: MagickBooleanType;
-    signature: Cardinal;
-  end;
-
-  PMagickWand = ^MagickWand;
-
-  size_t = Integer;
-  
-  Psize_t = ^size_t;
-
-{$include pixel_wand.inc}
-{$include drawing_wand.inc}
-{$include magick_attribute.inc}
-{$include magick_image.inc}
-{$include pixel_iterator.inc}
-
-function IsMagickWand(const wand: PMagickWand): MagickBooleanType; cdecl; external WandExport;
-function MagickClearException(wand: PMagickWand): MagickBooleanType; cdecl; external WandExport;
-
-function CloneMagickWand(const wand: PMagickWand): PMagickWand; cdecl; external WandExport;
-function DestroyMagickWand(wand: PMagickWand): PMagickWand; cdecl; external WandExport;
-function NewMagickWand: PMagickWand; cdecl; external WandExport;
-
-procedure ClearMagickWand(wand: PMagickWand); cdecl; external WandExport;
-procedure MagickWandGenesis; cdecl; external WandExport;
-procedure MagickWandTerminus; cdecl; external WandExport;
-function MagickRelinquishMemory(resource: Pointer): Pointer; cdecl; external WandExport;
-procedure MagickResetIterator(wand: PMagickWand); cdecl; external WandExport;
-procedure MagickSetFirstIterator(wand: PMagickWand); cdecl; external WandExport;
-procedure MagickSetLastIterator(wand: PMagickWand); cdecl; external WandExport;
-
-implementation
-
-end.

+ 0 - 74
packages/base/imagemagick/wand/pixel_iterator.inc

@@ -1,74 +0,0 @@
-{
-  Copyright 1999-2005 ImageMagick Studio LLC, a non-profit organization
-  dedicated to making software imaging solutions freely available.
-  
-  You may not use this file except in compliance with the License.
-  obtain a copy of the License at
-  
-    http://www.imagemagick.org/script/license.php
-  
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
-
-  Pixel Iterator Methods.
-}
-
-type
-  PixelIterator = record
-    id: Cardinal;
-
-    name: array[0..MaxTextExtent] of char;
-
-    exception: ExceptionInfo;
-
-    view: PViewInfo;
-
-    region: RectangleInfo;
-
-    y: Integer;
-
-    pixel_wand: PPPixelWand;
-
-    debug: MagickBooleanType;
-
-    signature: Cardinal;
-  end;
-  
-  PPixelIterator = ^PixelIterator;
-
-
-function PixelGetIteratorException(const iterator: PPixeliterator;
- severity: PExceptionType): PChar; cdecl; external WandExport;
-
-function IsPixelIterator(const iterator: PPixeliterator): MagickBooleanType; cdecl; external WandExport;
-function PixelClearIteratorException(iterator: PPixeliterator): MagickBooleanType; cdecl; external WandExport;
-function PixelSetIteratorRow(iterator: PPixeliterator;
- const row: Integer): MagickBooleanType; cdecl; external WandExport;
-function PixelSyncIterator(iterator: PPixeliterator): MagickBooleanType; cdecl; external WandExport;
-
-function DestroyPixelIterator(iterator: PPixeliterator): PPixelIterator; cdecl; external WandExport;
-function NewPixelIterator(wand: PMagickWand): PPixelIterator; cdecl; external WandExport;
-function NewPixelRegionIterator(
- wand: PMagickWand; const x, y: Integer; const columns, rows: Cardinal;
- const modify: MagickBooleanType): PPixelIterator; cdecl; external WandExport;
-
-function PixelGetNextIteratorRow(iterator: PPixeliterator; var wandCount: Cardinal): PPPixelWand; cdecl; external WandExport;
-function PixelGetPreviousIteratorRow(iterator: PPixeliterator; var wandCount: Cardinal): PPPixelWand; cdecl; external WandExport;
-
-procedure ClearPixelIterator(iterator: PPixeliterator); cdecl; external WandExport;
-procedure PixelResetIterator(iterator: PPixeliterator); cdecl; external WandExport;
-procedure PixelSetFirstIteratorRow(iterator: PPixeliterator); cdecl; external WandExport;
-procedure PixelSetLastIteratorRow(iterator: PPixeliterator); cdecl; external WandExport;
-
-{
-  Deprecated.
-}
-{extern WandExport char
-  *PixelIteratorGetException(const PixelIterator *,ExceptionType *);
-
-extern WandExport PixelWand
-  **PixelGetNextRow(PixelIterator *);}
-

+ 0 - 109
packages/base/imagemagick/wand/pixel_wand.inc

@@ -1,109 +0,0 @@
-{
-  Copyright 1999-2005 ImageMagick Studio LLC, a non-profit organization
-  dedicated to making software imaging solutions freely available.
-  
-  You may not use this file except in compliance with the License.
-  obtain a copy of the License at
-  
-    http://www.imagemagick.org/script/license.php
-  
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
-
-  ImageMagick pixel wand API.
-}
-
-
-{
-  Declaration from pixel-wand.c
-}
-type
-  PixelWand = record
-    id: Cardinal;
-
-    name: array[1..MaxTextExtent] of char;
-
-    exception: ExceptionInfo;
-
-    pixel: MagickPixelPacket;
-
-    count: Cardinal;
-
-    debug: MagickBooleanType;
-
-    signature: Cardinal;
-  end;
-  
-  PPixelWand = ^PixelWand;
-  
-  PPPixelWand = ^PPixelWand;
-  
-
-function PixelGetException(const wand: PPixelWand; severity: PExceptionType): PChar; cdecl; external WandExport;
-function PixelGetColorAsString(const wand: PPixelWand): PChar; cdecl; external WandExport;
-
-function PixelGetAlpha(const wand: PPixelWand): Double; cdecl; external WandExport;
-function PixelGetBlack(const wand: PPixelWand): Double; cdecl; external WandExport;
-function PixelGetBlue(const wand: PPixelWand): Double; cdecl; external WandExport;
-function PixelGetCyan(const wand: PPixelWand): Double; cdecl; external WandExport;
-function PixelGetGreen(const wand: PPixelWand): Double; cdecl; external WandExport;
-function PixelGetMagenta(const wand: PPixelWand): Double; cdecl; external WandExport;
-function PixelGetOpacity(const wand: PPixelWand): Double; cdecl; external WandExport;
-function PixelGetRed(const wand: PPixelWand): Double; cdecl; external WandExport;
-function PixelGetYellow(const wand: PPixelWand): Double; cdecl; external WandExport;
-
-function PixelGetIndex(const wand: PPixelWand): IndexPacket; cdecl; external WandExport;
-
-function IsPixelWand(const wand: PPixelWand): MagickBooleanType; cdecl; external WandExport;
-function IsPixelWandSimilar(p: PPixelWand; q: PPixelWand;
- const fuzz: double): MagickBooleanType; cdecl; external WandExport;
-function PixelClearException(wand: PPixelWand): MagickBooleanType; cdecl; external WandExport;
-function PixelSetColor(wand: PPixelWand; const color: PChar): MagickBooleanType; cdecl; external WandExport;
-
-function DestroyPixelWand(wand: PPixelWand): PPixelWand; cdecl; external WandExport;
-function DestroyPixelWands(wand: PPPixelWand;
- const number_wands: Cardinal): PPPixelWand; cdecl; external WandExport;
-function NewPixelWand: PPixelWand; cdecl; external WandExport;
-function NewPixelWands(const number_wands: Cardinal): PPPixelWand; cdecl; external WandExport;
-
-function PixelGetAlphaQuantum(const wand: PPixelWand): Quantum; cdecl; external  WandExport;
-function PixelGetBlackQuantum(const wand: PPixelWand): Quantum; cdecl; external WandExport;
-function PixelGetBlueQuantum(const wand: PPixelWand): Quantum; cdecl; external WandExport;
-function PixelGetCyanQuantum(const wand: PPixelWand): Quantum; cdecl; external WandExport;
-function PixelGetGreenQuantum(const wand: PPixelWand): Quantum; cdecl; external WandExport;
-function PixelGetMagentaQuantum(const wand: PPixelWand): Quantum; cdecl; external WandExport;
-function PixelGetOpacityQuantum(const wand: PPixelWand): Quantum; cdecl; external WandExport;
-function PixelGetRedQuantum(const wand: PPixelWand): Quantum; cdecl; external WandExport;
-function PixelGetYellowQuantum(const wand: PPixelWand): Quantum; cdecl; external WandExport;
-
-function PixelGetColorCount(const wand: PPixelWand): Cardinal; cdecl; external WandExport;
-
-procedure ClearPixelWand(wand: PPixelWand); cdecl; external WandExport;
-procedure PixelGetMagickColor(const wand: PPixelWand; packet: PMagickPixelPacket); cdecl; external WandExport;
-procedure PixelGetQuantumColor(const wand: PPixelWand; color: PPixelPacket); cdecl; external WandExport;
-procedure PixelSetAlpha(wand: PPixelWand; const opacity: Double); cdecl; external WandExport;
-procedure PixelSetAlphaQuantum(wand: PPixelWand; const opacity: Quantum); cdecl; external WandExport;
-procedure PixelSetBlack(wand: PPixelWand; const opacity: Double); cdecl; external WandExport;
-procedure PixelSetBlackQuantum(wand: PPixelWand; const opacity: Quantum); cdecl; external WandExport;
-procedure PixelSetBlue(wand: PPixelWand; const opacity: Double); cdecl; external WandExport;
-procedure PixelSetBlueQuantum(wand: PPixelWand; const opacity: Quantum); cdecl; external WandExport;
-procedure PixelSetColorCount(wand: PPixelWand; const count: Cardinal); cdecl; external WandExport;
-procedure PixelSetCyan(wand: PPixelWand; const opacity: Double); cdecl; external WandExport;
-procedure PixelSetCyanQuantum(wand: PPixelWand; const opacity: Quantum); cdecl; external WandExport;
-procedure PixelSetGreen(wand: PPixelWand; const opacity: Double); cdecl; external WandExport;
-procedure PixelSetGreenQuantum(wand: PPixelWand; const opacity: Quantum); cdecl; external WandExport;
-procedure PixelSetIndex(wand: PPixelWand; const index: IndexPacket); cdecl; external WandExport;
-procedure PixelSetMagenta(wand: PPixelWand; const opacity: Double); cdecl; external WandExport;
-procedure PixelSetMagentaQuantum(wand: PPixelWand; const opacity: Quantum); cdecl; external WandExport;
-procedure PixelSetOpacity(wand: PPixelWand; const opacity: Double); cdecl; external WandExport;
-procedure PixelSetOpacityQuantum(wand: PPixelWand; const opacity: Quantum); cdecl; external WandExport;
-procedure PixelSetQuantumColor(wand: PPixelWand; const color: PPixelPacket); cdecl; external WandExport;
-procedure PixelSetRed(wand: PPixelWand; const opacity: Double); cdecl; external WandExport;
-procedure PixelSetRedQuantum(wand: PPixelWand; const opacity: Quantum); cdecl; external WandExport;
-procedure PixelSetYellow(wand: PPixelWand; const opacity: Double); cdecl; external WandExport;
-procedure PixelSetYellowQuantum(wand: PPixelWand; const opacity: Quantum); cdecl; external WandExport;
-
-

+ 0 - 2049
packages/extra/libpng/Makefile

@@ -1,2049 +0,0 @@
-#
-# Don't edit, this file is generated by FPCMake Version 2.0.0 [2007/11/08]
-#
-default: all
-MAKEFILETARGETS=i386-linux i386-go32v2 i386-win32 i386-os2 i386-freebsd i386-beos i386-netbsd i386-solaris i386-qnx i386-netware i386-openbsd i386-wdosx i386-darwin i386-emx i386-watcom i386-netwlibc i386-wince i386-embedded i386-symbian m68k-linux m68k-freebsd m68k-netbsd m68k-amiga m68k-atari m68k-openbsd m68k-palmos m68k-embedded powerpc-linux powerpc-netbsd powerpc-amiga powerpc-macos powerpc-darwin powerpc-morphos powerpc-embedded sparc-linux sparc-netbsd sparc-solaris sparc-embedded x86_64-linux x86_64-freebsd x86_64-darwin x86_64-win64 x86_64-embedded arm-linux arm-palmos arm-wince arm-gba arm-nds arm-embedded arm-symbian powerpc64-linux powerpc64-darwin powerpc64-embedded
-BSDs = freebsd netbsd openbsd darwin
-UNIXs = linux $(BSDs) solaris qnx
-LIMIT83fs = go32v2 os2 emx watcom
-OSNeedsComspecToRunBatch = go32v2 watcom
-FORCE:
-.PHONY: FORCE
-override PATH:=$(patsubst %/,%,$(subst \,/,$(PATH)))
-ifneq ($(findstring darwin,$(OSTYPE)),)
-inUnix=1 #darwin
-SEARCHPATH:=$(filter-out .,$(subst :, ,$(PATH)))
-else
-ifeq ($(findstring ;,$(PATH)),)
-inUnix=1
-SEARCHPATH:=$(filter-out .,$(subst :, ,$(PATH)))
-else
-SEARCHPATH:=$(subst ;, ,$(PATH))
-endif
-endif
-SEARCHPATH+=$(patsubst %/,%,$(subst \,/,$(dir $(MAKE))))
-PWD:=$(strip $(wildcard $(addsuffix /pwd.exe,$(SEARCHPATH))))
-ifeq ($(PWD),)
-PWD:=$(strip $(wildcard $(addsuffix /pwd,$(SEARCHPATH))))
-ifeq ($(PWD),)
-$(error You need the GNU utils package to use this Makefile)
-else
-PWD:=$(firstword $(PWD))
-SRCEXEEXT=
-endif
-else
-PWD:=$(firstword $(PWD))
-SRCEXEEXT=.exe
-endif
-ifndef inUnix
-ifeq ($(OS),Windows_NT)
-inWinNT=1
-else
-ifdef OS2_SHELL
-inOS2=1
-endif
-endif
-else
-ifneq ($(findstring cygdrive,$(PATH)),)
-inCygWin=1
-endif
-endif
-ifdef inUnix
-SRCBATCHEXT=.sh
-else
-ifdef inOS2
-SRCBATCHEXT=.cmd
-else
-SRCBATCHEXT=.bat
-endif
-endif
-ifdef COMSPEC
-ifneq ($(findstring $(OS_SOURCE),$(OSNeedsComspecToRunBatch)),)
-RUNBATCH=$(COMSPEC) /C
-endif
-endif
-ifdef inUnix
-PATHSEP=/
-else
-PATHSEP:=$(subst /,\,/)
-ifdef inCygWin
-PATHSEP=/
-endif
-endif
-ifdef PWD
-BASEDIR:=$(subst \,/,$(shell $(PWD)))
-ifdef inCygWin
-ifneq ($(findstring /cygdrive/,$(BASEDIR)),)
-BASENODIR:=$(patsubst /cygdrive%,%,$(BASEDIR))
-BASEDRIVE:=$(firstword $(subst /, ,$(BASENODIR)))
-BASEDIR:=$(subst /cygdrive/$(BASEDRIVE)/,$(BASEDRIVE):/,$(BASEDIR))
-endif
-endif
-else
-BASEDIR=.
-endif
-ifdef inOS2
-ifndef ECHO
-ECHO:=$(strip $(wildcard $(addsuffix /gecho$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(ECHO),)
-ECHO:=$(strip $(wildcard $(addsuffix /echo$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(ECHO),)
-ECHO=echo
-else
-ECHO:=$(firstword $(ECHO))
-endif
-else
-ECHO:=$(firstword $(ECHO))
-endif
-endif
-export ECHO
-endif
-override DEFAULT_FPCDIR=../../..
-ifndef FPC
-ifdef PP
-FPC=$(PP)
-endif
-endif
-ifndef FPC
-FPCPROG:=$(strip $(wildcard $(addsuffix /fpc$(SRCEXEEXT),$(SEARCHPATH))))
-ifneq ($(FPCPROG),)
-FPCPROG:=$(firstword $(FPCPROG))
-ifneq ($(CPU_TARGET),)
-FPC:=$(shell $(FPCPROG) -P$(CPU_TARGET) -PB)
-else
-FPC:=$(shell $(FPCPROG) -PB)
-endif
-ifneq ($(findstring Error,$(FPC)),)
-override FPC=$(firstword $(strip $(wildcard $(addsuffix /ppc386$(SRCEXEEXT),$(SEARCHPATH)))))
-endif
-else
-override FPC=$(firstword $(strip $(wildcard $(addsuffix /ppc386$(SRCEXEEXT),$(SEARCHPATH)))))
-endif
-endif
-override FPC:=$(subst $(SRCEXEEXT),,$(FPC))
-override FPC:=$(subst \,/,$(FPC))$(SRCEXEEXT)
-FOUNDFPC:=$(strip $(wildcard $(FPC)))
-ifeq ($(FOUNDFPC),)
-FOUNDFPC=$(strip $(wildcard $(addsuffix /$(FPC),$(SEARCHPATH))))
-ifeq ($(FOUNDFPC),)
-$(error Compiler $(FPC) not found)
-endif
-endif
-ifndef FPC_COMPILERINFO
-FPC_COMPILERINFO:=$(shell $(FPC) -iVSPTPSOTO)
-endif
-ifndef FPC_VERSION
-FPC_VERSION:=$(word 1,$(FPC_COMPILERINFO))
-endif
-export FPC FPC_VERSION FPC_COMPILERINFO
-unexport CHECKDEPEND ALLDEPENDENCIES
-ifndef CPU_TARGET
-ifdef CPU_TARGET_DEFAULT
-CPU_TARGET=$(CPU_TARGET_DEFAULT)
-endif
-endif
-ifndef OS_TARGET
-ifdef OS_TARGET_DEFAULT
-OS_TARGET=$(OS_TARGET_DEFAULT)
-endif
-endif
-ifneq ($(words $(FPC_COMPILERINFO)),5)
-FPC_COMPILERINFO+=$(shell $(FPC) -iSP)
-FPC_COMPILERINFO+=$(shell $(FPC) -iTP)
-FPC_COMPILERINFO+=$(shell $(FPC) -iSO)
-FPC_COMPILERINFO+=$(shell $(FPC) -iTO)
-endif
-ifndef CPU_SOURCE
-CPU_SOURCE:=$(word 2,$(FPC_COMPILERINFO))
-endif
-ifndef CPU_TARGET
-CPU_TARGET:=$(word 3,$(FPC_COMPILERINFO))
-endif
-ifndef OS_SOURCE
-OS_SOURCE:=$(word 4,$(FPC_COMPILERINFO))
-endif
-ifndef OS_TARGET
-OS_TARGET:=$(word 5,$(FPC_COMPILERINFO))
-endif
-FULL_TARGET=$(CPU_TARGET)-$(OS_TARGET)
-FULL_SOURCE=$(CPU_SOURCE)-$(OS_SOURCE)
-ifneq ($(findstring $(OS_SOURCE),$(LIMIT83fs)),)
-TARGETSUFFIX=$(OS_TARGET)
-SOURCESUFFIX=$(OS_SOURCE)
-else
-TARGETSUFFIX=$(FULL_TARGET)
-SOURCESUFFIX=$(FULL_SOURCE)
-endif
-ifneq ($(FULL_TARGET),$(FULL_SOURCE))
-CROSSCOMPILE=1
-endif
-ifeq ($(findstring makefile,$(MAKECMDGOALS)),)
-ifeq ($(findstring $(FULL_TARGET),$(MAKEFILETARGETS)),)
-$(error The Makefile doesn't support target $(FULL_TARGET), please run fpcmake first)
-endif
-endif
-ifneq ($(findstring $(OS_TARGET),$(BSDs)),)
-BSDhier=1
-endif
-ifeq ($(OS_TARGET),linux)
-linuxHier=1
-endif
-export OS_TARGET OS_SOURCE CPU_TARGET CPU_SOURCE FULL_TARGET FULL_SOURCE TARGETSUFFIX SOURCESUFFIX CROSSCOMPILE
-ifdef FPCDIR
-override FPCDIR:=$(subst \,/,$(FPCDIR))
-ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
-override FPCDIR=wrong
-endif
-else
-override FPCDIR=wrong
-endif
-ifdef DEFAULT_FPCDIR
-ifeq ($(FPCDIR),wrong)
-override FPCDIR:=$(subst \,/,$(DEFAULT_FPCDIR))
-ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
-override FPCDIR=wrong
-endif
-endif
-endif
-ifeq ($(FPCDIR),wrong)
-ifdef inUnix
-override FPCDIR=/usr/local/lib/fpc/$(FPC_VERSION)
-ifeq ($(wildcard $(FPCDIR)/units),)
-override FPCDIR=/usr/lib/fpc/$(FPC_VERSION)
-endif
-else
-override FPCDIR:=$(subst /$(FPC),,$(firstword $(strip $(wildcard $(addsuffix /$(FPC),$(SEARCHPATH))))))
-override FPCDIR:=$(FPCDIR)/..
-ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
-override FPCDIR:=$(FPCDIR)/..
-ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
-override FPCDIR:=$(BASEDIR)
-ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
-override FPCDIR=c:/pp
-endif
-endif
-endif
-endif
-endif
-ifndef CROSSBINDIR
-CROSSBINDIR:=$(wildcard $(FPCDIR)/bin/$(TARGETSUFFIX))
-endif
-ifndef BINUTILSPREFIX
-ifndef CROSSBINDIR
-ifdef CROSSCOMPILE
-BINUTILSPREFIX=$(CPU_TARGET)-$(OS_TARGET)-
-endif
-endif
-endif
-UNITSDIR:=$(wildcard $(FPCDIR)/units/$(TARGETSUFFIX))
-ifeq ($(UNITSDIR),)
-UNITSDIR:=$(wildcard $(FPCDIR)/units/$(OS_TARGET))
-endif
-PACKAGESDIR:=$(wildcard $(FPCDIR) $(FPCDIR)/packages $(FPCDIR)/packages/base $(FPCDIR)/packages/extra)
-override PACKAGE_NAME=libpng
-override PACKAGE_VERSION=2.0.0
-ifeq ($(FULL_TARGET),i386-linux)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),i386-go32v2)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),i386-win32)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),i386-os2)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),i386-freebsd)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),i386-beos)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),i386-netbsd)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),i386-solaris)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),i386-qnx)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),i386-netware)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),i386-openbsd)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),i386-wdosx)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),i386-darwin)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),i386-emx)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),i386-watcom)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),i386-netwlibc)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),i386-wince)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),i386-embedded)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),i386-symbian)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),m68k-linux)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),m68k-freebsd)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),m68k-netbsd)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),m68k-amiga)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),m68k-atari)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),m68k-openbsd)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),m68k-palmos)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),m68k-embedded)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),powerpc-linux)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),powerpc-netbsd)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),powerpc-amiga)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),powerpc-macos)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),powerpc-darwin)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),powerpc-morphos)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),powerpc-embedded)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),sparc-linux)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),sparc-netbsd)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),sparc-solaris)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),sparc-embedded)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),x86_64-linux)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),x86_64-freebsd)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),x86_64-darwin)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),x86_64-win64)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),x86_64-embedded)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),arm-linux)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),arm-palmos)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),arm-wince)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),arm-gba)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),arm-nds)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),arm-embedded)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),arm-symbian)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),powerpc64-linux)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),powerpc64-darwin)
-override TARGET_UNITS+=png
-endif
-ifeq ($(FULL_TARGET),powerpc64-embedded)
-override TARGET_UNITS+=png
-endif
-override INSTALL_FPCPACKAGE=y
-override SHARED_BUILD=n
-override SHARED_BUILD=n
-ifdef REQUIRE_UNITSDIR
-override UNITSDIR+=$(REQUIRE_UNITSDIR)
-endif
-ifdef REQUIRE_PACKAGESDIR
-override PACKAGESDIR+=$(REQUIRE_PACKAGESDIR)
-endif
-ifdef ZIPINSTALL
-ifneq ($(findstring $(OS_TARGET),$(UNIXs)),)
-UNIXHier=1
-endif
-else
-ifneq ($(findstring $(OS_SOURCE),$(UNIXs)),)
-UNIXHier=1
-endif
-endif
-ifndef INSTALL_PREFIX
-ifdef PREFIX
-INSTALL_PREFIX=$(PREFIX)
-endif
-endif
-ifndef INSTALL_PREFIX
-ifdef UNIXHier
-INSTALL_PREFIX=/usr/local
-else
-ifdef INSTALL_FPCPACKAGE
-INSTALL_BASEDIR:=/pp
-else
-INSTALL_BASEDIR:=/$(PACKAGE_NAME)
-endif
-endif
-endif
-export INSTALL_PREFIX
-ifdef INSTALL_FPCSUBDIR
-export INSTALL_FPCSUBDIR
-endif
-ifndef DIST_DESTDIR
-DIST_DESTDIR:=$(BASEDIR)
-endif
-export DIST_DESTDIR
-ifndef COMPILER_UNITTARGETDIR
-ifdef PACKAGEDIR_MAIN
-COMPILER_UNITTARGETDIR=$(PACKAGEDIR_MAIN)/units/$(TARGETSUFFIX)
-else
-COMPILER_UNITTARGETDIR=units/$(TARGETSUFFIX)
-endif
-endif
-ifndef COMPILER_TARGETDIR
-COMPILER_TARGETDIR=.
-endif
-ifndef INSTALL_BASEDIR
-ifdef UNIXHier
-ifdef INSTALL_FPCPACKAGE
-INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/fpc/$(FPC_VERSION)
-else
-INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/$(PACKAGE_NAME)
-endif
-else
-INSTALL_BASEDIR:=$(INSTALL_PREFIX)
-endif
-endif
-ifndef INSTALL_BINDIR
-ifdef UNIXHier
-INSTALL_BINDIR:=$(INSTALL_PREFIX)/bin
-else
-INSTALL_BINDIR:=$(INSTALL_BASEDIR)/bin
-ifdef INSTALL_FPCPACKAGE
-ifdef CROSSCOMPILE
-ifdef CROSSINSTALL
-INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(SOURCESUFFIX)
-else
-INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX)
-endif
-else
-INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX)
-endif
-endif
-endif
-endif
-ifndef INSTALL_UNITDIR
-INSTALL_UNITDIR:=$(INSTALL_BASEDIR)/units/$(TARGETSUFFIX)
-ifdef INSTALL_FPCPACKAGE
-ifdef PACKAGE_NAME
-INSTALL_UNITDIR:=$(INSTALL_UNITDIR)/$(PACKAGE_NAME)
-endif
-endif
-endif
-ifndef INSTALL_LIBDIR
-ifdef UNIXHier
-INSTALL_LIBDIR:=$(INSTALL_PREFIX)/lib
-else
-INSTALL_LIBDIR:=$(INSTALL_UNITDIR)
-endif
-endif
-ifndef INSTALL_SOURCEDIR
-ifdef UNIXHier
-ifdef BSDhier
-SRCPREFIXDIR=share/src
-else
-ifdef linuxHier
-SRCPREFIXDIR=share/src
-else
-SRCPREFIXDIR=src
-endif
-endif
-ifdef INSTALL_FPCPACKAGE
-ifdef INSTALL_FPCSUBDIR
-INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/fpc-$(FPC_VERSION)/$(INSTALL_FPCSUBDIR)/$(PACKAGE_NAME)
-else
-INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
-endif
-else
-INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
-endif
-else
-ifdef INSTALL_FPCPACKAGE
-ifdef INSTALL_FPCSUBDIR
-INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source/$(INSTALL_FPCSUBDIR)/$(PACKAGE_NAME)
-else
-INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source/$(PACKAGE_NAME)
-endif
-else
-INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source
-endif
-endif
-endif
-ifndef INSTALL_DOCDIR
-ifdef UNIXHier
-ifdef BSDhier
-DOCPREFIXDIR=share/doc
-else
-ifdef linuxHier
-DOCPREFIXDIR=share/doc
-else
-DOCPREFIXDIR=doc
-endif
-endif
-ifdef INSTALL_FPCPACKAGE
-INSTALL_DOCDIR:=$(INSTALL_PREFIX)/$(DOCPREFIXDIR)/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
-else
-INSTALL_DOCDIR:=$(INSTALL_PREFIX)/$(DOCPREFIXDIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
-endif
-else
-ifdef INSTALL_FPCPACKAGE
-INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc/$(PACKAGE_NAME)
-else
-INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc
-endif
-endif
-endif
-ifndef INSTALL_EXAMPLEDIR
-ifdef UNIXHier
-ifdef INSTALL_FPCPACKAGE
-ifdef BSDhier
-INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/share/examples/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
-else
-ifdef linuxHier
-INSTALL_EXAMPLEDIR:=$(INSTALL_DOCDIR)/examples
-else
-INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/fpc-$(FPC_VERSION)/examples/$(PACKAGE_NAME)
-endif
-endif
-else
-ifdef BSDhier
-INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/share/examples/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
-else
-ifdef linuxHier
-INSTALL_EXAMPLEDIR:=$(INSTALL_DOCDIR)/examples/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
-else
-INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
-endif
-endif
-endif
-else
-ifdef INSTALL_FPCPACKAGE
-INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples/$(PACKAGE_NAME)
-else
-INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples
-endif
-endif
-endif
-ifndef INSTALL_DATADIR
-INSTALL_DATADIR=$(INSTALL_BASEDIR)
-endif
-ifndef INSTALL_SHAREDDIR
-INSTALL_SHAREDDIR=$(INSTALL_PREFIX)/lib
-endif
-ifdef CROSSCOMPILE
-ifndef CROSSBINDIR
-CROSSBINDIR:=$(wildcard $(CROSSTARGETDIR)/bin/$(SOURCESUFFIX))
-ifeq ($(CROSSBINDIR),)
-CROSSBINDIR:=$(wildcard $(INSTALL_BASEDIR)/cross/$(TARGETSUFFIX)/bin/$(FULL_SOURCE))
-endif
-endif
-else
-CROSSBINDIR=
-endif
-ifeq ($(OS_SOURCE),linux)
-ifndef GCCLIBDIR
-ifeq ($(CPU_TARGET),i386)
-ifneq ($(findstring x86_64,$(shell uname -a)),)
-ifeq ($(BINUTILSPREFIX),)
-GCCLIBDIR:=$(shell dirname `gcc -m32 -print-libgcc-file-name`)
-endif
-endif
-endif
-ifeq ($(CPU_TARGET),powerpc64)
-ifeq ($(BINUTILSPREFIX),)
-GCCLIBDIR:=$(shell dirname `gcc -m64 -print-libgcc-file-name`)
-endif
-endif
-endif
-ifndef GCCLIBDIR
-CROSSGCC=$(strip $(wildcard $(addsuffix /$(BINUTILSPREFIX)gcc$(SRCEXEEXT),$(SEARCHPATH))))
-ifneq ($(CROSSGCC),)
-GCCLIBDIR:=$(shell dirname `$(CROSSGCC) -print-libgcc-file-name`)
-endif
-endif
-ifndef OTHERLIBDIR
-OTHERLIBDIR:=$(shell grep -v "^\#" /etc/ld.so.conf | awk '{ ORS=" "; print $1 }')
-endif
-endif
-ifdef inUnix
-ifeq ($(OS_SOURCE),netbsd)
-OTHERLIBDIR+=/usr/pkg/lib
-endif
-export GCCLIBDIR OTHERLIB
-endif
-BATCHEXT=.bat
-LOADEREXT=.as
-EXEEXT=.exe
-PPLEXT=.ppl
-PPUEXT=.ppu
-OEXT=.o
-ASMEXT=.s
-SMARTEXT=.sl
-STATICLIBEXT=.a
-SHAREDLIBEXT=.so
-SHAREDLIBPREFIX=libfp
-STATICLIBPREFIX=libp
-IMPORTLIBPREFIX=libimp
-RSTEXT=.rst
-ifeq ($(findstring 1.0.,$(FPC_VERSION)),)
-ifeq ($(OS_TARGET),go32v1)
-STATICLIBPREFIX=
-SHORTSUFFIX=v1
-endif
-ifeq ($(OS_TARGET),go32v2)
-STATICLIBPREFIX=
-SHORTSUFFIX=dos
-endif
-ifeq ($(OS_TARGET),watcom)
-STATICLIBPREFIX=
-OEXT=.obj
-ASMEXT=.asm
-SHAREDLIBEXT=.dll
-SHORTSUFFIX=wat
-endif
-ifeq ($(OS_TARGET),linux)
-BATCHEXT=.sh
-EXEEXT=
-HASSHAREDLIB=1
-SHORTSUFFIX=lnx
-endif
-ifeq ($(OS_TARGET),freebsd)
-BATCHEXT=.sh
-EXEEXT=
-HASSHAREDLIB=1
-SHORTSUFFIX=fbs
-endif
-ifeq ($(OS_TARGET),netbsd)
-BATCHEXT=.sh
-EXEEXT=
-HASSHAREDLIB=1
-SHORTSUFFIX=nbs
-endif
-ifeq ($(OS_TARGET),openbsd)
-BATCHEXT=.sh
-EXEEXT=
-HASSHAREDLIB=1
-SHORTSUFFIX=obs
-endif
-ifeq ($(OS_TARGET),win32)
-SHAREDLIBEXT=.dll
-SHORTSUFFIX=w32
-endif
-ifeq ($(OS_TARGET),os2)
-BATCHEXT=.cmd
-AOUTEXT=.out
-STATICLIBPREFIX=
-SHAREDLIBEXT=.dll
-SHORTSUFFIX=os2
-ECHO=echo
-endif
-ifeq ($(OS_TARGET),emx)
-BATCHEXT=.cmd
-AOUTEXT=.out
-STATICLIBPREFIX=
-SHAREDLIBEXT=.dll
-SHORTSUFFIX=emx
-ECHO=echo
-endif
-ifeq ($(OS_TARGET),amiga)
-EXEEXT=
-SHAREDLIBEXT=.library
-SHORTSUFFIX=amg
-endif
-ifeq ($(OS_TARGET),morphos)
-EXEEXT=
-SHAREDLIBEXT=.library
-SHORTSUFFIX=mos
-endif
-ifeq ($(OS_TARGET),atari)
-EXEEXT=.ttp
-SHORTSUFFIX=ata
-endif
-ifeq ($(OS_TARGET),beos)
-BATCHEXT=.sh
-EXEEXT=
-SHORTSUFFIX=be
-endif
-ifeq ($(OS_TARGET),solaris)
-BATCHEXT=.sh
-EXEEXT=
-SHORTSUFFIX=sun
-endif
-ifeq ($(OS_TARGET),qnx)
-BATCHEXT=.sh
-EXEEXT=
-SHORTSUFFIX=qnx
-endif
-ifeq ($(OS_TARGET),netware)
-EXEEXT=.nlm
-STATICLIBPREFIX=
-SHORTSUFFIX=nw
-endif
-ifeq ($(OS_TARGET),netwlibc)
-EXEEXT=.nlm
-STATICLIBPREFIX=
-SHORTSUFFIX=nwl
-endif
-ifeq ($(OS_TARGET),macos)
-BATCHEXT=
-EXEEXT=
-DEBUGSYMEXT=.xcoff
-SHORTSUFFIX=mac
-endif
-ifeq ($(OS_TARGET),darwin)
-BATCHEXT=.sh
-EXEEXT=
-HASSHAREDLIB=1
-SHORTSUFFIX=dwn
-endif
-ifeq ($(OS_TARGET),gba)
-EXEEXT=.gba
-SHAREDLIBEXT=.so
-SHORTSUFFIX=gba
-endif
-ifeq ($(OS_TARGET),symbian)
-SHAREDLIBEXT=.dll
-SHORTSUFFIX=symbian
-endif
-else
-ifeq ($(OS_TARGET),go32v1)
-PPUEXT=.pp1
-OEXT=.o1
-ASMEXT=.s1
-SMARTEXT=.sl1
-STATICLIBEXT=.a1
-SHAREDLIBEXT=.so1
-STATICLIBPREFIX=
-SHORTSUFFIX=v1
-endif
-ifeq ($(OS_TARGET),go32v2)
-STATICLIBPREFIX=
-SHORTSUFFIX=dos
-endif
-ifeq ($(OS_TARGET),watcom)
-STATICLIBPREFIX=
-SHORTSUFFIX=wat
-endif
-ifeq ($(OS_TARGET),linux)
-BATCHEXT=.sh
-EXEEXT=
-HASSHAREDLIB=1
-SHORTSUFFIX=lnx
-endif
-ifeq ($(OS_TARGET),freebsd)
-BATCHEXT=.sh
-EXEEXT=
-HASSHAREDLIB=1
-SHORTSUFFIX=fbs
-endif
-ifeq ($(OS_TARGET),netbsd)
-BATCHEXT=.sh
-EXEEXT=
-HASSHAREDLIB=1
-SHORTSUFFIX=nbs
-endif
-ifeq ($(OS_TARGET),openbsd)
-BATCHEXT=.sh
-EXEEXT=
-HASSHAREDLIB=1
-SHORTSUFFIX=obs
-endif
-ifeq ($(OS_TARGET),win32)
-PPUEXT=.ppw
-OEXT=.ow
-ASMEXT=.sw
-SMARTEXT=.slw
-STATICLIBEXT=.aw
-SHAREDLIBEXT=.dll
-SHORTSUFFIX=w32
-endif
-ifeq ($(OS_TARGET),os2)
-BATCHEXT=.cmd
-PPUEXT=.ppo
-ASMEXT=.so2
-OEXT=.oo2
-AOUTEXT=.out
-SMARTEXT=.sl2
-STATICLIBPREFIX=
-STATICLIBEXT=.ao2
-SHAREDLIBEXT=.dll
-SHORTSUFFIX=os2
-ECHO=echo
-endif
-ifeq ($(OS_TARGET),amiga)
-EXEEXT=
-PPUEXT=.ppu
-ASMEXT=.s
-OEXT=.o
-SMARTEXT=.sl
-STATICLIBEXT=.a
-SHAREDLIBEXT=.library
-SHORTSUFFIX=amg
-endif
-ifeq ($(OS_TARGET),atari)
-PPUEXT=.ppu
-ASMEXT=.s
-OEXT=.o
-SMARTEXT=.sl
-STATICLIBEXT=.a
-EXEEXT=.ttp
-SHORTSUFFIX=ata
-endif
-ifeq ($(OS_TARGET),beos)
-BATCHEXT=.sh
-PPUEXT=.ppu
-ASMEXT=.s
-OEXT=.o
-SMARTEXT=.sl
-STATICLIBEXT=.a
-EXEEXT=
-SHORTSUFFIX=be
-endif
-ifeq ($(OS_TARGET),solaris)
-BATCHEXT=.sh
-PPUEXT=.ppu
-ASMEXT=.s
-OEXT=.o
-SMARTEXT=.sl
-STATICLIBEXT=.a
-EXEEXT=
-SHORTSUFFIX=sun
-endif
-ifeq ($(OS_TARGET),qnx)
-BATCHEXT=.sh
-PPUEXT=.ppu
-ASMEXT=.s
-OEXT=.o
-SMARTEXT=.sl
-STATICLIBEXT=.a
-EXEEXT=
-SHORTSUFFIX=qnx
-endif
-ifeq ($(OS_TARGET),netware)
-STATICLIBPREFIX=
-PPUEXT=.ppu
-OEXT=.o
-ASMEXT=.s
-SMARTEXT=.sl
-STATICLIBEXT=.a
-SHAREDLIBEXT=.nlm
-EXEEXT=.nlm
-SHORTSUFFIX=nw
-endif
-ifeq ($(OS_TARGET),netwlibc)
-STATICLIBPREFIX=
-PPUEXT=.ppu
-OEXT=.o
-ASMEXT=.s
-SMARTEXT=.sl
-STATICLIBEXT=.a
-SHAREDLIBEXT=.nlm
-EXEEXT=.nlm
-SHORTSUFFIX=nwl
-endif
-ifeq ($(OS_TARGET),macos)
-BATCHEXT=
-PPUEXT=.ppu
-ASMEXT=.s
-OEXT=.o
-SMARTEXT=.sl
-STATICLIBEXT=.a
-EXEEXT=
-DEBUGSYMEXT=.xcoff
-SHORTSUFFIX=mac
-endif
-endif
-ifneq ($(findstring $(OS_SOURCE),$(LIMIT83fs)),)
-FPCMADE=fpcmade.$(SHORTSUFFIX)
-ZIPSUFFIX=$(SHORTSUFFIX)
-ZIPCROSSPREFIX=
-ZIPSOURCESUFFIX=src
-ZIPEXAMPLESUFFIX=exm
-else
-FPCMADE=fpcmade.$(TARGETSUFFIX)
-ZIPSOURCESUFFIX=.source
-ZIPEXAMPLESUFFIX=.examples
-ifdef CROSSCOMPILE
-ZIPSUFFIX=.$(SOURCESUFFIX)
-ZIPCROSSPREFIX=$(TARGETSUFFIX)-
-else
-ZIPSUFFIX=.$(TARGETSUFFIX)
-ZIPCROSSPREFIX=
-endif
-endif
-ifndef ECHO
-ECHO:=$(strip $(wildcard $(addsuffix /gecho$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(ECHO),)
-ECHO:=$(strip $(wildcard $(addsuffix /echo$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(ECHO),)
-ECHO= __missing_command_ECHO
-else
-ECHO:=$(firstword $(ECHO))
-endif
-else
-ECHO:=$(firstword $(ECHO))
-endif
-endif
-export ECHO
-ifndef DATE
-DATE:=$(strip $(wildcard $(addsuffix /gdate$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(DATE),)
-DATE:=$(strip $(wildcard $(addsuffix /date$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(DATE),)
-DATE= __missing_command_DATE
-else
-DATE:=$(firstword $(DATE))
-endif
-else
-DATE:=$(firstword $(DATE))
-endif
-endif
-export DATE
-ifndef GINSTALL
-GINSTALL:=$(strip $(wildcard $(addsuffix /ginstall$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(GINSTALL),)
-GINSTALL:=$(strip $(wildcard $(addsuffix /install$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(GINSTALL),)
-GINSTALL= __missing_command_GINSTALL
-else
-GINSTALL:=$(firstword $(GINSTALL))
-endif
-else
-GINSTALL:=$(firstword $(GINSTALL))
-endif
-endif
-export GINSTALL
-ifndef CPPROG
-CPPROG:=$(strip $(wildcard $(addsuffix /cp$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(CPPROG),)
-CPPROG= __missing_command_CPPROG
-else
-CPPROG:=$(firstword $(CPPROG))
-endif
-endif
-export CPPROG
-ifndef RMPROG
-RMPROG:=$(strip $(wildcard $(addsuffix /rm$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(RMPROG),)
-RMPROG= __missing_command_RMPROG
-else
-RMPROG:=$(firstword $(RMPROG))
-endif
-endif
-export RMPROG
-ifndef MVPROG
-MVPROG:=$(strip $(wildcard $(addsuffix /mv$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(MVPROG),)
-MVPROG= __missing_command_MVPROG
-else
-MVPROG:=$(firstword $(MVPROG))
-endif
-endif
-export MVPROG
-ifndef MKDIRPROG
-MKDIRPROG:=$(strip $(wildcard $(addsuffix /gmkdir$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(MKDIRPROG),)
-MKDIRPROG:=$(strip $(wildcard $(addsuffix /mkdir$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(MKDIRPROG),)
-MKDIRPROG= __missing_command_MKDIRPROG
-else
-MKDIRPROG:=$(firstword $(MKDIRPROG))
-endif
-else
-MKDIRPROG:=$(firstword $(MKDIRPROG))
-endif
-endif
-export MKDIRPROG
-ifndef ECHOREDIR
-ifndef inUnix
-ECHOREDIR=echo
-else
-ECHOREDIR=$(ECHO)
-endif
-endif
-ifndef COPY
-COPY:=$(CPPROG) -fp
-endif
-ifndef COPYTREE
-COPYTREE:=$(CPPROG) -Rfp
-endif
-ifndef MKDIRTREE
-MKDIRTREE:=$(MKDIRPROG) -p
-endif
-ifndef MOVE
-MOVE:=$(MVPROG) -f
-endif
-ifndef DEL
-DEL:=$(RMPROG) -f
-endif
-ifndef DELTREE
-DELTREE:=$(RMPROG) -rf
-endif
-ifndef INSTALL
-ifdef inUnix
-INSTALL:=$(GINSTALL) -c -m 644
-else
-INSTALL:=$(COPY)
-endif
-endif
-ifndef INSTALLEXE
-ifdef inUnix
-INSTALLEXE:=$(GINSTALL) -c -m 755
-else
-INSTALLEXE:=$(COPY)
-endif
-endif
-ifndef MKDIR
-MKDIR:=$(GINSTALL) -m 755 -d
-endif
-export ECHOREDIR COPY COPYTREE MOVE DEL DELTREE INSTALL INSTALLEXE MKDIR
-ifndef PPUMOVE
-PPUMOVE:=$(strip $(wildcard $(addsuffix /ppumove$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(PPUMOVE),)
-PPUMOVE= __missing_command_PPUMOVE
-else
-PPUMOVE:=$(firstword $(PPUMOVE))
-endif
-endif
-export PPUMOVE
-ifndef FPCMAKE
-FPCMAKE:=$(strip $(wildcard $(addsuffix /fpcmake$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(FPCMAKE),)
-FPCMAKE= __missing_command_FPCMAKE
-else
-FPCMAKE:=$(firstword $(FPCMAKE))
-endif
-endif
-export FPCMAKE
-ifndef ZIPPROG
-ZIPPROG:=$(strip $(wildcard $(addsuffix /zip$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(ZIPPROG),)
-ZIPPROG= __missing_command_ZIPPROG
-else
-ZIPPROG:=$(firstword $(ZIPPROG))
-endif
-endif
-export ZIPPROG
-ifndef TARPROG
-TARPROG:=$(strip $(wildcard $(addsuffix /gtar$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(TARPROG),)
-TARPROG:=$(strip $(wildcard $(addsuffix /tar$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(TARPROG),)
-TARPROG= __missing_command_TARPROG
-else
-TARPROG:=$(firstword $(TARPROG))
-endif
-else
-TARPROG:=$(firstword $(TARPROG))
-endif
-endif
-export TARPROG
-ASNAME=$(BINUTILSPREFIX)as
-LDNAME=$(BINUTILSPREFIX)ld
-ARNAME=$(BINUTILSPREFIX)ar
-RCNAME=$(BINUTILSPREFIX)rc
-ifneq ($(findstring 1.0.,$(FPC_VERSION)),)
-ifeq ($(OS_TARGET),win32)
-ifeq ($(CROSSBINDIR),)
-ASNAME=asw
-LDNAME=ldw
-ARNAME=arw
-endif
-endif
-endif
-ifndef ASPROG
-ifdef CROSSBINDIR
-ASPROG=$(CROSSBINDIR)/$(ASNAME)$(SRCEXEEXT)
-else
-ASPROG=$(ASNAME)
-endif
-endif
-ifndef LDPROG
-ifdef CROSSBINDIR
-LDPROG=$(CROSSBINDIR)/$(LDNAME)$(SRCEXEEXT)
-else
-LDPROG=$(LDNAME)
-endif
-endif
-ifndef RCPROG
-ifdef CROSSBINDIR
-RCPROG=$(CROSSBINDIR)/$(RCNAME)$(SRCEXEEXT)
-else
-RCPROG=$(RCNAME)
-endif
-endif
-ifndef ARPROG
-ifdef CROSSBINDIR
-ARPROG=$(CROSSBINDIR)/$(ARNAME)$(SRCEXEEXT)
-else
-ARPROG=$(ARNAME)
-endif
-endif
-AS=$(ASPROG)
-LD=$(LDPROG)
-RC=$(RCPROG)
-AR=$(ARPROG)
-PPAS=ppas$(SRCBATCHEXT)
-ifdef inUnix
-LDCONFIG=ldconfig
-else
-LDCONFIG=
-endif
-ifdef DATE
-DATESTR:=$(shell $(DATE) +%Y%m%d)
-else
-DATESTR=
-endif
-ifndef UPXPROG
-ifeq ($(OS_TARGET),go32v2)
-UPXPROG:=1
-endif
-ifeq ($(OS_TARGET),win32)
-UPXPROG:=1
-endif
-ifdef UPXPROG
-UPXPROG:=$(strip $(wildcard $(addsuffix /upx$(SRCEXEEXT),$(SEARCHPATH))))
-ifeq ($(UPXPROG),)
-UPXPROG=
-else
-UPXPROG:=$(firstword $(UPXPROG))
-endif
-else
-UPXPROG=
-endif
-endif
-export UPXPROG
-ZIPOPT=-9
-ZIPEXT=.zip
-ifeq ($(USETAR),bz2)
-TAROPT=vj
-TAREXT=.tar.bz2
-else
-TAROPT=vz
-TAREXT=.tar.gz
-endif
-override REQUIRE_PACKAGES=rtl zlib
-ifeq ($(FULL_TARGET),i386-linux)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),i386-go32v2)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),i386-win32)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),i386-os2)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),i386-freebsd)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),i386-beos)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),i386-netbsd)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),i386-solaris)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),i386-qnx)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),i386-netware)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),i386-openbsd)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),i386-wdosx)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),i386-darwin)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),i386-emx)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),i386-watcom)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),i386-netwlibc)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),i386-wince)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),i386-embedded)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),i386-symbian)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),m68k-linux)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),m68k-freebsd)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),m68k-netbsd)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),m68k-amiga)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),m68k-atari)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),m68k-openbsd)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),m68k-palmos)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),m68k-embedded)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),powerpc-linux)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),powerpc-netbsd)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),powerpc-amiga)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),powerpc-macos)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),powerpc-darwin)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),powerpc-morphos)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),powerpc-embedded)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),sparc-linux)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),sparc-netbsd)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),sparc-solaris)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),sparc-embedded)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),x86_64-linux)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),x86_64-freebsd)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),x86_64-darwin)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),x86_64-win64)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),x86_64-embedded)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),arm-linux)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),arm-palmos)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),arm-wince)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),arm-gba)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),arm-nds)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),arm-embedded)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),arm-symbian)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),powerpc64-linux)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),powerpc64-darwin)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifeq ($(FULL_TARGET),powerpc64-embedded)
-REQUIRE_PACKAGES_RTL=1
-REQUIRE_PACKAGES_ZLIB=1
-endif
-ifdef REQUIRE_PACKAGES_RTL
-PACKAGEDIR_RTL:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /rtl/Makefile.fpc,$(PACKAGESDIR))))))
-ifneq ($(PACKAGEDIR_RTL),)
-ifneq ($(wildcard $(PACKAGEDIR_RTL)/units/$(TARGETSUFFIX)),)
-UNITDIR_RTL=$(PACKAGEDIR_RTL)/units/$(TARGETSUFFIX)
-else
-UNITDIR_RTL=$(PACKAGEDIR_RTL)
-endif
-ifdef CHECKDEPEND
-$(PACKAGEDIR_RTL)/$(FPCMADE):
-	$(MAKE) -C $(PACKAGEDIR_RTL) $(FPCMADE)
-override ALLDEPENDENCIES+=$(PACKAGEDIR_RTL)/$(FPCMADE)
-endif
-else
-PACKAGEDIR_RTL=
-UNITDIR_RTL:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /rtl/Package.fpc,$(UNITSDIR)))))
-ifneq ($(UNITDIR_RTL),)
-UNITDIR_RTL:=$(firstword $(UNITDIR_RTL))
-else
-UNITDIR_RTL=
-endif
-endif
-ifdef UNITDIR_RTL
-override COMPILER_UNITDIR+=$(UNITDIR_RTL)
-endif
-endif
-ifdef REQUIRE_PACKAGES_ZLIB
-PACKAGEDIR_ZLIB:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /zlib/Makefile.fpc,$(PACKAGESDIR))))))
-ifneq ($(PACKAGEDIR_ZLIB),)
-ifneq ($(wildcard $(PACKAGEDIR_ZLIB)/units/$(TARGETSUFFIX)),)
-UNITDIR_ZLIB=$(PACKAGEDIR_ZLIB)/units/$(TARGETSUFFIX)
-else
-UNITDIR_ZLIB=$(PACKAGEDIR_ZLIB)
-endif
-ifdef CHECKDEPEND
-$(PACKAGEDIR_ZLIB)/$(FPCMADE):
-	$(MAKE) -C $(PACKAGEDIR_ZLIB) $(FPCMADE)
-override ALLDEPENDENCIES+=$(PACKAGEDIR_ZLIB)/$(FPCMADE)
-endif
-else
-PACKAGEDIR_ZLIB=
-UNITDIR_ZLIB:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /zlib/Package.fpc,$(UNITSDIR)))))
-ifneq ($(UNITDIR_ZLIB),)
-UNITDIR_ZLIB:=$(firstword $(UNITDIR_ZLIB))
-else
-UNITDIR_ZLIB=
-endif
-endif
-ifdef UNITDIR_ZLIB
-override COMPILER_UNITDIR+=$(UNITDIR_ZLIB)
-endif
-endif
-ifndef NOCPUDEF
-override FPCOPTDEF=$(CPU_TARGET)
-endif
-ifneq ($(OS_TARGET),$(OS_SOURCE))
-override FPCOPT+=-T$(OS_TARGET)
-endif
-ifneq ($(CPU_TARGET),$(CPU_SOURCE))
-override FPCOPT+=-P$(CPU_TARGET)
-endif
-ifeq ($(OS_SOURCE),openbsd)
-override FPCOPT+=-FD$(NEW_BINUTILS_PATH)
-endif
-ifndef CROSSBOOTSTRAP
-ifneq ($(BINUTILSPREFIX),)
-override FPCOPT+=-XP$(BINUTILSPREFIX)
-endif
-ifneq ($(BINUTILSPREFIX),)
-override FPCOPT+=-Xr$(RLINKPATH)
-endif
-endif
-ifdef UNITDIR
-override FPCOPT+=$(addprefix -Fu,$(UNITDIR))
-endif
-ifdef LIBDIR
-override FPCOPT+=$(addprefix -Fl,$(LIBDIR))
-endif
-ifdef OBJDIR
-override FPCOPT+=$(addprefix -Fo,$(OBJDIR))
-endif
-ifdef INCDIR
-override FPCOPT+=$(addprefix -Fi,$(INCDIR))
-endif
-ifdef LINKSMART
-override FPCOPT+=-XX
-endif
-ifdef CREATESMART
-override FPCOPT+=-CX
-endif
-ifdef DEBUG
-override FPCOPT+=-gl
-override FPCOPTDEF+=DEBUG
-endif
-ifdef RELEASE
-ifneq ($(findstring 2.0.,$(FPC_VERSION)),)
-ifeq ($(CPU_TARGET),i386)
-FPCCPUOPT:=-OG2p3
-endif
-ifeq ($(CPU_TARGET),powerpc)
-FPCCPUOPT:=-O1r
-endif
-else
-FPCCPUOPT:=-O2
-endif
-override FPCOPT+=-Ur -Xs $(FPCCPUOPT) -n
-override FPCOPTDEF+=RELEASE
-endif
-ifdef STRIP
-override FPCOPT+=-Xs
-endif
-ifdef OPTIMIZE
-override FPCOPT+=-O2
-endif
-ifdef VERBOSE
-override FPCOPT+=-vwni
-endif
-ifdef COMPILER_OPTIONS
-override FPCOPT+=$(COMPILER_OPTIONS)
-endif
-ifdef COMPILER_UNITDIR
-override FPCOPT+=$(addprefix -Fu,$(COMPILER_UNITDIR))
-endif
-ifdef COMPILER_LIBRARYDIR
-override FPCOPT+=$(addprefix -Fl,$(COMPILER_LIBRARYDIR))
-endif
-ifdef COMPILER_OBJECTDIR
-override FPCOPT+=$(addprefix -Fo,$(COMPILER_OBJECTDIR))
-endif
-ifdef COMPILER_INCLUDEDIR
-override FPCOPT+=$(addprefix -Fi,$(COMPILER_INCLUDEDIR))
-endif
-ifdef CROSSBINDIR
-override FPCOPT+=-FD$(CROSSBINDIR)
-endif
-ifdef COMPILER_TARGETDIR
-override FPCOPT+=-FE$(COMPILER_TARGETDIR)
-ifeq ($(COMPILER_TARGETDIR),.)
-override TARGETDIRPREFIX=
-else
-override TARGETDIRPREFIX=$(COMPILER_TARGETDIR)/
-endif
-endif
-ifdef COMPILER_UNITTARGETDIR
-override FPCOPT+=-FU$(COMPILER_UNITTARGETDIR)
-ifeq ($(COMPILER_UNITTARGETDIR),.)
-override UNITTARGETDIRPREFIX=
-else
-override UNITTARGETDIRPREFIX=$(COMPILER_UNITTARGETDIR)/
-endif
-else
-ifdef COMPILER_TARGETDIR
-override COMPILER_UNITTARGETDIR=$(COMPILER_TARGETDIR)
-override UNITTARGETDIRPREFIX=$(TARGETDIRPREFIX)
-endif
-endif
-ifdef CREATESHARED
-override FPCOPT+=-Cg
-ifeq ($(CPU_TARGET),i386)
-override FPCOPT+=-Aas
-endif
-endif
-ifeq ($(findstring 2.0.,$(FPC_VERSION)),)
-ifeq ($(OS_TARGET),linux)
-ifeq ($(CPU_TARGET),x86_64)
-override FPCOPT+=-Cg
-endif
-endif
-endif
-ifdef LINKSHARED
-endif
-ifdef GCCLIBDIR
-override FPCOPT+=-Fl$(GCCLIBDIR)
-endif
-ifdef OTHERLIBDIR
-override FPCOPT+=$(addprefix -Fl,$(OTHERLIBDIR))
-endif
-ifdef OPT
-override FPCOPT+=$(OPT)
-endif
-ifdef FPCOPTDEF
-override FPCOPT+=$(addprefix -d,$(FPCOPTDEF))
-endif
-ifdef CFGFILE
-override FPCOPT+=@$(CFGFILE)
-endif
-ifdef USEENV
-override FPCEXTCMD:=$(FPCOPT)
-override FPCOPT:=!FPCEXTCMD
-export FPCEXTCMD
-endif
-override AFULL_TARGET=$(CPU_TARGET)-$(OS_TARGET)
-override AFULL_SOURCE=$(CPU_SOURCE)-$(OS_SOURCE)
-ifneq ($(AFULL_TARGET),$(AFULL_SOURCE))
-override ACROSSCOMPILE=1
-endif
-ifdef ACROSSCOMPILE
-override FPCOPT+=$(CROSSOPT)
-endif
-override COMPILER:=$(FPC) $(FPCOPT)
-ifeq (,$(findstring -s ,$(COMPILER)))
-EXECPPAS=
-else
-ifeq ($(FULL_SOURCE),$(FULL_TARGET))
-ifdef RUNBATCH
-EXECPPAS:=@$(RUNBATCH) $(PPAS)
-else
-EXECPPAS:=@$(PPAS)
-endif
-endif
-endif
-.PHONY: fpc_units
-ifneq ($(TARGET_UNITS),)
-override ALLTARGET+=fpc_units
-override UNITPPUFILES=$(addsuffix $(PPUEXT),$(TARGET_UNITS))
-override IMPLICITUNITPPUFILES=$(addsuffix $(PPUEXT),$(TARGET_IMPLICITUNITS))
-override INSTALLPPUFILES+=$(UNITPPUFILES) $(IMPLICITUNITPPUFILES)
-override CLEANPPUFILES+=$(UNITPPUFILES) $(IMPLICITUNITPPUFILES)
-endif
-fpc_units: $(COMPILER_UNITTARGETDIR) $(UNITPPUFILES)
-ifdef TARGET_RSTS
-override RSTFILES=$(addsuffix $(RSTEXT),$(TARGET_RSTS))
-override CLEANRSTFILES+=$(RSTFILES)
-endif
-.PHONY: fpc_all fpc_smart fpc_debug fpc_release fpc_shared
-$(FPCMADE): $(ALLDEPENDENCIES) $(ALLTARGET)
-	@$(ECHOREDIR) Compiled > $(FPCMADE)
-fpc_all: $(FPCMADE)
-fpc_smart:
-	$(MAKE) all LINKSMART=1 CREATESMART=1
-fpc_debug:
-	$(MAKE) all DEBUG=1
-fpc_release:
-	$(MAKE) all RELEASE=1
-.SUFFIXES: $(EXEEXT) $(PPUEXT) $(OEXT) .pas .lpr .dpr .pp .rc .res
-$(COMPILER_UNITTARGETDIR):
-	$(MKDIRTREE) $(COMPILER_UNITTARGETDIR)
-$(COMPILER_TARGETDIR):
-	$(MKDIRTREE) $(COMPILER_TARGETDIR)
-%$(PPUEXT): %.pp
-	$(COMPILER) $<
-	$(EXECPPAS)
-%$(PPUEXT): %.pas
-	$(COMPILER) $<
-	$(EXECPPAS)
-%$(EXEEXT): %.pp
-	$(COMPILER) $<
-	$(EXECPPAS)
-%$(EXEEXT): %.pas
-	$(COMPILER) $<
-	$(EXECPPAS)
-%$(EXEEXT): %.lpr
-	$(COMPILER) $<
-	$(EXECPPAS)
-%$(EXEEXT): %.dpr
-	$(COMPILER) $<
-	$(EXECPPAS)
-%.res: %.rc
-	windres -i $< -o $@
-vpath %.pp $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
-vpath %.pas $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
-vpath %.lpr $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
-vpath %.dpr $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
-vpath %.inc $(COMPILER_INCLUDEDIR)
-vpath %$(OEXT) $(COMPILER_UNITTARGETDIR)
-vpath %$(PPUEXT) $(COMPILER_UNITTARGETDIR)
-.PHONY: fpc_shared
-override INSTALLTARGET+=fpc_shared_install
-ifndef SHARED_LIBVERSION
-SHARED_LIBVERSION=$(FPC_VERSION)
-endif
-ifndef SHARED_LIBNAME
-SHARED_LIBNAME=$(PACKAGE_NAME)
-endif
-ifndef SHARED_FULLNAME
-SHARED_FULLNAME=$(SHAREDLIBPREFIX)$(SHARED_LIBNAME)-$(SHARED_LIBVERSION)$(SHAREDLIBEXT)
-endif
-ifndef SHARED_LIBUNITS
-SHARED_LIBUNITS:=$(TARGET_UNITS) $(TARGET_IMPLICITUNITS)
-override SHARED_LIBUNITS:=$(filter-out $(INSTALL_BUILDUNIT),$(SHARED_LIBUNITS))
-endif
-fpc_shared:
-ifdef HASSHAREDLIB
-	$(MAKE) all CREATESHARED=1 LINKSHARED=1 CREATESMART=1
-ifneq ($(SHARED_BUILD),n)
-	$(PPUMOVE) -q $(SHARED_LIBUNITS) -i$(COMPILER_UNITTARGETDIR) -o$(SHARED_FULLNAME) -d$(COMPILER_UNITTARGETDIR)
-endif
-else
-	@$(ECHO) Shared Libraries not supported
-endif
-fpc_shared_install:
-ifneq ($(SHARED_BUILD),n)
-ifneq ($(SHARED_LIBUNITS),)
-ifneq ($(wildcard $(COMPILER_UNITTARGETDIR)/$(SHARED_FULLNAME)),)
-	$(INSTALL) $(COMPILER_UNITTARGETDIR)/$(SHARED_FULLNAME) $(INSTALL_SHAREDDIR)
-endif
-endif
-endif
-.PHONY: fpc_install fpc_sourceinstall fpc_exampleinstall
-ifdef INSTALL_UNITS
-override INSTALLPPUFILES+=$(addsuffix $(PPUEXT),$(INSTALL_UNITS))
-endif
-ifdef INSTALL_BUILDUNIT
-override INSTALLPPUFILES:=$(filter-out $(INSTALL_BUILDUNIT)$(PPUEXT),$(INSTALLPPUFILES))
-endif
-ifdef INSTALLPPUFILES
-override INSTALLPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(INSTALLPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(INSTALLPPUFILES))) $(addprefix $(IMPORTLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(INSTALLPPUFILES)))
-ifneq ($(UNITTARGETDIRPREFIX),)
-override INSTALLPPUFILES:=$(addprefix $(UNITTARGETDIRPREFIX),$(notdir $(INSTALLPPUFILES)))
-override INSTALLPPULINKFILES:=$(wildcard $(addprefix $(UNITTARGETDIRPREFIX),$(notdir $(INSTALLPPULINKFILES))))
-endif
-override INSTALL_CREATEPACKAGEFPC=1
-endif
-ifdef INSTALLEXEFILES
-ifneq ($(TARGETDIRPREFIX),)
-override INSTALLEXEFILES:=$(addprefix $(TARGETDIRPREFIX),$(notdir $(INSTALLEXEFILES)))
-endif
-endif
-fpc_install: all $(INSTALLTARGET)
-ifdef INSTALLEXEFILES
-	$(MKDIR) $(INSTALL_BINDIR)
-ifdef UPXPROG
-	-$(UPXPROG) $(INSTALLEXEFILES)
-endif
-	$(INSTALLEXE) $(INSTALLEXEFILES) $(INSTALL_BINDIR)
-endif
-ifdef INSTALL_CREATEPACKAGEFPC
-ifdef FPCMAKE
-ifdef PACKAGE_VERSION
-ifneq ($(wildcard Makefile.fpc),)
-	$(FPCMAKE) -p -T$(CPU_TARGET)-$(OS_TARGET) Makefile.fpc
-	$(MKDIR) $(INSTALL_UNITDIR)
-	$(INSTALL) Package.fpc $(INSTALL_UNITDIR)
-endif
-endif
-endif
-endif
-ifdef INSTALLPPUFILES
-	$(MKDIR) $(INSTALL_UNITDIR)
-	$(INSTALL) $(INSTALLPPUFILES) $(INSTALL_UNITDIR)
-ifneq ($(INSTALLPPULINKFILES),)
-	$(INSTALL) $(INSTALLPPULINKFILES) $(INSTALL_UNITDIR)
-endif
-ifneq ($(wildcard $(LIB_FULLNAME)),)
-	$(MKDIR) $(INSTALL_LIBDIR)
-	$(INSTALL) $(LIB_FULLNAME) $(INSTALL_LIBDIR)
-ifdef inUnix
-	ln -sf $(LIB_FULLNAME) $(INSTALL_LIBDIR)/$(LIB_NAME)
-endif
-endif
-endif
-ifdef INSTALL_FILES
-	$(MKDIR) $(INSTALL_DATADIR)
-	$(INSTALL) $(INSTALL_FILES) $(INSTALL_DATADIR)
-endif
-fpc_sourceinstall: distclean
-	$(MKDIR) $(INSTALL_SOURCEDIR)
-	$(COPYTREE) $(BASEDIR)/* $(INSTALL_SOURCEDIR)
-fpc_exampleinstall: $(addsuffix _distclean,$(TARGET_EXAMPLEDIRS))
-ifdef HASEXAMPLES
-	$(MKDIR) $(INSTALL_EXAMPLEDIR)
-endif
-ifdef EXAMPLESOURCEFILES
-	$(COPY) $(EXAMPLESOURCEFILES) $(INSTALL_EXAMPLEDIR)
-endif
-ifdef TARGET_EXAMPLEDIRS
-	$(COPYTREE) $(addsuffix /*,$(TARGET_EXAMPLEDIRS)) $(INSTALL_EXAMPLEDIR)
-endif
-.PHONY: fpc_distinstall
-fpc_distinstall: install exampleinstall
-.PHONY: fpc_zipinstall fpc_zipsourceinstall fpc_zipexampleinstall
-ifndef PACKDIR
-ifndef inUnix
-PACKDIR=$(BASEDIR)/../fpc-pack
-else
-PACKDIR=/tmp/fpc-pack
-endif
-endif
-ifndef ZIPNAME
-ifdef DIST_ZIPNAME
-ZIPNAME=$(DIST_ZIPNAME)
-else
-ZIPNAME=$(PACKAGE_NAME)
-endif
-endif
-ifndef FULLZIPNAME
-FULLZIPNAME=$(ZIPCROSSPREFIX)$(ZIPPREFIX)$(ZIPNAME)$(ZIPSUFFIX)
-endif
-ifndef ZIPTARGET
-ifdef DIST_ZIPTARGET
-ZIPTARGET=DIST_ZIPTARGET
-else
-ZIPTARGET=install
-endif
-endif
-ifndef USEZIP
-ifdef inUnix
-USETAR=1
-endif
-endif
-ifndef inUnix
-USEZIPWRAPPER=1
-endif
-ifdef USEZIPWRAPPER
-ZIPPATHSEP=$(PATHSEP)
-ZIPWRAPPER=$(subst /,$(PATHSEP),$(DIST_DESTDIR)/fpczip$(SRCBATCHEXT))
-else
-ZIPPATHSEP=/
-endif
-ZIPCMD_CDPACK:=cd $(subst /,$(ZIPPATHSEP),$(PACKDIR))
-ZIPCMD_CDBASE:=cd $(subst /,$(ZIPPATHSEP),$(BASEDIR))
-ifdef USETAR
-ZIPDESTFILE:=$(DIST_DESTDIR)/$(FULLZIPNAME)$(TAREXT)
-ZIPCMD_ZIP:=$(TARPROG) cf$(TAROPT) $(ZIPDESTFILE) *
-else
-ZIPDESTFILE:=$(DIST_DESTDIR)/$(FULLZIPNAME)$(ZIPEXT)
-ZIPCMD_ZIP:=$(subst /,$(ZIPPATHSEP),$(ZIPPROG)) -Dr $(ZIPOPT) $(ZIPDESTFILE) *
-endif
-fpc_zipinstall:
-	$(MAKE) $(ZIPTARGET) INSTALL_PREFIX=$(PACKDIR) ZIPINSTALL=1
-	$(MKDIR) $(DIST_DESTDIR)
-	$(DEL) $(ZIPDESTFILE)
-ifdef USEZIPWRAPPER
-ifneq ($(ECHOREDIR),echo)
-	$(ECHOREDIR) -e "$(subst \,\\,$(ZIPCMD_CDPACK))" > $(ZIPWRAPPER)
-	$(ECHOREDIR) -e "$(subst \,\\,$(ZIPCMD_ZIP))" >> $(ZIPWRAPPER)
-	$(ECHOREDIR) -e "$(subst \,\\,$(ZIPCMD_CDBASE))" >> $(ZIPWRAPPER)
-else
-	echo $(ZIPCMD_CDPACK) > $(ZIPWRAPPER)
-	echo $(ZIPCMD_ZIP) >> $(ZIPWRAPPER)
-	echo $(ZIPCMD_CDBASE) >> $(ZIPWRAPPER)
-endif
-ifdef inUnix
-	/bin/sh $(ZIPWRAPPER)
-else
-ifdef RUNBATCH
-	$(RUNBATCH) (ZIPWRAPPER)
-else
-	$(ZIPWRAPPER)
-endif
-endif
-	$(DEL) $(ZIPWRAPPER)
-else
-	$(ZIPCMD_CDPACK) ; $(ZIPCMD_ZIP) ; $(ZIPCMD_CDBASE)
-endif
-	$(DELTREE) $(PACKDIR)
-fpc_zipsourceinstall:
-	$(MAKE) fpc_zipinstall ZIPTARGET=sourceinstall ZIPSUFFIX=$(ZIPSOURCESUFFIX)
-fpc_zipexampleinstall:
-ifdef HASEXAMPLES
-	$(MAKE) fpc_zipinstall ZIPTARGET=exampleinstall ZIPSUFFIX=$(ZIPEXAMPLESUFFIX)
-endif
-fpc_zipdistinstall:
-	$(MAKE) fpc_zipinstall ZIPTARGET=distinstall
-.PHONY: fpc_clean fpc_cleanall fpc_distclean
-ifdef EXEFILES
-override CLEANEXEFILES:=$(addprefix $(TARGETDIRPREFIX),$(CLEANEXEFILES))
-endif
-ifdef CLEAN_UNITS
-override CLEANPPUFILES+=$(addsuffix $(PPUEXT),$(CLEAN_UNITS))
-endif
-ifdef CLEANPPUFILES
-override CLEANPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(CLEANPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(CLEANPPUFILES))) $(addprefix $(IMPORTLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(CLEANPPUFILES)))
-ifdef DEBUGSYMEXT
-override CLEANPPULINKFILES+=$(subst $(PPUEXT),$(DEBUGSYMEXT),$(CLEANPPUFILES))
-endif
-override CLEANPPUFILES:=$(addprefix $(UNITTARGETDIRPREFIX),$(CLEANPPUFILES))
-override CLEANPPULINKFILES:=$(wildcard $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANPPULINKFILES)))
-endif
-fpc_clean: $(CLEANTARGET)
-ifdef CLEANEXEFILES
-	-$(DEL) $(CLEANEXEFILES)
-endif
-ifdef CLEANPPUFILES
-	-$(DEL) $(CLEANPPUFILES)
-endif
-ifneq ($(CLEANPPULINKFILES),)
-	-$(DEL) $(CLEANPPULINKFILES)
-endif
-ifdef CLEANRSTFILES
-	-$(DEL) $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANRSTFILES))
-endif
-ifdef CLEAN_FILES
-	-$(DEL) $(CLEAN_FILES)
-endif
-ifdef LIB_NAME
-	-$(DEL) $(LIB_NAME) $(LIB_FULLNAME)
-endif
-	-$(DEL) $(FPCMADE) Package.fpc $(PPAS) script.res link.res $(FPCEXTFILE) $(REDIRFILE)
-	-$(DEL) *$(ASMEXT) *_ppas$(BATCHEXT)
-fpc_cleanall: $(CLEANTARGET)
-ifdef CLEANEXEFILES
-	-$(DEL) $(CLEANEXEFILES)
-endif
-ifdef COMPILER_UNITTARGETDIR
-ifdef CLEANPPUFILES
-	-$(DEL) $(CLEANPPUFILES)
-endif
-ifneq ($(CLEANPPULINKFILES),)
-	-$(DEL) $(CLEANPPULINKFILES)
-endif
-ifdef CLEANRSTFILES
-	-$(DEL) $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANRSTFILES))
-endif
-endif
-	-$(DELTREE) units
-	-$(DEL) *$(OEXT) *$(PPUEXT) *$(RSTEXT) *$(ASMEXT) *$(STATICLIBEXT) *$(SHAREDLIBEXT) *$(PPLEXT)
-ifneq ($(PPUEXT),.ppu)
-	-$(DEL) *.o *.ppu *.a
-endif
-	-$(DELTREE) *$(SMARTEXT)
-	-$(DEL) fpcmade.* Package.fpc $(PPAS) script.res link.res $(FPCEXTFILE) $(REDIRFILE)
-	-$(DEL) *_ppas$(BATCHEXT)
-ifdef AOUTEXT
-	-$(DEL) *$(AOUTEXT)
-endif
-ifdef DEBUGSYMEXT
-	-$(DEL) *$(DEBUGSYMEXT)
-endif
-fpc_distclean: cleanall
-.PHONY: fpc_baseinfo
-override INFORULES+=fpc_baseinfo
-fpc_baseinfo:
-	@$(ECHO)
-	@$(ECHO)  == Package info ==
-	@$(ECHO)  Package Name..... $(PACKAGE_NAME)
-	@$(ECHO)  Package Version.. $(PACKAGE_VERSION)
-	@$(ECHO)
-	@$(ECHO)  == Configuration info ==
-	@$(ECHO)
-	@$(ECHO)  FPC.......... $(FPC)
-	@$(ECHO)  FPC Version.. $(FPC_VERSION)
-	@$(ECHO)  Source CPU... $(CPU_SOURCE)
-	@$(ECHO)  Target CPU... $(CPU_TARGET)
-	@$(ECHO)  Source OS.... $(OS_SOURCE)
-	@$(ECHO)  Target OS.... $(OS_TARGET)
-	@$(ECHO)  Full Source.. $(FULL_SOURCE)
-	@$(ECHO)  Full Target.. $(FULL_TARGET)
-	@$(ECHO)  SourceSuffix. $(SOURCESUFFIX)
-	@$(ECHO)  TargetSuffix. $(TARGETSUFFIX)
-	@$(ECHO)
-	@$(ECHO)  == Directory info ==
-	@$(ECHO)
-	@$(ECHO)  Required pkgs... $(REQUIRE_PACKAGES)
-	@$(ECHO)
-	@$(ECHO)  Basedir......... $(BASEDIR)
-	@$(ECHO)  FPCDir.......... $(FPCDIR)
-	@$(ECHO)  CrossBinDir..... $(CROSSBINDIR)
-	@$(ECHO)  UnitsDir........ $(UNITSDIR)
-	@$(ECHO)  PackagesDir..... $(PACKAGESDIR)
-	@$(ECHO)
-	@$(ECHO)  GCC library..... $(GCCLIBDIR)
-	@$(ECHO)  Other library... $(OTHERLIBDIR)
-	@$(ECHO)
-	@$(ECHO)  == Tools info ==
-	@$(ECHO)
-	@$(ECHO)  As........ $(AS)
-	@$(ECHO)  Ld........ $(LD)
-	@$(ECHO)  Ar........ $(AR)
-	@$(ECHO)  Rc........ $(RC)
-	@$(ECHO)
-	@$(ECHO)  Mv........ $(MVPROG)
-	@$(ECHO)  Cp........ $(CPPROG)
-	@$(ECHO)  Rm........ $(RMPROG)
-	@$(ECHO)  GInstall.. $(GINSTALL)
-	@$(ECHO)  Echo...... $(ECHO)
-	@$(ECHO)  Shell..... $(SHELL)
-	@$(ECHO)  Date...... $(DATE)
-	@$(ECHO)  FPCMake... $(FPCMAKE)
-	@$(ECHO)  PPUMove... $(PPUMOVE)
-	@$(ECHO)  Upx....... $(UPXPROG)
-	@$(ECHO)  Zip....... $(ZIPPROG)
-	@$(ECHO)
-	@$(ECHO)  == Object info ==
-	@$(ECHO)
-	@$(ECHO)  Target Loaders........ $(TARGET_LOADERS)
-	@$(ECHO)  Target Units.......... $(TARGET_UNITS)
-	@$(ECHO)  Target Implicit Units. $(TARGET_IMPLICITUNITS)
-	@$(ECHO)  Target Programs....... $(TARGET_PROGRAMS)
-	@$(ECHO)  Target Dirs........... $(TARGET_DIRS)
-	@$(ECHO)  Target Examples....... $(TARGET_EXAMPLES)
-	@$(ECHO)  Target ExampleDirs.... $(TARGET_EXAMPLEDIRS)
-	@$(ECHO)
-	@$(ECHO)  Clean Units......... $(CLEAN_UNITS)
-	@$(ECHO)  Clean Files......... $(CLEAN_FILES)
-	@$(ECHO)
-	@$(ECHO)  Install Units....... $(INSTALL_UNITS)
-	@$(ECHO)  Install Files....... $(INSTALL_FILES)
-	@$(ECHO)
-	@$(ECHO)  == Install info ==
-	@$(ECHO)
-	@$(ECHO)  DateStr.............. $(DATESTR)
-	@$(ECHO)  ZipName.............. $(ZIPNAME)
-	@$(ECHO)  ZipPrefix............ $(ZIPPREFIX)
-	@$(ECHO)  ZipCrossPrefix....... $(ZIPCROSSPREFIX)
-	@$(ECHO)  ZipSuffix............ $(ZIPSUFFIX)
-	@$(ECHO)  FullZipName.......... $(FULLZIPNAME)
-	@$(ECHO)  Install FPC Package.. $(INSTALL_FPCPACKAGE)
-	@$(ECHO)
-	@$(ECHO)  Install base dir..... $(INSTALL_BASEDIR)
-	@$(ECHO)  Install binary dir... $(INSTALL_BINDIR)
-	@$(ECHO)  Install library dir.. $(INSTALL_LIBDIR)
-	@$(ECHO)  Install units dir.... $(INSTALL_UNITDIR)
-	@$(ECHO)  Install source dir... $(INSTALL_SOURCEDIR)
-	@$(ECHO)  Install doc dir...... $(INSTALL_DOCDIR)
-	@$(ECHO)  Install example dir.. $(INSTALL_EXAMPLEDIR)
-	@$(ECHO)  Install data dir..... $(INSTALL_DATADIR)
-	@$(ECHO)
-	@$(ECHO)  Dist destination dir. $(DIST_DESTDIR)
-	@$(ECHO)  Dist zip name........ $(DIST_ZIPNAME)
-	@$(ECHO)
-.PHONY: fpc_info
-fpc_info: $(INFORULES)
-.PHONY: fpc_makefile fpc_makefiles fpc_makefile_sub1 fpc_makefile_sub2 \
-	fpc_makefile_dirs
-fpc_makefile:
-	$(FPCMAKE) -w -T$(OS_TARGET) Makefile.fpc
-fpc_makefile_sub1:
-ifdef TARGET_DIRS
-	$(FPCMAKE) -w -T$(OS_TARGET) $(addsuffix /Makefile.fpc,$(TARGET_DIRS))
-endif
-ifdef TARGET_EXAMPLEDIRS
-	$(FPCMAKE) -w -T$(OS_TARGET) $(addsuffix /Makefile.fpc,$(TARGET_EXAMPLEDIRS))
-endif
-fpc_makefile_sub2: $(addsuffix _makefile_dirs,$(TARGET_DIRS) $(TARGET_EXAMPLEDIRS))
-fpc_makefile_dirs: fpc_makefile_sub1 fpc_makefile_sub2
-fpc_makefiles: fpc_makefile fpc_makefile_dirs
-all: fpc_all
-debug: fpc_debug
-smart: fpc_smart
-release: fpc_release
-units: fpc_units
-examples:
-shared: fpc_shared
-install: fpc_install
-sourceinstall: fpc_sourceinstall
-exampleinstall: fpc_exampleinstall
-distinstall: fpc_distinstall
-zipinstall: fpc_zipinstall
-zipsourceinstall: fpc_zipsourceinstall
-zipexampleinstall: fpc_zipexampleinstall
-zipdistinstall: fpc_zipdistinstall
-clean: fpc_clean
-distclean: fpc_distclean
-cleanall: fpc_cleanall
-info: fpc_info
-makefiles: fpc_makefiles
-.PHONY: all debug smart release units examples shared install sourceinstall exampleinstall distinstall zipinstall zipsourceinstall zipexampleinstall zipdistinstall clean distclean cleanall info makefiles
-ifneq ($(wildcard fpcmake.loc),)
-include fpcmake.loc
-endif
-.NOTPARALLEL:

+ 0 - 26
packages/extra/libpng/Makefile.fpc

@@ -1,26 +0,0 @@
-#
-#   Makefile.fpc for PNG Library interface
-#
-
-[package]
-name=libpng
-version=2.0.0
-
-[require]
-packages=zlib
-libc=y
-
-[target]
-units=png
-
-[install]
-fpcpackage=y
-
-[default]
-fpcdir=../../..
-
-[shared]
-build=n
-
-[rules]
-.NOTPARALLEL:

+ 0 - 10
packages/extra/libpng/fpmake.inc

@@ -1,10 +0,0 @@
-    StartPackage('libpng');
-    {$IF defined(ALLPACKAGES)}
-    Directory:='extra/libpng';
-    {$ELSEIF defined(EXTRAPACKAGES)}
-    Directory:='libpng';
-    {$ENDIF}
-    OS:=[linux,netbsd,freebsd,openbsd,os2,emx,darwin];
-    Dependencies.Add('zlib');
-    T:=Targets.AddUnit('png');
-    EndPackage;

+ 0 - 17
packages/extra/libpng/fpmake.pp

@@ -1,17 +0,0 @@
-{$mode objfpc}{$H+}
-program fpmake;
-
-uses fpmkunit;
-
-Var
-  T : TTarget;
-
-begin
-  With Installer do 
-    begin
-    { Base packages }
-    {$i fpmake.inc}
-    Run;
-    end;
-end.
-

+ 0 - 642
packages/extra/libpng/png.pp

@@ -1,642 +0,0 @@
-{$ifndef NO_SMART_LINK}
-{$smartlink on}
-{$endif}
-unit png;
-
-interface
-
-{ Automatically converted by H2Pas 0.99.15 from png.h }
-{ The following command line parameters were used:
-    png.h
-}
-
-{$PACKRECORDS C}
-
-uses
- zlib;
-
-Const
-{$ifdef windows}
-  LibPng = 'libpng13'; // Library name
-  { matching lib version for libpng13.dll, needed for initialization }
-  PNG_LIBPNG_VER_STRING='1.2.12';
-{$else windows}
-  LibPng = 'png'; // Library name
-  { matching lib version for libpng, needed for initialization }
-  PNG_LIBPNG_VER_STRING='1.2.12';
-{$endif windows}
-
-type
-   size_t = longint;
-   time_t = longint;
-   int = longint;
-   z_stream = TZStream;
-   voidp = pointer;
-
-   png_uint_32 = dword;
-   png_int_32 = longint;
-   png_uint_16 = word;
-   png_int_16 = smallint;
-   png_byte = byte;
-   ppng_uint_32 = ^png_uint_32;
-   ppng_int_32 = ^png_int_32;
-   ppng_uint_16 = ^png_uint_16;
-   ppng_int_16 = ^png_int_16;
-   ppng_byte = ^png_byte;
-   pppng_uint_32 = ^ppng_uint_32;
-   pppng_int_32 = ^ppng_int_32;
-   pppng_uint_16 = ^ppng_uint_16;
-   pppng_int_16 = ^ppng_int_16;
-   pppng_byte = ^ppng_byte;
-   png_size_t = size_t;
-   png_fixed_point = png_int_32;
-   ppng_fixed_point = ^png_fixed_point;
-   pppng_fixed_point = ^ppng_fixed_point;
-   png_voidp = pointer;
-   png_bytep = Ppng_byte;
-   ppng_bytep = ^png_bytep;
-   png_uint_32p = Ppng_uint_32;
-   png_int_32p = Ppng_int_32;
-   png_uint_16p = Ppng_uint_16;
-   ppng_uint_16p = ^png_uint_16p;
-   png_int_16p = Ppng_int_16;
-(* Const before type ignored *)
-   png_const_charp = Pchar;
-   png_charp = Pchar;
-   ppng_charp = ^png_charp;
-   png_fixed_point_p = Ppng_fixed_point;
-   TFile = Pointer;
-   png_FILE_p = ^FILE;
-   png_doublep = Pdouble;
-   png_bytepp = PPpng_byte;
-   png_uint_32pp = PPpng_uint_32;
-   png_int_32pp = PPpng_int_32;
-   png_uint_16pp = PPpng_uint_16;
-   png_int_16pp = PPpng_int_16;
- (* Const before type ignored *)
-   png_const_charpp = PPchar;
-   png_charpp = PPchar;
-   ppng_charpp = ^png_charpp;
-   png_fixed_point_pp = PPpng_fixed_point;
-   PPDouble = ^PDouble;
-   png_doublepp = PPdouble;
-   PPPChar = ^PPCHar;
-   png_charppp = PPPchar;
-   Pcharf = Pchar;
-   PPcharf = ^Pcharf;
-   png_zcharp = Pcharf;
-   png_zcharpp = PPcharf;
-   png_zstreamp = Pzstream;
-
-
-var
-{$ifndef darwin}
-  png_libpng_ver    : array[0..11] of char;   cvar; external;
-  png_pass_start    : array[0..6] of longint; cvar; external;
-  png_pass_inc      : array[0..6] of longint; cvar; external;
-  png_pass_ystart   : array[0..6] of longint; cvar; external;
-  png_pass_yinc     : array[0..6] of longint; cvar; external;
-  png_pass_mask     : array[0..6] of longint; cvar; external;
-  png_pass_dsp_mask : array[0..6] of longint; cvar; external;
-{$else darwin}
-  png_libpng_ver    : array[0..11] of char;   external LibPng name 'png_libpng_ver';
-  png_pass_start    : array[0..6] of longint; external LibPng name 'png_pass_start';
-  png_pass_inc      : array[0..6] of longint; external LibPng name 'png_pass_inc';
-  png_pass_ystart   : array[0..6] of longint; external LibPng name 'png_pass_ystart';
-  png_pass_yinc     : array[0..6] of longint; external LibPng name 'png_pass_yinc';
-  png_pass_mask     : array[0..6] of longint; external LibPng name 'png_pass_mask';
-  png_pass_dsp_mask : array[0..6] of longint; external LibPng name 'png_pass_dsp_mask';
-{$endif darwin}
-
-Type
-  png_color = record
-       red : png_byte;
-       green : png_byte;
-       blue : png_byte;
-    end;
-  ppng_color = ^png_color;
-  pppng_color = ^ppng_color;
-
-  png_color_struct = png_color;
-  png_colorp = Ppng_color;
-  ppng_colorp = ^png_colorp;
-  png_colorpp = PPpng_color;
-  png_color_16 = record
-       index : png_byte;
-       red : png_uint_16;
-       green : png_uint_16;
-       blue : png_uint_16;
-       gray : png_uint_16;
-    end;
-  ppng_color_16 = ^png_color_16 ;
-  pppng_color_16 = ^ppng_color_16 ;
-  png_color_16_struct = png_color_16;
-  png_color_16p = Ppng_color_16;
-  ppng_color_16p = ^png_color_16p;
-  png_color_16pp = PPpng_color_16;
-  png_color_8 = record
-       red : png_byte;
-       green : png_byte;
-       blue : png_byte;
-       gray : png_byte;
-       alpha : png_byte;
-    end;
-  ppng_color_8 = ^png_color_8;
-  pppng_color_8 = ^ppng_color_8;
-  png_color_8_struct = png_color_8;
-  png_color_8p = Ppng_color_8;
-  ppng_color_8p = ^png_color_8p;
-  png_color_8pp = PPpng_color_8;
-  png_sPLT_entry = record
-       red : png_uint_16;
-       green : png_uint_16;
-       blue : png_uint_16;
-       alpha : png_uint_16;
-       frequency : png_uint_16;
-    end;
-  ppng_sPLT_entry = ^png_sPLT_entry;
-  pppng_sPLT_entry = ^ppng_sPLT_entry;
-  png_sPLT_entry_struct = png_sPLT_entry;
-  png_sPLT_entryp = Ppng_sPLT_entry;
-  png_sPLT_entrypp = PPpng_sPLT_entry;
-  png_sPLT_t = record
-       name : png_charp;
-       depth : png_byte;
-       entries : png_sPLT_entryp;
-       nentries : png_int_32;
-    end;
-  ppng_sPLT_t = ^png_sPLT_t;
-  pppng_sPLT_t = ^ppng_sPLT_t;
-  png_sPLT_struct = png_sPLT_t;
-  png_sPLT_tp = Ppng_sPLT_t;
-  png_sPLT_tpp = PPpng_sPLT_t;
-  png_text = record
-       compression : longint;
-       key : png_charp;
-       text : png_charp;
-       text_length : png_size_t;
-    end;
-  ppng_text = ^png_text;
-  pppng_text = ^ppng_text;
-
-  png_text_struct = png_text;
-  png_textp = Ppng_text;
-  ppng_textp = ^png_textp;
-  png_textpp = PPpng_text;
-  png_time = record
-       year : png_uint_16;
-       month : png_byte;
-       day : png_byte;
-       hour : png_byte;
-       minute : png_byte;
-       second : png_byte;
-    end;
-  ppng_time = ^png_time;
-  pppng_time = ^ppng_time;
-
-  png_time_struct = png_time;
-  png_timep = Ppng_time;
-  PPNG_TIMEP = ^PNG_TIMEP;
-  png_timepp = PPpng_time;
-  png_unknown_chunk = record
-       name : array[0..4] of png_byte;
-       data : Ppng_byte;
-       size : png_size_t;
-       location : png_byte;
-    end;
-  ppng_unknown_chunk = ^png_unknown_chunk;
-  pppng_unknown_chunk = ^ppng_unknown_chunk;
-
-  png_unknown_chunk_t = png_unknown_chunk;
-  png_unknown_chunkp = Ppng_unknown_chunk;
-  png_unknown_chunkpp = PPpng_unknown_chunk;
-  png_info = record
-       width : png_uint_32;
-       height : png_uint_32;
-       valid : png_uint_32;
-       rowbytes : png_uint_32;
-       palette : png_colorp;
-       num_palette : png_uint_16;
-       num_trans : png_uint_16;
-       bit_depth : png_byte;
-       color_type : png_byte;
-       compression_type : png_byte;
-       filter_type : png_byte;
-       interlace_type : png_byte;
-       channels : png_byte;
-       pixel_depth : png_byte;
-       spare_byte : png_byte;
-       signature : array[0..7] of png_byte;
-       gamma : double;
-       srgb_intent : png_byte;
-       num_text : longint;
-       max_text : longint;
-       text : png_textp;
-       mod_time : png_time;
-       sig_bit : png_color_8;
-       trans : png_bytep;
-       trans_values : png_color_16;
-       background : png_color_16;
-       x_offset : png_int_32;
-       y_offset : png_int_32;
-       offset_unit_type : png_byte;
-       x_pixels_per_unit : png_uint_32;
-       y_pixels_per_unit : png_uint_32;
-       phys_unit_type : png_byte;
-       hist : png_uint_16p;
-       x_white : double;
-       y_white : double;
-       x_red : double;
-       y_red : double;
-       x_green : double;
-       y_green : double;
-       x_blue : double;
-       y_blue : double;
-       pcal_purpose : png_charp;
-       pcal_X0 : png_int_32;
-       pcal_X1 : png_int_32;
-       pcal_units : png_charp;
-       pcal_params : png_charpp;
-       pcal_type : png_byte;
-       pcal_nparams : png_byte;
-       free_me : png_uint_32;
-       unknown_chunks : png_unknown_chunkp;
-       unknown_chunks_num : png_size_t;
-       iccp_name : png_charp;
-       iccp_profile : png_charp;
-       iccp_proflen : png_uint_32;
-       iccp_compression : png_byte;
-       splt_palettes : png_sPLT_tp;
-       splt_palettes_num : png_uint_32;
-       scal_unit : png_byte;
-       scal_pixel_width : double;
-       scal_pixel_height : double;
-       scal_s_width : png_charp;
-       scal_s_height : png_charp;
-       row_pointers : png_bytepp;
-       int_gamma : png_fixed_point;
-       int_x_white : png_fixed_point;
-       int_y_white : png_fixed_point;
-       int_x_red : png_fixed_point;
-       int_y_red : png_fixed_point;
-       int_x_green : png_fixed_point;
-       int_y_green : png_fixed_point;
-       int_x_blue : png_fixed_point;
-       int_y_blue : png_fixed_point;
-    end;
-  ppng_info = ^png_info;
-  pppng_info = ^ppng_info;
-
-  png_info_struct = png_info;
-  png_infop = Ppng_info;
-  png_infopp = PPpng_info;
-  png_row_info = record
-       width : png_uint_32;
-       rowbytes : png_uint_32;
-       color_type : png_byte;
-       bit_depth : png_byte;
-       channels : png_byte;
-       pixel_depth : png_byte;
-    end;
-  ppng_row_info = ^png_row_info;
-  pppng_row_info = ^ppng_row_info;
-
-  png_row_info_struct = png_row_info;
-  png_row_infop = Ppng_row_info;
-  png_row_infopp = PPpng_row_info;
-//  png_struct_def = png_struct;
-  png_structp = ^png_struct;
-
-
-
-png_error_ptr = Procedure(Arg1 : png_structp; Arg2 : png_const_charp);cdecl;
-png_rw_ptr = Procedure(Arg1 : png_structp; Arg2 : png_bytep; Arg3 : png_size_t);cdecl;
-png_flush_ptr = procedure (Arg1 : png_structp) ;cdecl;
-png_read_status_ptr = procedure (Arg1 : png_structp; Arg2 : png_uint_32; Arg3: int);cdecl;
-png_write_status_ptr = Procedure (Arg1 : png_structp; Arg2:png_uint_32;Arg3 : int) ;cdecl;
-png_progressive_info_ptr = Procedure (Arg1 : png_structp; Arg2 : png_infop) ;cdecl;
-png_progressive_end_ptr = Procedure (Arg1 : png_structp; Arg2 : png_infop) ;cdecl;
-png_progressive_row_ptr = Procedure (Arg1 : png_structp; Arg2 : png_bytep; Arg3 : png_uint_32; Arg4 : int) ;cdecl;
-png_user_transform_ptr = Procedure (Arg1 : png_structp; Arg2 : png_row_infop; Arg3 : png_bytep) ;cdecl;
-png_user_chunk_ptr = Function (Arg1 : png_structp; Arg2 : png_unknown_chunkp): longint;cdecl;
-png_unknown_chunk_ptr = Procedure (Arg1 : png_structp);cdecl;
-png_malloc_ptr = Function (Arg1 : png_structp; Arg2 : png_size_t) : png_voidp ;cdecl;
-png_free_ptr = Procedure (Arg1 : png_structp; Arg2 : png_voidp) ; cdecl;
-
-   png_struct_def = record
-        jmpbuf : jmp_buf;
-        error_fn : png_error_ptr;
-        warning_fn : png_error_ptr;
-        error_ptr : png_voidp;
-        write_data_fn : png_rw_ptr;
-        read_data_fn : png_rw_ptr;
-        io_ptr : png_voidp;
-        read_user_transform_fn : png_user_transform_ptr;
-        write_user_transform_fn : png_user_transform_ptr;
-        user_transform_ptr : png_voidp;
-        user_transform_depth : png_byte;
-        user_transform_channels : png_byte;
-        mode : png_uint_32;
-        flags : png_uint_32;
-        transformations : png_uint_32;
-        zstream : z_stream;
-        zbuf : png_bytep;
-        zbuf_size : png_size_t;
-        zlib_level : longint;
-        zlib_method : longint;
-        zlib_window_bits : longint;
-        zlib_mem_level : longint;
-        zlib_strategy : longint;
-        width : png_uint_32;
-        height : png_uint_32;
-        num_rows : png_uint_32;
-        usr_width : png_uint_32;
-        rowbytes : png_uint_32;
-        irowbytes : png_uint_32;
-        iwidth : png_uint_32;
-        row_number : png_uint_32;
-        prev_row : png_bytep;
-        row_buf : png_bytep;
-        sub_row : png_bytep;
-        up_row : png_bytep;
-        avg_row : png_bytep;
-        paeth_row : png_bytep;
-        row_info : png_row_info;
-        idat_size : png_uint_32;
-        crc : png_uint_32;
-        palette : png_colorp;
-        num_palette : png_uint_16;
-        num_trans : png_uint_16;
-        chunk_name : array[0..4] of png_byte;
-        compression : png_byte;
-        filter : png_byte;
-        interlaced : png_byte;
-        pass : png_byte;
-        do_filter : png_byte;
-        color_type : png_byte;
-        bit_depth : png_byte;
-        usr_bit_depth : png_byte;
-        pixel_depth : png_byte;
-        channels : png_byte;
-        usr_channels : png_byte;
-        sig_bytes : png_byte;
-        filler : png_uint_16;
-        background_gamma_type : png_byte;
-        background_gamma : double;
-        background : png_color_16;
-        background_1 : png_color_16;
-        output_flush_fn : png_flush_ptr;
-        flush_dist : png_uint_32;
-        flush_rows : png_uint_32;
-        gamma_shift : longint;
-        gamma : double;
-        screen_gamma : double;
-        gamma_table : png_bytep;
-        gamma_from_1 : png_bytep;
-        gamma_to_1 : png_bytep;
-        gamma_16_table : png_uint_16pp;
-        gamma_16_from_1 : png_uint_16pp;
-        gamma_16_to_1 : png_uint_16pp;
-        sig_bit : png_color_8;
-        shift : png_color_8;
-        trans : png_bytep;
-        trans_values : png_color_16;
-        read_row_fn : png_read_status_ptr;
-        write_row_fn : png_write_status_ptr;
-        info_fn : png_progressive_info_ptr;
-        row_fn : png_progressive_row_ptr;
-        end_fn : png_progressive_end_ptr;
-        save_buffer_ptr : png_bytep;
-        save_buffer : png_bytep;
-        current_buffer_ptr : png_bytep;
-        current_buffer : png_bytep;
-        push_length : png_uint_32;
-        skip_length : png_uint_32;
-        save_buffer_size : png_size_t;
-        save_buffer_max : png_size_t;
-        buffer_size : png_size_t;
-        current_buffer_size : png_size_t;
-        process_mode : longint;
-        cur_palette : longint;
-        current_text_size : png_size_t;
-        current_text_left : png_size_t;
-        current_text : png_charp;
-        current_text_ptr : png_charp;
-        palette_lookup : png_bytep;
-        dither_index : png_bytep;
-        hist : png_uint_16p;
-        heuristic_method : png_byte;
-        num_prev_filters : png_byte;
-        prev_filters : png_bytep;
-        filter_weights : png_uint_16p;
-        inv_filter_weights : png_uint_16p;
-        filter_costs : png_uint_16p;
-        inv_filter_costs : png_uint_16p;
-        time_buffer : png_charp;
-        free_me : png_uint_32;
-        user_chunk_ptr : png_voidp;
-        read_user_chunk_fn : png_user_chunk_ptr;
-        num_chunk_list : longint;
-        chunk_list : png_bytep;
-        rgb_to_gray_status : png_byte;
-        rgb_to_gray_red_coeff : png_uint_16;
-        rgb_to_gray_green_coeff : png_uint_16;
-        rgb_to_gray_blue_coeff : png_uint_16;
-        empty_plte_permitted : png_byte;
-        int_gamma : png_fixed_point;
-     end;
-   ppng_struct_def = ^png_struct_def;
-   pppng_struct_def = ^ppng_struct_def;
-   png_struct = png_struct_def;
-   ppng_struct = ^png_struct;
-   pppng_struct = ^ppng_struct;
-
-   version_1_0_8 = png_structp;
-   png_structpp = PPpng_struct;
-
-function png_access_version_number:png_uint_32;cdecl; external LibPng;
-procedure png_set_sig_bytes(png_ptr:png_structp; num_bytes:longint);cdecl; external LibPng;
-function png_sig_cmp(sig:png_bytep; start:png_size_t; num_to_check:png_size_t):longint;cdecl; external LibPng;
-function png_check_sig(sig:png_bytep; num:longint):longint;cdecl; external LibPng;
-function png_create_read_struct(user_png_ver:png_const_charp; error_ptr:png_voidp; error_fn:png_error_ptr; warn_fn:png_error_ptr):png_structp;cdecl; external LibPng;
-function png_create_write_struct(user_png_ver:png_const_charp; error_ptr:png_voidp; error_fn:png_error_ptr; warn_fn:png_error_ptr):png_structp;cdecl; external LibPng;
-function png_get_compression_buffer_size(png_ptr:png_structp):png_uint_32;cdecl; external LibPng;
-procedure png_set_compression_buffer_size(png_ptr:png_structp; size:png_uint_32);cdecl; external LibPng;
-function png_reset_zstream(png_ptr:png_structp):longint;cdecl; external LibPng;
-procedure png_write_chunk(png_ptr:png_structp; chunk_name:png_bytep; data:png_bytep; length:png_size_t);cdecl; external LibPng;
-procedure png_write_chunk_start(png_ptr:png_structp; chunk_name:png_bytep; length:png_uint_32);cdecl; external LibPng;
-procedure png_write_chunk_data(png_ptr:png_structp; data:png_bytep; length:png_size_t);cdecl; external LibPng;
-procedure png_write_chunk_end(png_ptr:png_structp);cdecl; external LibPng;
-function png_create_info_struct(png_ptr:png_structp):png_infop;cdecl; external LibPng;
-procedure png_info_init(info_ptr:png_infop);cdecl; external LibPng;
-procedure png_write_info_before_PLTE(png_ptr:png_structp; info_ptr:png_infop);cdecl; external LibPng;
-procedure png_write_info(png_ptr:png_structp; info_ptr:png_infop);cdecl; external LibPng;
-procedure png_read_info(png_ptr:png_structp; info_ptr:png_infop);cdecl; external LibPng;
-function png_convert_to_rfc1123(png_ptr:png_structp; ptime:png_timep):png_charp;cdecl; external LibPng;
-procedure png_convert_from_struct_tm(ptime:png_timep; ttime:Pointer);cdecl; external LibPng;
-procedure png_convert_from_time_t(ptime:png_timep; ttime:time_t);cdecl; external LibPng;
-procedure png_set_expand(png_ptr:png_structp);cdecl; external LibPng;
-procedure png_set_gray_1_2_4_to_8(png_ptr:png_structp);cdecl; external LibPng;
-procedure png_set_palette_to_rgb(png_ptr:png_structp);cdecl; external LibPng;
-procedure png_set_tRNS_to_alpha(png_ptr:png_structp);cdecl; external LibPng;
-procedure png_set_bgr(png_ptr:png_structp);cdecl; external LibPng;
-procedure png_set_gray_to_rgb(png_ptr:png_structp);cdecl; external LibPng;
-procedure png_set_rgb_to_gray(png_ptr:png_structp; error_action:longint; red:double; green:double);cdecl; external LibPng;
-procedure png_set_rgb_to_gray_fixed(png_ptr:png_structp; error_action:longint; red:png_fixed_point; green:png_fixed_point);cdecl; external LibPng;
-function png_get_rgb_to_gray_status(png_ptr:png_structp):png_byte;cdecl; external LibPng;
-procedure png_build_grayscale_palette(bit_depth:longint; palette:png_colorp);cdecl; external LibPng;
-procedure png_set_strip_alpha(png_ptr:png_structp);cdecl; external LibPng;
-procedure png_set_swap_alpha(png_ptr:png_structp);cdecl; external LibPng;
-procedure png_set_invert_alpha(png_ptr:png_structp);cdecl; external LibPng;
-procedure png_set_filler(png_ptr:png_structp; filler:png_uint_32; flags:longint);cdecl; external LibPng;
-procedure png_set_swap(png_ptr:png_structp);cdecl; external LibPng;
-procedure png_set_packing(png_ptr:png_structp);cdecl; external LibPng;
-procedure png_set_packswap(png_ptr:png_structp);cdecl; external LibPng;
-procedure png_set_shift(png_ptr:png_structp; true_bits:png_color_8p);cdecl; external LibPng;
-function png_set_interlace_handling(png_ptr:png_structp):longint;cdecl; external LibPng;
-procedure png_set_invert_mono(png_ptr:png_structp);cdecl; external LibPng;
-procedure png_set_background(png_ptr:png_structp; background_color:png_color_16p; background_gamma_code:longint; need_expand:longint; background_gamma:double);cdecl; external LibPng;
-procedure png_set_strip_16(png_ptr:png_structp);cdecl; external LibPng;
-procedure png_set_dither(png_ptr:png_structp; palette:png_colorp; num_palette:longint; maximum_colors:longint; histogram:png_uint_16p;
-            full_dither:longint);cdecl; external LibPng;
-procedure png_set_gamma(png_ptr:png_structp; screen_gamma:double; default_file_gamma:double);cdecl; external LibPng;
-procedure png_permit_empty_plte(png_ptr:png_structp; empty_plte_permitted:longint);cdecl; external LibPng;
-procedure png_set_flush(png_ptr:png_structp; nrows:longint);cdecl; external LibPng;
-procedure png_write_flush(png_ptr:png_structp);cdecl; external LibPng;
-procedure png_start_read_image(png_ptr:png_structp);cdecl; external LibPng;
-procedure png_read_update_info(png_ptr:png_structp; info_ptr:png_infop);cdecl; external LibPng;
-procedure png_read_rows(png_ptr:png_structp; row:png_bytepp; display_row:png_bytepp; num_rows:png_uint_32);cdecl; external LibPng;
-procedure png_read_row(png_ptr:png_structp; row:png_bytep; display_row:png_bytep);cdecl; external LibPng;
-procedure png_read_image(png_ptr:png_structp; image:png_bytepp);cdecl; external LibPng;
-procedure png_write_row(png_ptr:png_structp; row:png_bytep);cdecl; external LibPng;
-procedure png_write_rows(png_ptr:png_structp; row:png_bytepp; num_rows:png_uint_32);cdecl; external LibPng;
-procedure png_write_image(png_ptr:png_structp; image:png_bytepp);cdecl; external LibPng;
-procedure png_write_end(png_ptr:png_structp; info_ptr:png_infop);cdecl; external LibPng;
-procedure png_read_end(png_ptr:png_structp; info_ptr:png_infop);cdecl; external LibPng;
-procedure png_destroy_info_struct(png_ptr:png_structp; info_ptr_ptr:png_infopp);cdecl; external LibPng;
-procedure png_destroy_read_struct(png_ptr_ptr:png_structpp; info_ptr_ptr:png_infopp; end_info_ptr_ptr:png_infopp);cdecl; external LibPng;
-procedure png_read_destroy(png_ptr:png_structp; info_ptr:png_infop; end_info_ptr:png_infop);cdecl; external LibPng;
-procedure png_destroy_write_struct(png_ptr_ptr:png_structpp; info_ptr_ptr:png_infopp);cdecl; external LibPng;
-procedure png_write_destroy_info(info_ptr:png_infop);cdecl; external LibPng;
-procedure png_write_destroy(png_ptr:png_structp);cdecl; external LibPng;
-procedure png_set_crc_action(png_ptr:png_structp; crit_action:longint; ancil_action:longint);cdecl; external LibPng;
-procedure png_set_filter(png_ptr:png_structp; method:longint; filters:longint);cdecl; external LibPng;
-procedure png_set_filter_heuristics(png_ptr:png_structp; heuristic_method:longint; num_weights:longint; filter_weights:png_doublep; filter_costs:png_doublep);cdecl; external LibPng;
-procedure png_set_compression_level(png_ptr:png_structp; level:longint);cdecl; external LibPng;
-procedure png_set_compression_mem_level(png_ptr:png_structp; mem_level:longint);cdecl; external LibPng;
-procedure png_set_compression_strategy(png_ptr:png_structp; strategy:longint);cdecl; external LibPng;
-procedure png_set_compression_window_bits(png_ptr:png_structp; window_bits:longint);cdecl; external LibPng;
-procedure png_set_compression_method(png_ptr:png_structp; method:longint);cdecl; external LibPng;
-procedure png_init_io(png_ptr:png_structp; fp:png_FILE_p);cdecl; external LibPng;
-procedure png_set_error_fn(png_ptr:png_structp; error_ptr:png_voidp; error_fn:png_error_ptr; warning_fn:png_error_ptr);cdecl; external LibPng;
-function png_get_error_ptr(png_ptr:png_structp):png_voidp;cdecl; external LibPng;
-procedure png_set_write_fn(png_ptr:png_structp; io_ptr:png_voidp; write_data_fn:png_rw_ptr; output_flush_fn:png_flush_ptr);cdecl; external LibPng;
-procedure png_set_read_fn(png_ptr:png_structp; io_ptr:png_voidp; read_data_fn:png_rw_ptr);cdecl; external LibPng;
-function png_get_io_ptr(png_ptr:png_structp):png_voidp;cdecl; external LibPng;
-procedure png_set_read_status_fn(png_ptr:png_structp; read_row_fn:png_read_status_ptr);cdecl; external LibPng;
-procedure png_set_write_status_fn(png_ptr:png_structp; write_row_fn:png_write_status_ptr);cdecl; external LibPng;
-procedure png_set_read_user_transform_fn(png_ptr:png_structp; read_user_transform_fn:png_user_transform_ptr);cdecl; external LibPng;
-procedure png_set_write_user_transform_fn(png_ptr:png_structp; write_user_transform_fn:png_user_transform_ptr);cdecl; external LibPng;
-procedure png_set_user_transform_info(png_ptr:png_structp; user_transform_ptr:png_voidp; user_transform_depth:longint; user_transform_channels:longint);cdecl; external LibPng;
-function png_get_user_transform_ptr(png_ptr:png_structp):png_voidp;cdecl; external LibPng;
-procedure png_set_read_user_chunk_fn(png_ptr:png_structp; user_chunk_ptr:png_voidp; read_user_chunk_fn:png_user_chunk_ptr);cdecl; external LibPng;
-function png_get_user_chunk_ptr(png_ptr:png_structp):png_voidp;cdecl; external LibPng;
-procedure png_set_progressive_read_fn(png_ptr:png_structp; progressive_ptr:png_voidp; info_fn:png_progressive_info_ptr; row_fn:png_progressive_row_ptr; end_fn:png_progressive_end_ptr);cdecl; external LibPng;
-function png_get_progressive_ptr(png_ptr:png_structp):png_voidp;cdecl; external LibPng;
-procedure png_process_data(png_ptr:png_structp; info_ptr:png_infop; buffer:png_bytep; buffer_size:png_size_t);cdecl; external LibPng;
-procedure png_progressive_combine_row(png_ptr:png_structp; old_row:png_bytep; new_row:png_bytep);cdecl; external LibPng;
-function png_malloc(png_ptr:png_structp; size:png_uint_32):png_voidp;cdecl; external LibPng;
-procedure png_free(png_ptr:png_structp; ptr:png_voidp);cdecl; external LibPng;
-procedure png_free_data(png_ptr:png_structp; info_ptr:png_infop; free_me:png_uint_32; num:longint);cdecl; external LibPng;
-procedure png_data_freer(png_ptr:png_structp; info_ptr:png_infop; freer:longint; mask:png_uint_32);cdecl; external LibPng;
-function png_memcpy_check(png_ptr:png_structp; s1:png_voidp; s2:png_voidp; size:png_uint_32):png_voidp;cdecl; external LibPng;
-function png_memset_check(png_ptr:png_structp; s1:png_voidp; value:longint; size:png_uint_32):png_voidp;cdecl; external LibPng;
-procedure png_error(png_ptr:png_structp; error:png_const_charp);cdecl; external LibPng;
-procedure png_chunk_error(png_ptr:png_structp; error:png_const_charp);cdecl; external LibPng;
-procedure png_warning(png_ptr:png_structp; message:png_const_charp);cdecl; external LibPng;
-procedure png_chunk_warning(png_ptr:png_structp; message:png_const_charp);cdecl; external LibPng;
-function png_get_valid(png_ptr:png_structp; info_ptr:png_infop; flag:png_uint_32):png_uint_32;cdecl; external LibPng;
-function png_get_rowbytes(png_ptr:png_structp; info_ptr:png_infop):png_uint_32;cdecl; external LibPng;
-function png_get_rows(png_ptr:png_structp; info_ptr:png_infop):png_bytepp;cdecl; external LibPng;
-procedure png_set_rows(png_ptr:png_structp; info_ptr:png_infop; row_pointers:png_bytepp);cdecl; external LibPng;
-function png_get_channels(png_ptr:png_structp; info_ptr:png_infop):png_byte;cdecl; external LibPng;
-function png_get_image_width(png_ptr:png_structp; info_ptr:png_infop):png_uint_32;cdecl; external LibPng;
-function png_get_image_height(png_ptr:png_structp; info_ptr:png_infop):png_uint_32;cdecl; external LibPng;
-function png_get_bit_depth(png_ptr:png_structp; info_ptr:png_infop):png_byte;cdecl; external LibPng;
-function png_get_color_type(png_ptr:png_structp; info_ptr:png_infop):png_byte;cdecl; external LibPng;
-function png_get_filter_type(png_ptr:png_structp; info_ptr:png_infop):png_byte;cdecl; external LibPng;
-function png_get_interlace_type(png_ptr:png_structp; info_ptr:png_infop):png_byte;cdecl; external LibPng;
-function png_get_compression_type(png_ptr:png_structp; info_ptr:png_infop):png_byte;cdecl; external LibPng;
-function png_get_pixels_per_meter(png_ptr:png_structp; info_ptr:png_infop):png_uint_32;cdecl; external LibPng;
-function png_get_x_pixels_per_meter(png_ptr:png_structp; info_ptr:png_infop):png_uint_32;cdecl; external LibPng;
-function png_get_y_pixels_per_meter(png_ptr:png_structp; info_ptr:png_infop):png_uint_32;cdecl; external LibPng;
-function png_get_pixel_aspect_ratio(png_ptr:png_structp; info_ptr:png_infop):double;cdecl; external LibPng;
-function png_get_x_offset_pixels(png_ptr:png_structp; info_ptr:png_infop):png_int_32;cdecl; external LibPng;
-function png_get_y_offset_pixels(png_ptr:png_structp; info_ptr:png_infop):png_int_32;cdecl; external LibPng;
-function png_get_x_offset_microns(png_ptr:png_structp; info_ptr:png_infop):png_int_32;cdecl; external LibPng;
-function png_get_y_offset_microns(png_ptr:png_structp; info_ptr:png_infop):png_int_32;cdecl; external LibPng;
-function png_get_signature(png_ptr:png_structp; info_ptr:png_infop):png_bytep;cdecl; external LibPng;
-function png_get_bKGD(png_ptr:png_structp; info_ptr:png_infop; background:Ppng_color_16p):png_uint_32;cdecl; external LibPng;
-procedure png_set_bKGD(png_ptr:png_structp; info_ptr:png_infop; background:png_color_16p);cdecl; external LibPng;
-function png_get_cHRM(png_ptr:png_structp; info_ptr:png_infop; white_x:Pdouble; white_y:Pdouble; red_x:Pdouble;
-           red_y:Pdouble; green_x:Pdouble; green_y:Pdouble; blue_x:Pdouble; blue_y:Pdouble):png_uint_32;cdecl; external LibPng;
-function png_get_cHRM_fixed(png_ptr:png_structp; info_ptr:png_infop; int_white_x:Ppng_fixed_point; int_white_y:Ppng_fixed_point; int_red_x:Ppng_fixed_point;
-           int_red_y:Ppng_fixed_point; int_green_x:Ppng_fixed_point; int_green_y:Ppng_fixed_point; int_blue_x:Ppng_fixed_point; int_blue_y:Ppng_fixed_point):png_uint_32;cdecl; external LibPng;
-procedure png_set_cHRM(png_ptr:png_structp; info_ptr:png_infop; white_x:double; white_y:double; red_x:double;
-            red_y:double; green_x:double; green_y:double; blue_x:double; blue_y:double);cdecl; external LibPng;
-procedure png_set_cHRM_fixed(png_ptr:png_structp; info_ptr:png_infop; int_white_x:png_fixed_point; int_white_y:png_fixed_point; int_red_x:png_fixed_point;
-            int_red_y:png_fixed_point; int_green_x:png_fixed_point; int_green_y:png_fixed_point; int_blue_x:png_fixed_point; int_blue_y:png_fixed_point);cdecl; external LibPng;
-function png_get_gAMA(png_ptr:png_structp; info_ptr:png_infop; file_gamma:Pdouble):png_uint_32;cdecl; external LibPng;
-function png_get_gAMA_fixed(png_ptr:png_structp; info_ptr:png_infop; int_file_gamma:Ppng_fixed_point):png_uint_32;cdecl; external LibPng;
-procedure png_set_gAMA(png_ptr:png_structp; info_ptr:png_infop; file_gamma:double);cdecl; external LibPng;
-procedure png_set_gAMA_fixed(png_ptr:png_structp; info_ptr:png_infop; int_file_gamma:png_fixed_point);cdecl; external LibPng;
-function png_get_hIST(png_ptr:png_structp; info_ptr:png_infop; hist:Ppng_uint_16p):png_uint_32;cdecl; external LibPng;
-procedure png_set_hIST(png_ptr:png_structp; info_ptr:png_infop; hist:png_uint_16p);cdecl; external LibPng;
-function png_get_IHDR(png_ptr:png_structp; info_ptr:png_infop; width:Ppng_uint_32; height:Ppng_uint_32; bit_depth:Plongint;
-           color_type:Plongint; interlace_type:Plongint; compression_type:Plongint; filter_type:Plongint):png_uint_32;cdecl; external LibPng;
-procedure png_set_IHDR(png_ptr:png_structp; info_ptr:png_infop; width:png_uint_32; height:png_uint_32; bit_depth:longint;
-            color_type:longint; interlace_type:longint; compression_type:longint; filter_type:longint);cdecl; external LibPng;
-function png_get_oFFs(png_ptr:png_structp; info_ptr:png_infop; offset_x:Ppng_int_32; offset_y:Ppng_int_32; unit_type:Plongint):png_uint_32;cdecl; external LibPng;
-procedure png_set_oFFs(png_ptr:png_structp; info_ptr:png_infop; offset_x:png_int_32; offset_y:png_int_32; unit_type:longint);cdecl; external LibPng;
-function png_get_pCAL(png_ptr:png_structp; info_ptr:png_infop; purpose:Ppng_charp; X0:Ppng_int_32; X1:Ppng_int_32;
-           atype:Plongint; nparams:Plongint; units:Ppng_charp; params:Ppng_charpp):png_uint_32;cdecl; external LibPng;
-procedure png_set_pCAL(png_ptr:png_structp; info_ptr:png_infop; purpose:png_charp; X0:png_int_32; X1:png_int_32;
-            atype:longint; nparams:longint; units:png_charp; params:png_charpp);cdecl; external LibPng;
-function png_get_pHYs(png_ptr:png_structp; info_ptr:png_infop; res_x:Ppng_uint_32; res_y:Ppng_uint_32; unit_type:Plongint):png_uint_32;cdecl; external LibPng;
-procedure png_set_pHYs(png_ptr:png_structp; info_ptr:png_infop; res_x:png_uint_32; res_y:png_uint_32; unit_type:longint);cdecl; external LibPng;
-function png_get_PLTE(png_ptr:png_structp; info_ptr:png_infop; palette:Ppng_colorp; num_palette:Plongint):png_uint_32;cdecl; external LibPng;
-procedure png_set_PLTE(png_ptr:png_structp; info_ptr:png_infop; palette:png_colorp; num_palette:longint);cdecl; external LibPng;
-function png_get_sBIT(png_ptr:png_structp; info_ptr:png_infop; sig_bit:Ppng_color_8p):png_uint_32;cdecl; external LibPng;
-procedure png_set_sBIT(png_ptr:png_structp; info_ptr:png_infop; sig_bit:png_color_8p);cdecl; external LibPng;
-function png_get_sRGB(png_ptr:png_structp; info_ptr:png_infop; intent:Plongint):png_uint_32;cdecl; external LibPng;
-procedure png_set_sRGB(png_ptr:png_structp; info_ptr:png_infop; intent:longint);cdecl; external LibPng;
-procedure png_set_sRGB_gAMA_and_cHRM(png_ptr:png_structp; info_ptr:png_infop; intent:longint);cdecl; external LibPng;
-function png_get_iCCP(png_ptr:png_structp; info_ptr:png_infop; name:png_charpp; compression_type:Plongint; profile:png_charpp;
-           proflen:Ppng_uint_32):png_uint_32;cdecl; external LibPng;
-procedure png_set_iCCP(png_ptr:png_structp; info_ptr:png_infop; name:png_charp; compression_type:longint; profile:png_charp;
-            proflen:png_uint_32);cdecl; external LibPng;
-function png_get_sPLT(png_ptr:png_structp; info_ptr:png_infop; entries:png_sPLT_tpp):png_uint_32;cdecl; external LibPng;
-procedure png_set_sPLT(png_ptr:png_structp; info_ptr:png_infop; entries:png_sPLT_tp; nentries:longint);cdecl; external LibPng;
-function png_get_text(png_ptr:png_structp; info_ptr:png_infop; text_ptr:Ppng_textp; num_text:Plongint):png_uint_32;cdecl; external LibPng;
-procedure png_set_text(png_ptr:png_structp; info_ptr:png_infop; text_ptr:png_textp; num_text:longint);cdecl; external LibPng;
-function png_get_tIME(png_ptr:png_structp; info_ptr:png_infop; mod_time:Ppng_timep):png_uint_32;cdecl; external LibPng;
-procedure png_set_tIME(png_ptr:png_structp; info_ptr:png_infop; mod_time:png_timep);cdecl; external LibPng;
-function png_get_tRNS(png_ptr:png_structp; info_ptr:png_infop; trans:Ppng_bytep; num_trans:Plongint; trans_values:Ppng_color_16p):png_uint_32;cdecl; external LibPng;
-procedure png_set_tRNS(png_ptr:png_structp; info_ptr:png_infop; trans:png_bytep; num_trans:longint; trans_values:png_color_16p);cdecl; external LibPng;
-function png_get_sCAL(png_ptr:png_structp; info_ptr:png_infop; aunit:Plongint; width:Pdouble; height:Pdouble):png_uint_32;cdecl; external LibPng;
-procedure png_set_sCAL(png_ptr:png_structp; info_ptr:png_infop; aunit:longint; width:double; height:double);cdecl; external LibPng;
-procedure png_set_sCAL_s(png_ptr:png_structp; info_ptr:png_infop; aunit:longint; swidth:png_charp; sheight:png_charp);cdecl; external LibPng;
-procedure png_set_keep_unknown_chunks(png_ptr:png_structp; keep:longint; chunk_list:png_bytep; num_chunks:longint);cdecl; external LibPng;
-procedure png_set_unknown_chunks(png_ptr:png_structp; info_ptr:png_infop; unknowns:png_unknown_chunkp; num_unknowns:longint);cdecl; external LibPng;
-procedure png_set_unknown_chunk_location(png_ptr:png_structp; info_ptr:png_infop; chunk:longint; location:longint);cdecl; external LibPng;
-function png_get_unknown_chunks(png_ptr:png_structp; info_ptr:png_infop; entries:png_unknown_chunkpp):png_uint_32;cdecl; external LibPng;
-procedure png_set_invalid(png_ptr:png_structp; info_ptr:png_infop; mask:longint);cdecl; external LibPng;
-procedure png_read_png(png_ptr:png_structp; info_ptr:png_infop; transforms:longint; params:voidp);cdecl; external LibPng;
-procedure png_write_png(png_ptr:png_structp; info_ptr:png_infop; transforms:longint; params:voidp);cdecl; external LibPng;
-function png_get_header_ver(png_ptr:png_structp):png_charp;cdecl; external LibPng;
-function png_get_header_version(png_ptr:png_structp):png_charp;cdecl; external LibPng;
-function png_get_libpng_ver(png_ptr:png_structp):png_charp;cdecl; external LibPng;
-
-implementation
-
-end.