summaryrefslogtreecommitdiff
path: root/homebrew/fpc/.beer
diff options
context:
space:
mode:
authorMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-20 20:49:46 -0500
committerMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-23 20:18:47 -0500
commit12335518ab39608d58370c85ff9f5384ad2aa5f7 (patch)
tree352d81f2a2de3f1252af732080ec0fde38c13b4d /homebrew/fpc/.beer
parenta2b26ad12d4fa12f0273645caf4be6d0b8b71e7c (diff)
Ported in the homebrew-marauder for a hacky update/import system.
TODO: Maybe add a license & fix up messy code.
Diffstat (limited to 'homebrew/fpc/.beer')
-rw-r--r--homebrew/fpc/.beer51
1 files changed, 51 insertions, 0 deletions
diff --git a/homebrew/fpc/.beer b/homebrew/fpc/.beer
new file mode 100644
index 000000000..bc0ff403d
--- /dev/null
+++ b/homebrew/fpc/.beer
@@ -0,0 +1,51 @@
+{
+ "name": "Fpc",
+ "description": "Free Pascal: multi-architecture Pascal compiler",
+ "url": "https://downloads.sourceforge.net/project/freepascal/Source/3.0.4/fpc-3.0.4.source.tar.gz",
+ "mirror": null,
+ "homepage": "https://www.freepascal.org/",
+ "depends": [],
+ "resource": [
+ {
+ "name": "bootstrap",
+ "url": "https://downloads.sourceforge.net/project/freepascal/Bootstrap/3.0.0/x86_64-macosx-10.7-ppcx64.tar.bz2"
+ }
+ ],
+ "conflicts": [],
+ "patches": [
+ {
+ "url": null,
+ "data": [
+ "diff --git a/compiler/systems/t_bsd.pas b/compiler/systems/t_bsd.pas\n",
+ "index b35a78ae..61d0817d 100644\n",
+ "--- a/compiler/systems/t_bsd.pas\n",
+ "+++ b/compiler/systems/t_bsd.pas\n",
+ "@@ -310,7 +310,10 @@ begin\n",
+ " if startupfile<>'' then\n",
+ " begin\n",
+ " if not librarysearchpath.FindFile(startupfile,false,result) then\n",
+ "- result:='/usr/lib/'+startupfile\n",
+ "+ if sysutils.fileexists('/usr/lib/'+startupfile) then\n",
+ "+ result:='/usr/lib/'+startupfile\n",
+ "+ else if sysutils.fileexists('/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/') then\n",
+ "+ result:='/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/'+startupfile\n",
+ " end\n",
+ " else\n",
+ " result:='';\n"
+ ]
+ }
+ ],
+ "install": [
+ "fpc_bootstrap = buildpath/\"bootstrap\"",
+ "resource(\"bootstrap\").stage { fpc_bootstrap.install Dir[\"*\"] }",
+ "fpc_compiler = fpc_bootstrap/\"ppcx64\"",
+ "args = (MacOS.version >= :mojave) ? ['OPT=\"-XR/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk\"'] : []",
+ "system \"make\", \"build\", \"PP=#{fpc_compiler}\", *args",
+ "system \"make\", \"install\", \"PP=#{fpc_compiler}\", \"PREFIX=#{prefix}\"",
+ "bin.install_symlink lib/\"#{name}/#{version}/ppcx64\"",
+ "rm_f Dir[bin/\"*.rsj\"]",
+ "system \"#{bin}/fpcmkcfg\", \"-p\", \"-d\", \"basepath=#{lib}/fpc/#{version}\", \"-o\", \"#{prefix}/etc/fpc.cfg\""
+ ],
+ "version": "3.0.4",
+ "file": "fpc.rb"
+} \ No newline at end of file