Package: lazarus-lcl-win64
Version: 2.0.12
Revision: 1
License: GPL/LGPL

Depends: <<
  lazarus-aqua (>= 2.0) | lazarus-cocoa (>= 2.0) | lazarus-gtk2 (>= 2.0) | 
  lazarus-qt4 (>= 2.0) | lazarus-qt5 (>= 2.0),
  fpc-cross-x86-64-win64 (>= 3.2.2)
<<

Recommends: fpc-doc, lazarus-doc

Source: mirror:sourceforge:lazarus/lazarus-%v.tar.gz
Source-Checksum: SHA256(ba6cef7f823a2d28166229982efc926039d42313c40e22fe0c6776c13d0015b2)

SourceDirectory: lazarus

UseMaxBuildJobs: false

CompileScript: <<
#!/bin/sh -ev

# Yosemite fix
  if [ "$(uname -r | cut -d. -f1)" -ge 14 ]; then export MACOSX_DEPLOYMENT_TARGET=10.9 ; fi

  debug_options="-gl"

# ** Start compiling the lazarus component libraries

  AllUnits="registration lazutils codetools lcl basecomponents bigidecomponents"

  make $AllUnits LCL_PLATFORM=win32 OPT="$debug_options" OS_TARGET=win64 PP=ppcx64 CPU_TARGET=x86_64
<<

InstallScript: <<
#!/bin/sh -ev
# ** install the lcl and other libraries/units **

  for path in $(find . -name x86_64-win64 | cut -f 2- -d '/' ) ; do
    install -d  $(echo %i/share/lazarus/$(dirname $path))
    mv -v $path $(echo %i/share/lazarus/$(dirname $path))
  done

  chmod -R a+rw %i/share/lazarus

<<

Description: The win64 version of the lcl

DescUsage: This is the win64 version of the lazarus component library

DescPort: <<
  Notes regarding the InstallScript:
  - find gives the list of directories
  - cut removes the './' from the beginning of the paths
  - grep removes the directories, which do not contain unit files 
<<

Homepage: https://wiki.freepascal.org/Main_Page

Maintainer: Karl-Michael Schindler <karl-michael.schindler@web.de>