Alexander,
     The following changes resolve the build issues for both octave364
and octave364-x11 on 10.7….

--- octave-3.6.4.info.orig 2015-02-03 12:24:40.000000000 -0500
+++ octave-3.6.4.info 2015-02-03 14:18:36.000000000 -0500
@@ -181,6 +181,9 @@

  # Patch configure not to link like Puma on Yosemite
  perl -pi -e 's/(10\.\[012\])\*/\1\,.\*/' configure
+
+ # Force fink freetype includes
+ perl -pi -e 
's,GRAPHICS_CFLAGS="\$FLTK_CFLAGS",GRAPHICS_CFLAGS="-I%p/include/freetype2
\$FLTK_CFLAGS",' configure
 <<

 GCC: 4.0
@@ -229,7 +232,7 @@

  osversion=`uname -r | cut -d. -f1`
  export CFLAGS='-O3 -MD'
- export CXXFLAGS="-O3 -MD -I/usr/X11/include"
+ export CXXFLAGS="-O3 -MD -I%p/include/freetype2 -I/usr/X11/include"
  if [ $osversion -ge 13 ] ; then
  export CXXFLAGS="$CXXFLAGS -std=c++0x"
  fi

The additional change in configure for the setting of GRAPHICS_CFLAGS
is required because $FLTK_CFLAGS places -I/sw/include
-I/usrX11/include earlier on the compiler flags for parts of the build
in the src directory.
                 Jack

On Tue, Feb 3, 2015 at 12:00 PM, Alexander Hansen
<alexanderk.han...@gmail.com> wrote:
>
>> On Feb 3, 2015, at 8:47 AM, Jack Howarth <howarth.at.f...@gmail.com> wrote:
>>
>> Alexander,
>>        Certainly the inclusion of -I/usr/X11/include before
>> -I%p/include/freetype2 has to be considered as against packaging
>> guidelines.  On all variants of octave364 and OS releases, the current
>> fink build is using freetype2 headers from either Apple X11 or Xquartz
>> while the octave binaries are being linked against the shared
>> libraries from fink's freetype219 resulting in a decoupling of the
>> headers from the libraries.
>>      Jack
>>
>
> I was going by what fink-package-precedence was returning, and there was no 
> evidence from that that those headers were actually being used.
>
> In any case, it looks like I’m going to want to put in -I%p/include/freetype2 
> explicitly, so I’ll put it in front of -I/usr/X11/include in CXXFLAGS.
> --
> Alexander Hansen, Ph.D.
> Fink User Liaison
>

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to