Target Darwin
This article applies to macOS only.
See also: Multiplatform Programming Guide
This article applies to iOS only.
See also: Multiplatform Programming Guide
│ English (en) │
Introduction
Darwin is the target for macOS and iOS, both PowerPC, ARM, i386 and X86_64. Programs may also be run on a machine with only Darwin installed.
Installation
See Installing Lazarus on macOS.
Usage
1) Lazarus IDE
Lazarus is a Delphi-style RAD environment
A free IDE in the classic Mac style
3) Any Editor (AlphaX, BBedit, ...) and command line (fpc your_pascal_program.pas)
Universal binaries
Normally for each processor - operating system combination there is one executable, but in Mac OS X you can combine a PowerPC and a x86 binary into a so called "Universal Binary". To do this the PowerPC and i386 executables have to be compiled separately and then combined using the lipo command line tool.
The Free Pascal installer for x86 already installs a PowerPC cross-compiler so you only need to use ppcppc instead of fpc to build your project to have the PowerPC binary. If have a PowerPC computer, then the simplest solution is to build the x86 binary in a different computer with x86 architecture, or use an emulator to run Mac OS X running in x86 architecture.
More
See the Wiki's Mac Portal.