tbytevector.h tstringlist.h tstring.h #### #undef PerlLIO_read #undef PerlLIO_write #### cmake -G "MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=C:/Libraries/TagLib -DCMAKE_RELEASE_TYPE=Release . gmake gmake install #### tbytevector.h tstringlist.h tstring.h #### #undef PerlLIO_read #undef PerlLIO_write #### perl Makefile.pl dmake dmake install #### use 5.008001; use ExtUtils::MakeMaker; use Config; my $libdir = 'C:/Libraries/taglib/lib'; my $includedir = 'C:/Libraries/taglib/include'; my $libver = '1.7.2'; my $CC = 'g++'; my $libs = ' -L' . $libdir . ' -llibtag.dll'; #my $cflags = '$Config{'ccflags'}; my $cflags = $Config{'ccflags'}; my $inc = '-I' . $Config{'incpath'} . ' -I./include' . ' -I' . $includedir . '/taglib'; my $ldd = $Config{'lddlflags'} . ' ' . $Config{'ccdlflags'} . ' ' . $Config{'cccdlflags'}; # Configure various os-es my $define; if ( $Config{'osname'} eq 'darwin' ) { $define = '-D_BSD_ICONV -DNO_DOXYGEN'; $libs .= ' -L/System/Library/Perl/lib/'. $Config{version}. ' -lperl -liconv'; } elsif ( $Config{'osname'} eq 'freebsd' ) { $define = '-D_BSD_ICONV -DNO_DOXYGEN'; $libs .= ' -liconv'; } elsif ( $Config{'osname'} eq 'MSWin32' ) { # $define = '-D_BSD_ICONV -DNO_DOXYGEN'; # $define = '-DNO_DOXYGEN'; $libs .= ' -liconv'; } #$Verbose = 2; WriteMakefile( NAME => 'Audio::TagLib', MIN_PERL_VERSION => '5.008001', VERSION_FROM => 'lib/Audio/TagLib.pm', LICENSE => 'perl', CC => $CC, LD => '$(CC)', XSOPT => '-C++ -hiertype', CCFLAGS => $cflags, LIBS => $libs, DEFINE => $define, INC => $inc, LDDLFLAGS => $ldd, ( $Config{'version'} >= 5.005 ? ( ABSTRACT_FROM => 'lib/Audio/TagLib.pm', AUTHOR => 'Geoffrey Leach ' ) : () ), PREREQ_PM => { "Encode" => 0, "Test::Deep" => 0, "File::Slurp" => 0, "Test::More" => 0, "Test::Output" => 0, }, "CONFIGURE_REQUIRES" => { "ExtUtils::MakeMaker" => 0, "Config" => 0, }, );