diff -u -r ipe_7.0.14/Portfile ipe/Portfile
--- ipe_7.0.14/Portfile	2011-08-03 10:30:23.000000000 +0200
+++ ipe/Portfile	2012-01-18 17:02:12.000000000 +0100
@@ -4,10 +4,9 @@
 PortGroup               qt4 1.0
 
 name                    ipe
-version                 7.0.14
-revision                1
+version                 7.1.2
 categories              graphics
-maintainers             jacobs-university.de:m.thon
+maintainers             jacobs-university.de:m.thon openmaintainer
 description             The Ipe extensible drawing editor
 long_description        \
                         Ipe is a drawing editor for creating figures in PDF or \
@@ -15,29 +14,37 @@
                         figures for inclusion into LaTeX-documents as well as making \
                         multi-page PDF presentations that can be shown on-line with \
                         Acrobat Reader.
+license                 GPL-3
 homepage                http://ipe7.sourceforge.net/
 platforms               darwin
 master_sites            sourceforge:ipe7
 distname                ${name}-${version}-src
 worksrcdir              ${name}-${version}/src
 
-checksums               sha1    a9b744120019248a405caab63e88664258242151 \
-                        rmd160  4f819bd7740e875170e66c4fa4431aad6cb4c835
+checksums               sha1    7c55d2b72bb256dc99b18145644ae27edc9a056c \
+                        rmd160  7ddf4f624be5d4c591096e85165cc6c5271e548b
 
 depends_lib-append      port:freetype \
                         path:lib/pkgconfig/cairo.pc:cairo \
                         port:lua \
                         port:zlib
 
-patchfiles              patch-common.mak.diff \
-                        patch-config.mak.diff \
-                        patch-ipe-lua-prefs.lua.diff
 use_configure           no
 
 build.env               CXXFLAGS="${configure.cxx_archflags}" \
                         LDFLAGS="${configure.ld_archflags}"
 
 build.args              IPEPREFIX=${prefix} \
+                        ZLIB_CFLAGS="`pkg-config --cflags zlib`" \
+                        ZLIB_LIBS="`pkg-config --libs zlib`" \
+                        FREETYPE_CFLAGS="`pkg-config --cflags freetype2`" \
+                        FREETYPE_LIBS="`pkg-config --libs freetype2`" \
+                        CAIRO_CFLAGS="`pkg-config --cflags cairo`" \
+                        CAIRO_LIBS="`pkg-config --libs cairo`" \
+                        LUA_CFLAGS="`pkg-config --cflags lua`" \
+                        LUA_LIBS="`pkg-config --libs lua`" \
+                        QT_CFLAGS="`pkg-config --cflags QtGui QtCore`" \
+                        QT_LIBS="`pkg-config --libs QtGui QtCore`" \
                         MOC=${qt_moc_cmd} \
                         CXX=${configure.cxx}
 
@@ -52,8 +59,8 @@
             ${destroot}${applications_dir}/${app}.app/Contents/Resources
         xinstall -m 644 ${filespath}/Info.plist.in ${destroot}${applications_dir}/${app}.app/Contents/Info.plist
         reinplace "s|@VERSION@|${version}|g" ${destroot}${applications_dir}/${app}.app/Contents/Info.plist
-        xinstall -m 755 ${filespath}/${name}.in ${destroot}${applications_dir}/${app}.app/Contents/MacOS/${app}
-        reinplace "s|@PREFIX@|${prefix}|g" ${destroot}${applications_dir}/${app}.app/Contents/MacOS/${app}
-        system "cd ${worksrcpath} && ${prefix}/bin/makeicns -in ${worksrcpath}/ipe/icons/ipe.png -out ${destroot}${applications_dir}/${app}.app/Contents/Resources/${name}.icns"
+        reinplace "s|@PREFIX@|${prefix}|g" ${destroot}${applications_dir}/${app}.app/Contents/Info.plist
+        system "ln -s ${prefix}/bin/ipe ${destroot}${applications_dir}/${app}.app/Contents/MacOS/${app}"
+        system "${prefix}/bin/makeicns -in ${worksrcpath}/ipe/icons/ipe.png -out ${destroot}${applications_dir}/${app}.app/Contents/Resources/${name}.icns"
     }
 }
diff -u -r ipe_7.0.14/files/Info.plist.in ipe/files/Info.plist.in
--- ipe_7.0.14/files/Info.plist.in	2011-08-03 10:30:23.000000000 +0200
+++ ipe/files/Info.plist.in	2011-11-11 18:30:16.000000000 +0100
@@ -2,6 +2,63 @@
 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
 <plist version="1.0">
 <dict>
+	<key>CFBundleDocumentTypes</key>
+	<array>
+		<dict>
+			<key>CFBundleTypeName</key>
+			<string>Ipe figure</string>
+			<key>CFBundleTypeIconFile</key>
+			<string>ipe.icns</string>
+			<key>LSHandlerRank</key>
+			<string>Owner</string>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+			<key>CFBundleTypeExtensions</key>
+			<array>
+				<string>ipe</string>
+				<string>IPE</string>
+			</array>
+		</dict>
+		<dict>
+			<key>CFBundleTypeName</key>
+			<string>Postscript document</string>
+			<key>CFBundleTypeIconFile</key>
+			<string>ipe.icns</string>
+			<key>LSHandlerRank</key>
+			<string>Altpoernate</string>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+			<key>CFBundleTypeExtensions</key>
+			<array>
+				<string>eps</string>
+				<string>EPS</string>
+			</array>
+		</dict>
+		<dict>
+			<key>CFBundleTypeName</key>
+			<string>PDF document</string>
+			<key>CFBundleTypeIconFile</key>
+			<string>ipe.icns</string>
+			<key>LSHandlerRank</key>
+			<string>Alternate</string>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+			<key>CFBundleTypeExtensions</key>
+			<array>
+				<string>pdf</string>
+				<string>PDF</string>
+			</array>
+			<key>CFBundleTypeMIMETypes</key>
+			<array>
+				<string>application/pdf</string>
+			</array>
+		</dict>
+	</array>
+	<key>LSEnvironment</key>
+	<dict>
+		<key>PATH</key>
+		<string>/usr/texbin:@PREFIX@/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin</string>
+	</dict>
 	<key>CFBundleDevelopmentRegion</key>
 	<string>English</string>
 	<key>CFBundleExecutable</key>
@@ -19,8 +76,10 @@
 	<key>CFBundleShortVersionString</key>
 	<string>@VERSION@</string>
 	<key>CFBundleSignature</key>
-	<string>????</string>
+	<string>Ipe7</string>
 	<key>CFBundleVersion</key>
 	<string>@VERSION@</string>
+	<key>NSHumanReadableCopyright</key>
+	<string>Copyright (C) 1993-2011  Otfried Cheong</string>
 </dict>
 </plist>
Only in ipe_7.0.14/files: ipe.in
Only in ipe_7.0.14/files: patch-common.mak.diff
Only in ipe_7.0.14/files: patch-config.mak.diff
Only in ipe_7.0.14/files: patch-ipe-lua-prefs.lua.diff
