(none) imager-devel
/ help / lists / applications / search /
 

Re: next Imager release

From: Slaven Rezic (
13556@xyz.molar.is)
Date: Fri 10 Dec 2004 - 22:00:55 GMT

  • Next message: Tony Cook: "Re: freetype 1/2 header problems"

    Tony Cook <13515@xyz.molar.is> writes:

    > On Fri, Dec 10, 2004 at 12:11:48AM +0100, Slaven Rezic wrote:
    > > After making some changes to Makefile.PL (see attached patch), Imager
    > > compiles and "make test" runs ok on FreeBSD 4.9 with perl 5.8.0.
    > >
    > > The changes are necessary, because the standard FreeBSD port installs
    > > the freetype2 includes to /usr/local/include/freetype2/freetype.
    > > Moreover, if freetype1 is also installed (in
    > > /usr/local/include/freetype1/freetype), then compiling font.c fails. I
    > > made a workaround by excluding the TT-Fonts library if freetype2 was
    > > found.
    >
    > The problem I have with excluding freetype1 when freetype2 is installed
    > is that it works elsewhere (including Debian).
    >
    > Can anyone provide (or point to) a shell where I can experiment to try
    > and make this work without excluding freetype1?
    >
    > Otherwise I'd probably just exclude freetype1 when freetype2 is found
    > only on FreeBSD.

    You're right, there's a much better patch:

    #### Patch data follows ####
    diff -up 'Imager-0.43_03/Makefile.PL' 'new.Imager-0.43_03/Makefile.PL'
    Index: ./Makefile.PL
    --- ./Makefile.PL Wed Dec 8 00:00:04 2004
    +++ ./Makefile.PL Fri Dec 10 22:55:28 2004
    @@ -274,7 +274,10 @@ sub init {
     
       @definc{'/usr/include'}=();
       @incs=(split(/\Q$Config{path_sep}/, $INCPATH),
    - qw(/sw/include /usr/include/freetype2 /usr/local/include/freetype2
    + qw(/sw/include
    + /usr/local/include/freetype2/freetype
    + /usr/local/include/freetype1/freetype
    + /usr/include/freetype2 /usr/local/include/freetype2
                 /usr/include /usr/local/include /usr/include/freetype
                 /usr/local/include/freetype));
       @libs=(split(/\Q$Config{path_sep}/,$LIBPATH),
    #### End of Patch data ####

    Regards,
            Slaven

    -- 
    Slaven Rezic - slaven <at> rezic <dot> de
    

    tkrevdiff - graphical display of diffs between revisions (RCS, CVS or SVN) http://ptktools.sourceforge.net/#tkrevdiff



  •