]> iEval git - audio-libsamplerate.git/blobdiff - Makefile.PL
Bump version and update Changes
[audio-libsamplerate.git] / Makefile.PL
index 15fcd62f986aa9e0672b258e4410e224969ca593..44818358eb48cbbbddbc3eb8ce17b5a58bc7259e 100644 (file)
@@ -7,11 +7,12 @@ WriteMakefile(
        ABSTRACT_FROM     => 'lib/Audio/LibSampleRate.pm',
        AUTHOR            => 'Marius Gavrilescu <marius@ieval.ro>',
        MIN_PERL_VERSION  => '5.8.9',
-       LICENSE           => 'gpl',
+       LICENSE           => 'perl',
        SIGN              => 1,
        PREREQ_PM         => {},
-       LIBS              => ['-lsamplerate'],
-       INC               => '-I.',
+       INC               => '-Ilibsamplerate/src/',
+       MYEXTLIB          => 'libsamplerate/src/.libs/libsamplerate$(LIB_EXT)',
+       clean             => { FILES => 'libsamplerate/src/.libs/libsamplerate$(LIB_EXT)' },
        META_ADD         => {
                dynamic_config => 0,
                resources      => {
@@ -19,3 +20,11 @@ WriteMakefile(
                },
        }
 );
+
+sub MY::postamble {
+'
+$(MYEXTLIB): libsamplerate/Makefile.am
+       cd libsamplerate && ./configure && CFLAGS=-fPIC `which gmake || echo $(MAKE)`
+       cd libsamplerate/src/.libs/ && ar rc libsamplerate$(LIB_EXT) *.o
+'
+}
This page took 0.016372 seconds and 4 git commands to generate.