[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Akka FreeBSD port
- To: developer at arabeyes dot org
- Subject: Re: Akka FreeBSD port
- From: Mohammed Yousif <mhdyousif at gmx dot net>
- Date: Fri, 18 Jan 2002 21:32:57 +0200
- Organization: West Point for Advnaced Systems
> > 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;