Subject: | OS X Patch for 1.43 |
Looks like some of the needed settings didn't make it into 1.43. Part of
this is my fault, sorry.
$libs needs to have all the extras as found in the patch for compiling
in OS X. The DEFINE statement also needs editing to set the freebsd
settings for OS X.
This patch takes care of everything, and provides a working OS X build.
Thanks for all your work.
Subject: | osx-patch.diff |
--- Audio-TagLib-1.43/Makefile.PL 2007-01-16 19:49:27.000000000 -0700
+++ Audio-TagLib-1.43-OSX/Makefile.PL 2007-01-17 00:18:47.000000000 -0700
@@ -18,6 +18,9 @@
Carp::croak("Please install taglib ver 1.4.*") unless
$libver =~ m/^1\.4/io;
our $libs = qx(taglib-config --libs);
+ if ($^O eq 'darwin') {
+ $libs = '-L/System/Library/Perl/lib/5.8 -lperl -liconv ' . qx(taglib-config --libs);
+ }
our $inc = ' -I/usr/include -I./include -I. '. qx(taglib-config --cflags);
}
@@ -36,7 +39,7 @@
LDDLFLAGS => $^O eq 'darwin' ? "-dynamiclib $libs" : "-shared ". $libs,
XSOPT => '-C++ -hiertype',
LIBS => $libs,
- DEFINE => $^O eq 'freebsd' ? '-D_BSD_ICONV -DNO_DOXYGEN' : '-DNO_DOXYGEN', # e.g., '-DHAVE_SOMETHING'
+ DEFINE => ($^O eq 'freebsd' || $^O eq 'darwin') ? '-D_BSD_ICONV -DNO_DOXYGEN' : '-DNO_DOXYGEN', # e.g., '-DHAVE_SOMETHING'
INC => $inc, # e.g., '-I. -I/usr/include/other'
# Un-comment this if you add C files to link with later:
# OBJECT => '$(O_FILES)', # link all the C files too