[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Akka FreeBSD port



> > macros/fribidi.pl :)
> I dunno what to do for that

>If I understood Moe right, the problem is that pkg-config is used instead of
>fribidi-config

if that's the case , the file fribidi.pl is attached


########################################
# Perl extensible replacement to the   #
# autotools                            #
# (C)2001 Chahine M. Hamila            #
# This code is provided under the      #
# GPL license which you can find at    #
# http://www.gnu.org/copyleft/gpl.html #
#                                      #
########################################

use strict;

#find the gnome-config prog
sub fribidi {
  print "Looking for fribidi-config: ";
  my $fbidiprog = `which fribidi-config`;
  #If FreeBSD, use 'pkg-config' instead of 'fribidi-config'
  if (!$fbidiprog) {
    $fbidiprog = `which pkg-config`;
  }
  my $ldf;
  my $cfl;
  if ($fbidiprog) {
    chomp $fbidiprog;
    print "$fbidiprog\n";
    $ldf = `$fbidiprog --libs`;
    chomp $ldf;
    $cfl = `$fbidiprog --cflags`;
    chomp $cfl;
  } else {
    print "Not found\n";
    exit;
  };
  $Main::cache{'fribidi()'}{libs}=$ldf;
  $Main::cache{'fribidi()'}{cflags}=$cfl;
}

return 1;