Thanks David,

I have compiled some test programs provided with LORENE that make use of pgplot.

One can compile them without -lX11 and run the test with any of the pgplot 
variant without need for recompiling.

I will therefore remove -lX11 in the next commit.

Regards, Thibaut.


Le 18 oct. 2016 à 01:57, David Strubbe <dstru...@macports.org> a écrit :

> I guess the question is: is x11 definitely what pgplot should be linked with? 
> +x11 is an optional (though default) variant for pgplot (as below). Is it 
> necessary to use x11 for these LORENE codes to be compiled? For example, what 
> if they were to use +aquaterm?
> 
> pgplot @5.2.2_10 (graphics, devel)
> Variants:             aquaterm, docs, dragonegg33, dragonegg34, g95, gcc44, 
> gcc45, gcc46, gcc47, gcc48, gcc49, gcc5, [+]gcc6, gcc7, [+]x11
> 
> Description:          The PGPLOT Graphics Subroutine Library is a Fortran- or 
> C-callable, device-independent graphics package for making simple scientific 
> graphs. It is intended for making
>                       graphical images of publication quality with minimum 
> effort on the part of the user. For most applications, the program can be 
> device-independent, and the output can be
>                       directed to the appropriate device at run time.
> Homepage:             http://www.astro.caltech.edu/~tjp/pgplot/
> 
> Build Dependencies:   perl5, pkgconfig, gcc6
> Library Dependencies: libpng, zlib, xorg-libX11, libgcc
> Conflicts with:       miriad
> Platforms:            darwin
> License:              Noncommercial
> Maintainers:          mcalh...@macports.org, openmaintai...@macports.org
> 
> 
> On Mon, Oct 17, 2016 at 11:38 AM, Thibaut Paumard <thib...@macports.org> 
> wrote:
> This is correct. I will emote the dependency.
> 
> Should I also remove -lX11 from LIB_PGPLOT, since libpgplot itself is linked 
> with -lX11?
> 
> Kind regards, Thibaut.
> 
> 
> Le 17 oct. 2016 à 20:12, David Strubbe <dstru...@macports.org> a écrit :
> 
>> It appears libX11, in the LIB_PGPLOT variable, is used in principle to 
>> compile some codes that are not in fact compiled in this package. It looks 
>> like X11 is only in fact used via pgplot.
>> 
>> On Mon, Oct 17, 2016 at 10:46 AM, Ryan Schmidt <ryandes...@macports.org> 
>> wrote:
>> 
>> > On Oct 16, 2016, at 11:57 PM, David Strubbe <dstru...@macports.org> wrote:
>> >
>> > Additionally, the dependency port:xorg-libX11 does not seem necessary: I 
>> > don't see any evidence in the build log that it is used, and the build 
>> > succeeds without it being active.
>> 
>> Are you sure? libX11 is mentioned in local_settings:
>> 
>> 
>> > > --- trunk/dports/science/LORENE/files/local_settings                     
>> > >      (rev 0)
>> > > +++ trunk/dports/science/LORENE/files/local_settings  2016-10-16 
>> > > 17:41:08 UTC (rev 153943)
>> 
>> > > +# Graphical libraries: PGPLOT, PNG and X11
>> > > +# ----------------------------------------
>> > > +LIB_PGPLOT = -lcpgplot -lpgplot -lX11
>> 
>> 
>> 
>> 
> 
> 

_______________________________________________
macports-dev mailing list
macports-dev@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-dev

Reply via email to