see plug-ins/perl/Changes

This commit is contained in:
Marc Lehmann
1999-04-26 20:03:51 +00:00
parent 8253eda56a
commit bd74c628f6
5 changed files with 24 additions and 17 deletions

View File

@ -9,6 +9,8 @@ Revision history for Gimp-Perl extension.
- added Gimp::init_gtk function to initialize Gtk in a Gimp-compatible
way.
- replaced the default colour database by something far better.
- exchanged order of some compiler commandline arguments.
- improved Makefile support for embed.
1.08 Fri Apr 9 03:20:54 CEST 1999
- added guidegrid, git-text, roundrectsel, repdup, centerguide,

View File

@ -25,9 +25,9 @@ EOF
WriteMakefile(
'NAME' => 'Gimp::Lib',
'VERSION_FROM' => '../Gimp.pm',
'INC' => "$CPPFLAGS -I.. $CFLAGS $GIMP_INC_NOUI $DEFS".($IN_GIMP ? " -DIN_GIMP" : ""),
'INC' => "-I.. $GIMP_INC_NOUI $CPPFLAGS $CFLAGS $DEFS".($IN_GIMP ? " -DIN_GIMP" : ""),
'macro' => { libdir => $libdir, exec_prefix => $exec_prefix, prefix => $prefix },
'LDLOADLIBS'=> "$LDFLAGS $LIBS $GIMP_LIBS_NOUI",
'LDLOADLIBS'=> "$GIMP_LIBS_NOUI $LDFLAGS $LIBS",
'DEFINE' => '',
dynamic_lib => { OTHERLDFLAGS => "$LDFLAGS $LIBS $GIMP_LIBS_NOUI" },
dynamic_lib => { OTHERLDFLAGS => "$GIMP_LIBS_NOUI $LDFLAGS $LIBS" },
);

View File

@ -200,7 +200,7 @@ install ::
fi \
done ; \
$(MAKE) UNINST=1 really-install install-plugins
cd ./embed && $(MAKE) modinstall
cd embed && $(MAKE) install
'.$install;
}
@ -217,13 +217,14 @@ check :: test
MY_FIXIN = \$(PERL) -I\$(PERL_ARCHLIB) -I\$(PERL_LIB) -MExtUtils::MakeMaker -e 'MY->fixin(\@ARGV)'
all ::
cd embed && \$(MAKE) all
clean ::
cd embed && \$(MAKE) clean
test -f Makefile || mv -f Makefile.old Makefile
\$(RM_RF) inst-temp
all ::
cd ./embed && \$(MAKE)
install-plugins ::
\$(RM_RF) inst-temp
\$(MKPATH) inst-temp
@ -269,11 +270,6 @@ close C;
print "ok\n";
print "configuring in ./embed...\n";
chdir "./embed" or die "unable to cd to 'embed'\n";
system($Config{perlpath},"Makefile.PL");
chdir ".." or die "unable to cd to '..'\n";
WriteMakefile(
'dist' => {
PREOP => 'chmod -R u=rwX,go=rX . ;',
@ -303,7 +299,7 @@ WriteMakefile(
'Gimp/Config.pm' => '$(INST_LIBDIR)/Gimp/Config.pm',
},
'LIBS' => [''],
'INC' => "$CPPFLAGS $CFLAGS $GIMP_INC_NOUI",
'INC' => "$GIMP_INC_NOUI $CPPFLAGS $CFLAGS",
'DEFINE' => ($IN_GIMP ? " -DIN_GIMP " : "")." $DEFS",
'EXE_FILES' => ['scm2perl','scm2scm'],
'macro' => \%cfg,

View File

@ -10,6 +10,7 @@ make test TEST_VERBOSE=1
bugs
* $Config{cc} might not understand Gimps CFLAGS (-mpentium).
* do NOT modinstall with older gimp versions (!!!!!!!!!)
[DONE] * make parasiterc ascii-only !!!!
* improve examples/example-*.pl

View File

@ -24,14 +24,22 @@ sub MY::const_loadlibs {
$self->SUPER::const_loadlibs(@_);
}
sub MY::install {
<<EOF;
install :: all \$(INST_DYNAMIC)
\$(CP) \$(INST_DYNAMIC) \$(gimpplugindir)/modules/\$(DLBASE).\$(DLEXT)
\$(CHMOD) 755 \$(gimpplugindir)/modules/\$(DLBASE).\$(DLEXT)
uninstall ::
\$(RM_F) \$(gimpplugindir)/modules/\$(DLBASE).\$(DLEXT)
EOF
}
sub MY::postamble {
<<"EOF";
clean ::
test -f Makefile || mv -f Makefile.old Makefile
modinstall :: \$(INST_DYNAMIC)
mv \$(INST_DYNAMIC) \$(gimpplugindir)/modules/
perlxsi.c:
\$(FULLPERL) -MExtUtils::Embed -e xsinit
EOF
@ -42,7 +50,7 @@ WriteMakefile(
INSTALLDIRS => 'perl',
INSTALLARCHLIB => '/tmp',
OBJECT => 'perlmod$(OBJ_EXT) perlxsi$(OBJ_EXT)',
INC => "$_ccopts $_gccflags $CPPFLAGS -I.. $CFLAGS $DEFS".($IN_GIMP ? " -DIN_GIMP" : ""),
INC => "-I.. $_ccopts $_gccflags $CPPFLAGS $CFLAGS $DEFS".($IN_GIMP ? " -DIN_GIMP" : ""),
macro => \%cfg,
DEFINE => '',
dynamic_lib => { OTHERLDFLAGS => "$LDFLAGS $LIBS $_ldopts $_gldflags" },