# Configure libraries chomp(my $libs = qx{taglib-config --libs}); # Configure compile flags chomp(my $cflags = qx{taglib-config --cflags}); # Configure includes # ./include has a needed .h my $inc = " -I./include $cflags"; # Configure various os-es my ($define, $ldd); if ( $Config{'osname'} eq 'darwin' ) { $inc = ' -I/opt/local/include ' . $inc; $libs = "-L/opt/local/lib -L/System/Library/Perl/lib $libs" . ' -lperl -liconv'; $ldd = "-bundle -undefined dynamic_lookup -dynamiclib $libs"; $define = '-D_BSD_ICONV -DNO_DOXYGEN'; } elsif ( $Config{'osname'} eq 'freebsd' ) { $ldd = " -shared $libs"; $define = '-D_BSD_ICONV -DNO_DOXYGEN'; } else { # Windows?? $ldd = " -shared $libs"; $define = '-DNO_DOXYGEN'; }
In reply to Makefile.PL for Windows, Darwin by geoffleach
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |