Martin,

Sorry for having been so brief, I didn't want to clutter the mailing list. I am referring to the Perl module PGPLOT (pgplot-perl581), which is a Perl wrapper around the Fortran/C graphic library pgplot (which is of course a prerequisite). The compile script in the info file consists of three steps:

1 creation of the makefile (the usual perl Makefile.PM for Perl modules,
  with all the path variable written explicitly)

2 make to compile everything.

3 link of the PGPLOT.bundle part of the module, which is done separately
  by the Fink installer. This last step is necessary otherwise the
  module doesn't work. Before hacking the fink info file I tried to
  install the module manually with perl Makefile.PL; make; make install
  and at the make test phase I got all sorts of dyld errors about
  unresolved symbols.

Phase 3 was already there in the "Fink unstable" info file for 10.3, but it didn't work for Panther. The problem was that the cc command was using the command line option -framework which is apparently no more recognized by dyld (if I have understood correctly, the option -framework is passed by gcc to the linker as it is). For this reason the compile script was failing. Looking at the info file of the pgplot package I saw that the -framework option was gone, and the two frameworks used (AppKit and Foundation) were listed with their full path at the end of the compile command. Since the pgplot script also had the "-lcc_dynamic" option, I added it to the pgplot-perl script. The result worked properly and the test was passed with flying colors.

In the previous post I attached the modified info file, but since I cannot see it in the mailing list archive I'm attaching it inline at the end of this email.

Thanks for your answer,
Massimo

________________________________________________________________
Massimo Marengo ----------------------- [EMAIL PROTECTED]

pgplot-perl581-1.18.7.info
--------------------------

Package: pgplot-perl581
Version: 2.18
Revision: 7
Conflicts: pgplot-perl (<= 2.18-4)
Replaces: pgplot-perl (<= 2.18-4), pgplot-perl560
Provides: pgplot-perl
Maintainer: Jeffrey Whitaker <[EMAIL PROTECTED]>
BuildDepends: libpng3, dlcompat-dev, fink (>= 0.13.0-1), system-perl581
Depends: pgplot, extutils-f77, libpng3-shlibs, system-perl581
Type: perl 5.8.1
UpdatePOD: true
Source: http://www.cpan.org/authors/id/KGB/PGPLOT-%v.tar.gz
Source-MD5: 0c27c49f6443eb4fdcc9eaee4c756c87
SourceDirectory: PGPLOT-%v
PatchScript: sed 's|<PREFIX>|%p|g' < %a/%f.patch | patch -p1
CompileScript: <<
perl5.8.1 Makefile.PL PREFIX=%p INSTALLPRIVLIB=%p/lib/perl5/5.8.1 INSTALLARCHLIB=%p/lib/perl5/5.8.1/darwin-thread-multi-2level INSTALLSITELIB=%p/lib/perl5/5.8.1 INSTALLSITEARCH=%p/lib/perl5/5.8.1/darwin-thread-multi-2level INSTALLMAN1DIR=%p/share/man/man1 INSTALLMAN3DIR=%p/share/man/man3 INSTALLSITEMAN1DIR=%p/share/man/man1 INSTALLSITEMAN3DIR=%p/share/man/man3
make
cc -o blib/arch/auto/PGPLOT/PGPLOT.bundle -bundle -flat_namespace -undefined suppress PGPLOT.o -L%p/lib/pgplot -L%p/lib -lcpgplot -lpgplot -lpng -L/usr/X11R6/lib -lX11 -L/usr/lib -lg2c /System/Library/Frameworks/Foundation.framework/Versions/Current/ Foundation /System/Library/Frameworks/AppKit.framework/Versions/Current/AppKit -lcc_dynamic
<<
InstallScript: <<
make install INSTALLPRIVLIB=%i/lib/perl5/5.8.1 INSTALLARCHLIB=%i/lib/perl5/5.8.1/darwin-thread-multi-2level INSTALLSITELIB=%i/lib/perl5/5.8.1 INSTALLSITELIB=%i/lib/perl5/5.8.1 INSTALLSITEARCH=%i/lib/perl5/5.8.1/darwin-thread-multi-2level INSTALLMAN1DIR=%i/share/man/man1 INSTALLMAN3DIR=%i/share/man/man3 INSTALLSITEMAN1DIR=%i/share/man/man1 INSTALLSITEMAN3DIR=%i/share/man/man3
<<
DocFiles: LICENSE README HELP CHANGES
License: OSI-Approved
Description: Perl interfaces for the PGPLOT graphics library
Homepage: http://search.cpan.org/search?dist=PGPLOT




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to