Ticket #31153: Portfile-ipe.diff
File Portfile-ipe.diff, 3.4 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.1 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 a 9b744120019248a405caab63e88664258242151\25 rmd160 4f819bd7740e875170e66c4fa4431aad6cb4c83523 checksums sha1 a4e85a50c0488721d68eb10bf3f8c5b3c99d4689 \ 24 rmd160 0dc1cd8204084751f979b941acb3769b9ea52fa5 26 25 27 26 depends_lib-append port:freetype \ 28 27 path:lib/pkgconfig/cairo.pc:cairo \ 29 28 port:lua \ 30 29 port:zlib 31 30 32 patchfiles patch-common.mak.diff \ 33 patch-config.mak.diff \ 34 patch-ipe-lua-prefs.lua.diff 31 patchfiles patch-ipe-uilua.cpp.diff 32 35 33 use_configure no 36 34 37 35 build.env CXXFLAGS="${configure.cxx_archflags}" \ 38 36 LDFLAGS="${configure.ld_archflags}" 39 37 40 38 build.args IPEPREFIX=${prefix} \ 39 ZLIB_CFLAGS="`pkg-config --cflags zlib`" \ 40 ZLIB_LIBS="`pkg-config --libs zlib`" \ 41 FREETYPE_CFLAGS="`pkg-config --cflags freetype2`" \ 42 FREETYPE_LIBS="`pkg-config --libs freetype2`" \ 43 CAIRO_CFLAGS="`pkg-config --cflags cairo`" \ 44 CAIRO_LIBS="`pkg-config --libs cairo`" \ 45 LUA_CFLAGS="`pkg-config --cflags lua`" \ 46 LUA_LIBS="`pkg-config --libs lua`" \ 47 QT_CFLAGS="`pkg-config --cflags QtGui QtCore`" \ 48 QT_LIBS="`pkg-config --libs QtGui QtCore`" \ 41 49 MOC=${qt_moc_cmd} \ 42 50 CXX=${configure.cxx} 43 51 … … 52 60 ${destroot}${applications_dir}/${app}.app/Contents/Resources 53 61 xinstall -m 644 ${filespath}/Info.plist.in ${destroot}${applications_dir}/${app}.app/Contents/Info.plist 54 62 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"63 reinplace "s|@PREFIX@|${prefix}|g" ${destroot}${applications_dir}/${app}.app/Contents/Info.plist 64 system "ln -s ${prefix}/bin/ipe ${destroot}${applications_dir}/${app}.app/Contents/MacOS/${app}" 65 system "${prefix}/bin/makeicns -in ${worksrcpath}/ipe/icons/ipe.png -out ${destroot}${applications_dir}/${app}.app/Contents/Resources/${name}.icns" 58 66 } 59 67 }