|
@ -2,16 +2,22 @@ use 5.008000; |
|
|
use ExtUtils::MakeMaker; |
|
|
use ExtUtils::MakeMaker; |
|
|
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
|
|
|
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
|
|
|
# the contents of the Makefile that is written.
|
|
|
# the contents of the Makefile that is written.
|
|
|
|
|
|
|
|
|
|
|
|
sub MY::postamble { |
|
|
|
|
|
return <<'MAKE_FRAG'; |
|
|
|
|
|
$(MYEXTLIB): |
|
|
|
|
|
(cd ext; make libpeg_markdown.$(DLEXT)) |
|
|
|
|
|
MAKE_FRAG |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
WriteMakefile( |
|
|
WriteMakefile( |
|
|
NAME => 'Text::Markdown::XS', |
|
|
|
|
|
VERSION_FROM => 'lib/Text/Markdown/XS.pm', # finds $VERSION |
|
|
|
|
|
|
|
|
NAME => 'Text::Markdown::PegMarkdown', |
|
|
|
|
|
VERSION_FROM => 'lib/Text/Markdown/PegMarkdown.pm', # finds $VERSION |
|
|
PREREQ_PM => {}, # e.g., Module::Name => 1.1 |
|
|
PREREQ_PM => {}, # e.g., Module::Name => 1.1 |
|
|
($] >= 5.005 ? ## Add these new keywords supported since 5.005 |
|
|
($] >= 5.005 ? ## Add these new keywords supported since 5.005 |
|
|
(ABSTRACT_FROM => 'lib/Text/Markdown/XS.pm', # retrieve abstract from module |
|
|
|
|
|
AUTHOR => 'Masayoshi Sekimura <sekimura@>') : ()), |
|
|
|
|
|
LIBS => ['-L/usr/local/lib -lmarkdown'], # e.g., '-lm' |
|
|
|
|
|
DEFINE => '', # e.g., '-DHAVE_SOMETHING' |
|
|
|
|
|
INC => '-I. -I/usr/local/include', # 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 |
|
|
|
|
|
|
|
|
(ABSTRACT_FROM => 'lib/Text/Markdown/PegMarkdown.pm', # retrieve abstract from module |
|
|
|
|
|
AUTHOR => 'Masayoshi Sekimura <sekimura@cpan.org>') : ()), |
|
|
|
|
|
LIBS => [`pkg-config --libs glib-2.0`], |
|
|
|
|
|
INC => '`pkg-config --cflags glib-2.0` -Ipeg-markdown', |
|
|
|
|
|
MYEXTLIB => 'ext/libpeg_markdown.$(DLEXT)', |
|
|
); |
|
|
); |