Skip to content

Commit

Permalink
add iodbc support
Browse files Browse the repository at this point in the history
  • Loading branch information
chregu committed May 5, 2017
1 parent 5b0457d commit 359c513
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 1 deletion.
55 changes: 55 additions & 0 deletions lib/Package/libiodbc.pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
package Package::libiodbc;

use strict;
use warnings;

use base qw(Package);

our $VERSION = '3.52.12';


sub dependency_names {
return qw();
}



sub base_url {
#return "ftp://fr.rpmfind.net/pub/libxml";
return "https://github.com/openlink/iODBC/releases/download/v$VERSION";
}


sub packagename {
return "libiodbc-" . $VERSION;
}


sub configure_flags {
my $self = shift @_;
my $prefix = $self->config()->prefix();
return $self->SUPER::configure_flags() . "";
}


sub subpath_for_check {
return "lib/libxml2.dylib";
}


sub php_extension_configure_flags {
my $self = shift @_;
my (%args) = @_;
return "--with-libxml-dir=" . $self->config()->prefix();
}

sub make_flags {
my $self = shift @_;
return "";
}




1;

9 changes: 9 additions & 0 deletions lib/Package/mongo.pm
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@ sub init {
$self->{VERSION} = $VERSION;
}

sub configure_flags {
my $self = shift @_;
return join " ", (
$self->SUPER::configure_flags(@_),
'--with-openssl-dir=' . $self->config()->prefix()
);

}

sub packagesrcdir {
my $self = shift @_;
return $self->config()->srcdir() . "/" . $self->packagename() . "/";
Expand Down
3 changes: 2 additions & 1 deletion lib/Package/php5.pm
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ sub packagesrcdir {
}

sub dependency_names {
return qw( openssl icu mssql libxslt imapcclient gettext curl libpng libjpeg libtiff libgif libfreetype postgresql mcrypt tidy gmp readline);
return qw( openssl icu mssql libxslt imapcclient gettext curl libpng libjpeg libtiff libgif libfreetype postgresql mcrypt tidy gmp readline libiodbc);
#before 10.8
#return qw(iconv icu mssql libxml2 libxslt imapcclient gettext curl libpng libjpeg libtiff libgif libfreetype postgresql mcrypt tidy);
}
Expand Down Expand Up @@ -86,6 +86,7 @@ sub configure_flags {
'--enable-soap',
'--enable-wddx',
'--enable-ftp',
'--with-iodbc',
'--enable-sockets',
'--with-bz2=/usr',
'--enable-zip',
Expand Down

0 comments on commit 359c513

Please sign in to comment.