--- /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/print/freetype/Portfile	2015-01-06 07:01:23.000000000 +0100
+++ /Users/repa/ports/print/freetype/Portfile	2015-05-13 16:59:45.000000000 +0200
@@ -45,6 +45,7 @@
     patch-src_base_ftrfork.c.diff \
     patch-modules.cfg.diff
 
+
 depends_lib             port:bzip2 \
                         port:libpng \
                         port:zlib
@@ -91,8 +92,24 @@
     foreach dir {design glyphs reference tutorial} {
         copy ${worksrcpath}/docs/${dir} ${destroot}${docdir}/html
     }
+
+    # rename the header macros to the old structure
+    reinplace -W ${destroot}${prefix}/include/freetype2/config \
+        "s|\<|\<freetype/|" ftheader.h
+    # except the <config/" stuff
+    reinplace -W ${destroot}${prefix}/include/freetype2/config \
+        "s|\<freetype/config|\<config|" ftheader.h
+    # make a directory and move headers
+    xinstall -d ${destroot}${prefix}/include/freetype2/freetype
+    exec bash -c \
+        "mv ${destroot}${prefix}/include/freetype2/*.h ${destroot}${prefix}/include/freetype2/freetype"
+    # except the ft2build.h!
+    file rename ${destroot}${prefix}/include/freetype2/freetype/ft2build.h \
+        ${destroot}${prefix}/include/freetype2/ft2build.h
 }
 
+    
+
 if {${os.arch} eq "i386"} {
     if { ${os.major}>=10 } {
         set merger_configure_env(ppc) CC_BUILD=${configure.cc}
