/build-extras/2008.1-odin/Glib-Makefile.PL.diff

https://code.google.com/p/camelbox/ · text · 23 lines · 21 code · 2 blank · 0 comment · 0 complexity · 598da719812920cc95b073e179c342d7 MD5 · raw file

  1. --- Makefile.PL.orig Tue Jul 22 00:32:49 2008
  2. +++ Makefile.PL Tue Jul 22 00:49:10 2008
  3. @@ -190,8 +190,19 @@
  4. =cut
  5. +package MY;
  6. +use Config;
  7. +
  8. +sub dynamic_lib {
  9. + my $inherited = shift->SUPER::dynamic_lib(@_);
  10. + $inherited .= "\tdlltool --input-def Glib.def --dllname Glib.dll \\\n";
  11. + $inherited .= "\t\t--output-lib libGlibPerl.a\n";
  12. + $inherited .= "\t\$(CP) libGlibPerl.a " . $Config{libpth} . "\n";
  13. + return $inherited;
  14. +}
  15. +
  16. # rule to build the documentation
  17. -sub MY::postamble
  18. +sub postamble
  19. {
  20. require 'MakeHelper.pm';
  21. # $glib will be undefined if any of our dependencies couldn't be found;