Changeset 98123


Ignore:
Timestamp:
Sep 25, 2012, 2:35:12 PM (12 years ago)
Author:
jmr@…
Message:

fontforge: fix carbon includes (#35379)

Location:
trunk/dports/graphics/fontforge
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/graphics/fontforge/Portfile

    r97300 r98123  
    4545post-patch {
    4646    if {${os.major} > 11} {
    47         reinplace s|@@DEVDIR@@|${developer_dir}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/Developer| ${worksrcpath}/fontforge/macbinary.c \
    48                                                    ${worksrcpath}/fontforge/startui.c \
    49                                                    ${worksrcpath}/gutils/giomime.c
    5047        foreach file [glob ${worksrcpath}/fontforge/*.c] {
    5148            reinplace s|AnchorPoint|FFAnchorPoint|g $file
    5249        }
    53     } else {
    54         reinplace s|@@DEVDIR@@|${developer_dir}| ${worksrcpath}/fontforge/macbinary.c \
    55                                                    ${worksrcpath}/fontforge/startui.c \
    56                                                    ${worksrcpath}/gutils/giomime.c
    5750    }
    5851}
  • trunk/dports/graphics/fontforge/files/patch-xcode-43.diff

    r90799 r98123  
    66 # include <ctype.h>
    77-# include </Developer/Headers/FlatCarbon/Files.h>
    8 +# include <@@DEVDIR@@/Headers/FlatCarbon/Files.h>
     8+# include <CoreServices/CoreServices.h>
    99 #else
    1010 # include <utype.h>
     
    1717 #ifdef __Mac
    1818-# include </Developer/Headers/FlatCarbon/Files.h>
    19 +# include <@@DEVDIR@@/Headers/FlatCarbon/Files.h>
     19+# include <CoreServices/CoreServices.h>
    2020 # define FontInfo      MacFontInfo
    2121 # define KernPair      MacKernPair
    2222-# include </Developer/Headers/FlatCarbon/CarbonEvents.h>
    23 +# include <@@DEVDIR@@/Headers/FlatCarbon/CarbonEvents.h>
     23+# include <Carbon/Carbon.h>
    2424 /* For reasons obscure to me RunApplicationEventLoop is not defined in */
    2525 /*  the mac header files if we are in 64 bit mode. Strangely it seems to */
     
    3232 #ifdef __Mac
    3333-#include </Developer/Headers/FlatCarbon/Files.h>
    34 +#include <@@DEVDIR@@/Headers/FlatCarbon/Files.h>
     34+#include <CoreServices/CoreServices.h>
    3535 #define CHR(ch1,ch2,ch3,ch4) (((ch1)<<24)|((ch2)<<16)|((ch3)<<8)|(ch4))
    3636 
Note: See TracChangeset for help on using the changeset viewer.