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

Re: Akka FreeBSD port



(sorry I forgot to attach 'em)

On Wednesday 16 January 2002  7:31 pm, you wrote:
> take a look (it's trivial):
> > A few issues:
> > 2. `loadkeys' does not exist under FreeBSD. An equivalent would be
> >    `kbdcontrol'.. slight syntax difference.
>
> You probably want to play with the chonfigure macro macros/loadkeys.pl and
> add FreeBSD support to it.
>
done


> > 3. chonfigure can't seem to find the perl header files, etc. It's looking
> > in all the wrong places ;) `/usr/libdata' is where all the perl stuff
> > goes.
>
> The macro is in macros/perldev.pl
done

> > 4. can't find fribidi library, headers, etc.
>
> macros/fribidi.pl :)
I dunno what to do for that

the two files 'perldev.pl' and 'loadkeys.pl' are attched but need testing ( I 
don't have FreeBSD 'yet' )
so plz test 'em

########################################
# 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;

sub perldev {
  print "Looking for the perl headers directory: ";
  my $perlhdir = `find /usr/lib -type d -regex ".*perl.*/CORE" 2> /dev/null`;
  if (!$perlhdir) {
    $perlhdir = `find /usr/lib -type d -regex ".*perl.*/CORE" 2> /dev/null`;
  }
  if (!$perlhdir) {
    #If FreeBSD, search for perl headers in '/usr/libdata'
    $perlhdir = `find /usr/libdata -type d -regex ".*perl.*/CORE" 2> /dev/null`;
  }
  if ($perlhdir) {
    chomp $perlhdir;
  } else {
    print "Not found\n";
    exit;
  };
  print "$perlhdir\n";
  $Main::cache{'perldev()'}{cflags}="-I$perlhdir";
}

return 1;
########################################
# 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;

sub define_loadkeys {
  print "Looking for loadkeys: ";
  my $loadkeys = `which loadkeys`;
  #If FreeBSD use 'kbdcontrol' instead of 'loadkeys'
  if (!$loadkeys) {
    $loadkeys = `which kbdcontrol`;
  }
  if ($loadkeys) {
    chomp $loadkeys;
    print "$loadkeys\n";
  } else {
    print "Not found\n";
    exit;
  };
  $Main::cache{'define_loadkeys()'}{config}="LOADKEYS \"$loadkeys\"";
}

return 1;