Description: Use packaged msgpack
 Remove from Makefile.PL the code to build the msgpack source code included in
 the upstream source. Link to the binary from the libmsgpack package instead.
Forwarded: not-needed
Author: Christopher Hoskin <christopher.hoskin@gmail.com>
Reviewed-by: gregor herrmann <gregoa@debian.org>
Last-Update: 2016-09-17

--- a/Makefile.PL
+++ b/Makefile.PL
@@ -30,27 +30,12 @@
 
 use_ppport 3.19;
 cc_src_paths 'src';
-cc_include_paths 'msgpack-1.4.2/include';
 cc_warnings;
 
 test_requires 'Data::MessagePack';
 
-my ($amd64) = qx{ $^X -V } =~ /(amd64|x86_64)/i;
-my $opt = '--disable-shared';
-$opt .= ' --with-pic' if $amd64;
+makemaker_args->{LIBS} = '-lmsgpackc';
 
-makemaker_args->{MYEXTLIB} = 'msgpack-1.4.2/src/.libs/libmsgpackc$(LIB_EXT)';
-
-{
-    package MY;
-    sub postamble {
-        <<"__EOF__";
-\$(MYEXTLIB):
-	cd msgpack-1.4.2 && ./configure $opt && \$(MAKE)
-
-__EOF__
-    }
-}
 
 readme_from 'lib/Data/MessagePack/Stream.pm';
 author_tests 'xt';
