Opened 16 years ago

Closed 15 years ago

Last modified 15 years ago

#15925 closed enhancement (fixed)

refactor pgplot Portfile to remove PPC/i386 distinction and make gcc42 the default compiler

Reported by: davidh@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: pgplot Fortran Cc: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Port:

Description

pgplot is written in Fortran, thus it needs a compiler built for it. The current Portfile has a PPC variant with the compiler set to gcc34/g77, and a i386 variant with the compiler set to gcc42/gfortran.

g77 is a little outdated, and requires a gcc 3.x compiler to build. I have not been able to get g77 to build on 10.5.x.

What I have done is to refactor the existing Portfile to remove the PPC/i386 dependencies so that pgplot compiles with gcc42/gfortran as a default variant, and gcc34/g77 is selectable as a variant for compatibility with existing installations.

I have tested this Portfile on a PPC/10.4.11 system and on a i386 10.4.11 system. The existing patch files are unchanged.

What is the process to put this refactored Portfile in the Macports repository?

Attachments (3)

Portfile (3.5 KB) - added by davidh@… 16 years ago.
revised Portfile that makes gcc42/gfortran the default compiler
Portfile.diff (1.5 KB) - added by davidh@… 16 years ago.
created with diff Portfile Portfile_new >Portfile.diff
Portfile.unified.diff (2.1 KB) - added by davidh@… 16 years ago.
diff -u Portfile Portfile_new >Portfile.unified.diff

Download all attachments as: .zip

Change History (9)

Changed 16 years ago by davidh@…

Attachment: Portfile added

revised Portfile that makes gcc42/gfortran the default compiler

comment:1 Changed 16 years ago by jmroot (Joshua Root)

Milestone: Port Enhancements

Please post a unified diff between the current portfile and the new one.

Changed 16 years ago by davidh@…

Attachment: Portfile.diff added

created with diff Portfile Portfile_new >Portfile.diff

comment:2 Changed 16 years ago by davidh@…

I added the file. Created with diff Portfile Portfile_new >Portfile.diff

comment:3 Changed 16 years ago by raimue (Rainer Müller)

Unified diffs are preferred. Create them with diff -u OLD NEW.

Changed 16 years ago by davidh@…

Attachment: Portfile.unified.diff added

diff -u Portfile Portfile_new >Portfile.unified.diff

comment:4 Changed 15 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Cc: mcalhoun@… added

Cc Me!

comment:5 Changed 15 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Resolution: fixed
Status: newclosed

Alternate fix in r47644.

comment:6 Changed 15 years ago by (none)

Milestone: Port Enhancements

Milestone Port Enhancements deleted

Note: See TracTickets for help on using tickets.