Subject: | [PATCH] support for OSX |
This patch adds support for Mac OSX.
Subject: | 0001-support-for-OSX.patch |
From 1317d667b93e3d2dcac7f177b1d62437deaae971 Mon Sep 17 00:00:00 2001
From: Rafael Kitover <rkitover@cpan.org>
Date: Sun, 12 Jun 2011 12:50:46 -0400
Subject: [PATCH] support for OSX
---
Makefile.PL | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/Makefile.PL b/Makefile.PL
index b4f1246..7e084c5 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -80,8 +80,8 @@ if ($Config::Config{osname} eq 'MSWin32')
else
{
$isql_name = 'isql';
- @ib_bin_dirs = (qw(/usr/interbase/bin /opt/interbase/bin /opt/firebird/bin /usr/bin /usr/local/bin));
- @ib_inc_dirs = (qw(/usr/interbase/include /opt/interbase/include /opt/firebird/include /usr/include));
+ @ib_bin_dirs = (qw(/usr/interbase/bin /opt/interbase/bin /opt/firebird/bin /usr/bin /usr/local/bin /Library/Frameworks/Firebird.framework/Resources/bin));
+ @ib_inc_dirs = (qw(/usr/interbase/include /opt/interbase/include /opt/firebird/include /usr/include /Library/Frameworks/Firebird.framework/Headers));
}
sub locate_dbi_arch_dir {
@@ -501,6 +501,11 @@ elsif (($os eq 'linux') || ($os eq 'freebsd'))
$MakeParams{'LIBS'} .= ' -lNoVersion-2.1.2'
}
}
+elsif ($os eq 'darwin')
+{
+ use Config;
+ $MakeParams{'LDDLFLAGS'} = $Config{lddlflags} . " -framework Firebird ";
+}
elsif ($os eq 'hpux')
{
$MakeParams{'LIBS'} = '-lgds -ldld';
--
1.7.5.1