mirror of
https://github.com/irssi/irssi.git
synced 2026-08-18 08:02:13 +02:00
good-bye and thanks, autotools
This commit is contained in:
parent
cf6bc31172
commit
b8736225cf
64 changed files with 118 additions and 3866 deletions
|
|
@ -1,170 +0,0 @@
|
|||
moduledir = $(libdir)/irssi/modules
|
||||
|
||||
perl_dirs = common irc ui textui
|
||||
|
||||
module_LTLIBRARIES = $(perl_module_lib) $(perl_module_fe_lib)
|
||||
noinst_LTLIBRARIES = $(perl_static_lib) $(perl_static_fe_lib)
|
||||
EXTRA_LTLIBRARIES = \
|
||||
libperl_core.la libfe_perl.la \
|
||||
libperl_core_static.la libfe_perl_static.la
|
||||
|
||||
libperl_core_la_LDFLAGS = -module -avoid-version -rpath $(moduledir)
|
||||
libfe_perl_la_LDFLAGS = -module -avoid-version -rpath $(moduledir)
|
||||
|
||||
perl-core.lo: irssi-core.pl.h
|
||||
perl-signals.lo: perl-signals-list.h
|
||||
|
||||
AM_CPPFLAGS = \
|
||||
-I$(top_builddir) \
|
||||
-I$(builddir) \
|
||||
$(GLIB_CFLAGS) \
|
||||
-DSCRIPTDIR=\""$(datadir)/irssi/scripts"\" \
|
||||
-DPERL_USE_LIB=\""$(PERL_USE_LIB)"\" \
|
||||
-DPERL_STATIC_LIBS=$(PERL_STATIC_LIBS) \
|
||||
$(PERL_CFLAGS)
|
||||
|
||||
perl_sources = \
|
||||
perl-core.c \
|
||||
perl-common.c \
|
||||
perl-signals.c \
|
||||
perl-sources.c
|
||||
|
||||
perl_fe_sources = \
|
||||
module-formats.c \
|
||||
perl-fe.c
|
||||
|
||||
noinst_HEADERS = \
|
||||
module.h \
|
||||
module-fe.h \
|
||||
module-formats.h \
|
||||
perl-core.h \
|
||||
perl-common.h \
|
||||
perl-signals.h \
|
||||
perl-sources.h
|
||||
|
||||
libperl_core_la_SOURCES = \
|
||||
$(perl_sources)
|
||||
|
||||
libperl_core_static_la_SOURCES = \
|
||||
$(perl_sources)
|
||||
|
||||
libfe_perl_la_SOURCES = \
|
||||
$(perl_fe_sources)
|
||||
|
||||
libfe_perl_static_la_SOURCES = \
|
||||
$(perl_fe_sources)
|
||||
|
||||
perl-signals-list.h: $(top_srcdir)/docs/signals.txt $(srcdir)/get-signals.pl
|
||||
cat $(top_srcdir)/docs/signals.txt | $(perlpath) $(srcdir)/get-signals.pl > perl-signals-list.h
|
||||
|
||||
irssi-core.pl.h: irssi-core.pl
|
||||
$(top_srcdir)/utils/file2header.sh $(srcdir)/irssi-core.pl irssi_core_code > irssi-core.pl.h
|
||||
|
||||
common_sources = \
|
||||
common/Irssi.xs \
|
||||
common/Irssi.pm \
|
||||
common/Channel.xs \
|
||||
common/Core.xs \
|
||||
common/Expando.xs \
|
||||
common/Ignore.xs \
|
||||
common/Log.xs \
|
||||
common/Masks.xs \
|
||||
common/Query.xs \
|
||||
common/Rawlog.xs \
|
||||
common/Server.xs \
|
||||
common/Settings.xs \
|
||||
common/Makefile.PL.in \
|
||||
common/typemap \
|
||||
common/module.h
|
||||
|
||||
irc_sources = \
|
||||
irc/Irc.xs \
|
||||
irc/Irc.pm \
|
||||
irc/Dcc.xs \
|
||||
irc/Channel.xs \
|
||||
irc/Ctcp.xs \
|
||||
irc/Query.xs \
|
||||
irc/Server.xs \
|
||||
irc/Modes.xs \
|
||||
irc/Netsplit.xs \
|
||||
irc/Notifylist.xs \
|
||||
irc/Client.xs \
|
||||
irc/Makefile.PL.in \
|
||||
irc/typemap \
|
||||
irc/module.h
|
||||
|
||||
ui_sources = \
|
||||
ui/UI.xs \
|
||||
ui/UI.pm \
|
||||
ui/Formats.xs \
|
||||
ui/Themes.xs \
|
||||
ui/Window.xs \
|
||||
ui/Makefile.PL.in \
|
||||
ui/typemap \
|
||||
ui/module.h
|
||||
|
||||
textui_sources = \
|
||||
textui/TextUI.xs \
|
||||
textui/TextUI.pm \
|
||||
textui/TextBuffer.xs \
|
||||
textui/TextBufferView.xs \
|
||||
textui/Statusbar.xs \
|
||||
textui/Makefile.PL.in \
|
||||
textui/wrapper_buffer_line.h \
|
||||
textui/typemap \
|
||||
textui/module.h
|
||||
|
||||
EXTRA_DIST = \
|
||||
get-signals.pl \
|
||||
irssi-core.pl \
|
||||
Makefile_silent.pm \
|
||||
$(common_sources) \
|
||||
$(irc_sources) \
|
||||
$(ui_sources) \
|
||||
$(textui_sources) \
|
||||
meson.build \
|
||||
common/meson.build \
|
||||
irc/meson.build \
|
||||
ui/meson.build \
|
||||
textui/meson.build
|
||||
|
||||
am_v_pl__show_gen = $(am__v_pl__show_gen_$(V))
|
||||
am_v_pl__hide_gen = $(am__v_pl__hide_gen_$(V))
|
||||
am__v_pl__show_gen_ = $(am__v_pl__show_gen_$(AM_DEFAULT_VERBOSITY))
|
||||
am__v_pl__hide_gen_ = $(am__v_pl__hide_gen_$(AM_DEFAULT_VERBOSITY))
|
||||
am__v_pl__show_gen_0 = echo " GEN " $$dir ;
|
||||
am__v_pl__hide_gen_0 = > /dev/null
|
||||
am__v_pl__show_gen_1 =
|
||||
am__v_pl__hide_gen_1 =
|
||||
|
||||
all-local:
|
||||
$(AM_V_GEN)for dir in $(perl_dirs); do \
|
||||
cd $$dir && \
|
||||
if [ ! -f Makefile ]; then \
|
||||
$(am_v_pl__show_gen)$(perlpath) Makefile.PL $(PERL_MM_PARAMS) $(am_v_pl__hide_gen); \
|
||||
fi && \
|
||||
($(MAKE) CC="$(CC)" CCFLAGS="$(PERL_CFLAGS) $(CFLAGS)" $(PERL_EXTRA_OPTS) || \
|
||||
$(MAKE) CC="$(CC)" CCFLAGS="$(PERL_CFLAGS) $(CFLAGS)" $(PERL_EXTRA_OPTS)) && \
|
||||
cd ..; \
|
||||
done
|
||||
|
||||
install-exec-local:
|
||||
for dir in $(perl_dirs); do \
|
||||
cd $$dir && $(MAKE) install && cd ..; \
|
||||
done
|
||||
|
||||
clean-generic:
|
||||
for dir in $(perl_dirs); do \
|
||||
cd $$dir; \
|
||||
$(MAKE) clean; \
|
||||
cd ..; \
|
||||
done
|
||||
|
||||
distclean-generic:
|
||||
for dir in $(perl_dirs); do \
|
||||
cd $$dir; \
|
||||
$(MAKE) realclean; rm -f Makefile.PL Makefile; \
|
||||
cd ..; \
|
||||
done
|
||||
|
||||
libperl_core_la_LIBADD = $(PERL_LDFLAGS)
|
||||
|
|
@ -1,76 +0,0 @@
|
|||
push @ExtUtils::MakeMaker::Overridable, qw(pm_to_blib);
|
||||
my $verb = $AM_DEFAULT_VERBOSITY;
|
||||
{ package MY;
|
||||
sub _center {
|
||||
my $z = shift;
|
||||
(length $z == 2 ? " $z " : length $z == 4 ? " $z " : " $z ").' '
|
||||
}
|
||||
sub _silent_cmd {
|
||||
my $z = shift;
|
||||
$z =~ s{\t(?:- ?)?\K(?=\$\((?|(CC)CMD|(XS)UBPPRUN|(LD|MV|CHMOD)|(RM)_R?F|(CP)_NONEMPTY|FULL_(AR)\)))}{\$(PL_AM_V_$1)}g;
|
||||
$z
|
||||
}
|
||||
sub c_o { _silent_cmd(shift->SUPER::c_o(@_)) }
|
||||
sub xs_c { _silent_cmd(shift->SUPER::xs_c(@_)) }
|
||||
sub xs_o { _silent_cmd(shift->SUPER::xs_o(@_)) }
|
||||
sub dynamic_lib { _silent_cmd(shift->SUPER::dynamic_lib(@_)) }
|
||||
sub static_lib { _silent_cmd(shift->SUPER::static_lib(@_)) }
|
||||
sub dynamic_bs {
|
||||
my $ret = shift->SUPER::dynamic_bs(@_);
|
||||
$ret =~ s{Running Mkbootstrap for}{\$(PL_AM_V_BS_Text)}g;
|
||||
_silent_cmd($ret)
|
||||
}
|
||||
sub pm_to_blib {
|
||||
my $ret = shift->SUPER::pm_to_blib(@_);
|
||||
$ret =~ s{^(\t(?:- ?)?)(?:\$\(NOECHO\) ?)?(.*-e ['"]pm_to_blib(.*\\\n)*.*)$}{$1\$(PL_AM_V_BLIB)$2\$(PL_AM_V_BLIB_Hide)}mg;
|
||||
$ret
|
||||
}
|
||||
sub post_constants {
|
||||
my $ret = shift->SUPER::post_constants(@_);
|
||||
my @terse = qw(cc xs ld chmod cp ar blib);
|
||||
my @silent = qw(mv rm);
|
||||
my @special = qw(BLIB_Hide);
|
||||
|
||||
#default verbosity from command line parameter
|
||||
$ret .= "
|
||||
AM_DEFAULT_VERBOSITY = @{[$verb ? 1 : 0]}
|
||||
";
|
||||
#default options forward
|
||||
$ret .= "
|
||||
PL_AM_V_${_} = \$(pl_am__v_${_}_\$(V))
|
||||
pl_am__v_${_}_ = \$(pl_am__v_${_}_\$(AM_DEFAULT_VERBOSITY))
|
||||
" for @special, map uc, @terse, @silent;
|
||||
|
||||
#quoted plain text needs extra quotes
|
||||
$ret .= "
|
||||
PL_AM_V_BS_Text = \"\$(pl_am__v_BS_Text_\$(V))\"
|
||||
pl_am__v_BS_Text_ = \$(pl_am__v_BS_Text_\$(AM_DEFAULT_VERBOSITY))
|
||||
"
|
||||
#hide pm_to_blib output
|
||||
. "
|
||||
pl_am__v_BLIB_Hide_0 = \$(DEV_NULL)
|
||||
pl_am__v_BLIB_Hide_1 =
|
||||
"
|
||||
#text for Mkbootstrap
|
||||
. "
|
||||
pl_am__v_BS_Text_0 = \"@{[_center('BS')]}\"
|
||||
pl_am__v_BS_Text_1 = \"Running Mkbootstrap for\"
|
||||
";
|
||||
#"terse" output
|
||||
$ret .= "
|
||||
pl_am__v_${_}_0 = \$(NOECHO)echo \"@{[_center($_)]}\" \$\@;
|
||||
" for map uc, @terse;
|
||||
|
||||
#no output
|
||||
$ret .= "
|
||||
pl_am__v_${_}_0 = \$(NOECHO)
|
||||
" for map uc, @silent;
|
||||
|
||||
#in verbose mode the "terse" echo expands to nothing
|
||||
$ret .= "
|
||||
pl_am__v_${_}_1 =
|
||||
" for map uc, @terse, @silent;
|
||||
$ret
|
||||
}
|
||||
}
|
||||
1;
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
use ExtUtils::MakeMaker;our $AM_DEFAULT_VERBOSITY='@AM_DEFAULT_VERBOSITY@';require "@top_srcdir@/src/perl/Makefile_silent.pm";
|
||||
|
||||
WriteMakefile('NAME' => 'Irssi',
|
||||
'LIBS' => '',
|
||||
'OBJECT' => '$(O_FILES)',
|
||||
'INC' => '-I../../.. @GLIB_CFLAGS@',
|
||||
'VERSION_FROM' => '@srcdir@/Irssi.pm');
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
use ExtUtils::MakeMaker;our $AM_DEFAULT_VERBOSITY='@AM_DEFAULT_VERBOSITY@';require "@top_srcdir@/src/perl/Makefile_silent.pm";
|
||||
|
||||
WriteMakefile('NAME' => 'Irssi::Irc',
|
||||
'LIBS' => '',
|
||||
'OBJECT' => '$(O_FILES)',
|
||||
'TYPEMAPS' => ['../common/typemap'],
|
||||
'INC' => '-I../../.. @GLIB_CFLAGS@',
|
||||
'VERSION_FROM' => '@srcdir@/Irc.pm');
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
use ExtUtils::MakeMaker;our $AM_DEFAULT_VERBOSITY='@AM_DEFAULT_VERBOSITY@';require "@top_srcdir@/src/perl/Makefile_silent.pm";
|
||||
|
||||
WriteMakefile('NAME' => 'Irssi::TextUI',
|
||||
'LIBS' => '',
|
||||
'OBJECT' => '$(O_FILES)',
|
||||
'TYPEMAPS' => ['../common/typemap', '../ui/typemap'],
|
||||
'INC' => '-I../../.. @GLIB_CFLAGS@',
|
||||
'VERSION_FROM' => '@srcdir@/TextUI.pm');
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
use ExtUtils::MakeMaker;our $AM_DEFAULT_VERBOSITY='@AM_DEFAULT_VERBOSITY@';require "@top_srcdir@/src/perl/Makefile_silent.pm";
|
||||
|
||||
WriteMakefile('NAME' => 'Irssi::UI',
|
||||
'LIBS' => '',
|
||||
'OBJECT' => '$(O_FILES)',
|
||||
'TYPEMAPS' => ['../common/typemap'],
|
||||
'INC' => '-I../../.. @GLIB_CFLAGS@',
|
||||
'VERSION_FROM' => '@srcdir@/UI.pm');
|
||||
Loading…
Add table
Add a link
Reference in a new issue