aboutsummaryrefslogtreecommitdiffstats
path: root/perl/Makefile.PL.in
diff options
context:
space:
mode:
Diffstat (limited to 'perl/Makefile.PL.in')
-rw-r--r--perl/Makefile.PL.in16
1 files changed, 14 insertions, 2 deletions
diff --git a/perl/Makefile.PL.in b/perl/Makefile.PL.in
index 502e84227..0d70d4270 100644
--- a/perl/Makefile.PL.in
+++ b/perl/Makefile.PL.in
@@ -1,9 +1,21 @@
use ExtUtils::MakeMaker;
WriteMakefile(
- NAME => 'rspamd',
- VERSION_FROM => 'rspamd.pm', # finds $VERSION
+ NAME => 'Mail::Rspamd',
+ AUTHOR => 'Vsevolod Stakhov <vsevolod@rambler-co.ru>',
+ XS => { 'Rspamd.xs' => 'Rspamd.c' },
+ VERSION_FROM => 'Rspamd.pm', # finds $VERSION
LIBS => ['${GLIB_LDFLAGS} ${GMIME_LDFLAGS} -levent'], # e.g., '-lm'
DEFINE => '',
INC => '${GLIB_CFLAGS} ${GMIME_CFLAGS}',
+ PM => { 'Rspamd.pod' => '$(INST_LIBDIR)/Rspamd.pod',
+ 'Rspamd.pm' => '$(INST_LIBDIR)/Rspamd.pm'},
+ depend => {
+ 'Rspamd.so' => 'Rspamd.o',
+ 'Rspamd.o' => 'Rspamd.c',
+ 'Rspamd.c' => qw{
+Rspamd/ContentType.xs Rspamd/Part.xs Rspamd/Hash.xs
+Rspamd/InternetAddress.xs Rspamd/Message.xs Rspamd/Object.xs
+},
+ },
);