Ticket #31028: Portfile-ipe.diff
File Portfile-ipe.diff, 3.9 KB (added by m.thon@…, 13 years ago) |
---|
-
Portfile
old new 4 4 PortGroup qt4 1.0 5 5 6 6 name ipe 7 version 7.0.14 8 revision 1 7 version 7.1.0 9 8 categories graphics 10 maintainers jacobs-university.de:m.thon 9 maintainers jacobs-university.de:m.thon openmaintainer 11 10 description The Ipe extensible drawing editor 12 11 long_description \ 13 12 Ipe is a drawing editor for creating figures in PDF or \ … … 21 20 distname ${name}-${version}-src 22 21 worksrcdir ${name}-${version}/src 23 22 24 checksums sha1 a9b744120019248a405caab63e88664258242151 \ 25 rmd160 4f819bd7740e875170e66c4fa4431aad6cb4c835 23 checksums md5 1365ca48621dbffcc9465a2977cf4b27 \ 24 sha1 76800723c02acae3a3922439e64058e92d235970 \ 25 rmd160 cf50ef5e8fc62e7dd0099a804e182ba9a13e8690 26 26 27 27 depends_lib-append port:freetype \ 28 28 path:lib/pkgconfig/cairo.pc:cairo \ 29 29 port:lua \ 30 30 port:zlib 31 31 32 patchfiles patch- common.mak.diff \33 patch-config.mak.diff \ 34 patch-ipe-lua-prefs.lua.diff 32 patchfiles patch-ipe-lua-main.lua.diff \ 33 patch-Makefile.diff 34 35 35 use_configure no 36 36 37 37 build.env CXXFLAGS="${configure.cxx_archflags}" \ 38 38 LDFLAGS="${configure.ld_archflags}" 39 39 40 40 build.args IPEPREFIX=${prefix} \ 41 ZLIB_CFLAGS="`pkg-config --cflags zlib`" \ 42 ZLIB_LIBS="`pkg-config --libs zlib`" \ 43 FREETYPE_CFLAGS="`pkg-config --cflags freetype2`" \ 44 FREETYPE_LIBS="`pkg-config --libs freetype2`" \ 45 CAIRO_CFLAGS="`pkg-config --cflags cairo`" \ 46 CAIRO_LIBS="`pkg-config --libs cairo`" \ 47 LUA_CFLAGS="`pkg-config --cflags lua`" \ 48 LUA_LIBS="`pkg-config --libs lua`" \ 49 QT_CFLAGS="`pkg-config --cflags QtGui QtCore`" \ 50 QT_LIBS="`pkg-config --libs QtGui QtCore`" \ 41 51 MOC=${qt_moc_cmd} \ 42 52 CXX=${configure.cxx} 43 53 … … 52 62 ${destroot}${applications_dir}/${app}.app/Contents/Resources 53 63 xinstall -m 644 ${filespath}/Info.plist.in ${destroot}${applications_dir}/${app}.app/Contents/Info.plist 54 64 reinplace "s|@VERSION@|${version}|g" ${destroot}${applications_dir}/${app}.app/Contents/Info.plist 55 xinstall -m 755 ${filespath}/${name}.in ${destroot}${applications_dir}/${app}.app/Contents/MacOS/${app} 56 reinplace "s|@PREFIX@|${prefix}|g" ${destroot}${applications_dir}/${app}.app/Contents/MacOS/${app} 57 system "cd ${worksrcpath} && ${prefix}/bin/makeicns -in ${worksrcpath}/ipe/icons/ipe.png -out ${destroot}${applications_dir}/${app}.app/Contents/Resources/${name}.icns" 65 reinplace "s|@PREFIX@|${prefix}|g" ${destroot}${applications_dir}/${app}.app/Contents/Info.plist 66 system "ln -s ${prefix}/bin/ipe ${destroot}${applications_dir}/${app}.app/Contents/MacOS/${app}" 67 system "${prefix}/bin/makeicns -in ${worksrcpath}/ipe/icons/ipe.png -out ${destroot}${applications_dir}/${app}.app/Contents/Resources/${name}.icns" 68 system "${prefix}/bin/makeicns -in ${filespath}/ipe.ico -out ${destroot}${applications_dir}/${app}.app/Contents/Resources/ipefig.icns" 69 system "${prefix}/bin/makeicns -in ${filespath}/ipeeps.ico -out ${destroot}${applications_dir}/${app}.app/Contents/Resources/ipeeps.icns" 70 system "${prefix}/bin/makeicns -in ${filespath}/ipexml.ico -out ${destroot}${applications_dir}/${app}.app/Contents/Resources/ipexml.icns" 58 71 } 59 72 }