Ticket #30540: Portfile-ipe.diff
File Portfile-ipe.diff, 3.8 KB (added by maehne (Torsten Maehne), 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 \ … … 15 14 figures for inclusion into LaTeX-documents as well as making \ 16 15 multi-page PDF presentations that can be shown on-line with \ 17 16 Acrobat Reader. 17 license GPL-3 18 18 homepage http://ipe7.sourceforge.net/ 19 19 platforms darwin 20 20 master_sites sourceforge:ipe7 21 21 distname ${name}-${version}-src 22 22 worksrcdir ${name}-${version}/src 23 23 24 checksums sha1 a 9b744120019248a405caab63e88664258242151\25 rmd160 4f819bd7740e875170e66c4fa4431aad6cb4c83524 checksums sha1 a4e85a50c0488721d68eb10bf3f8c5b3c99d4689 \ 25 rmd160 0dc1cd8204084751f979b941acb3769b9ea52fa5 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-uilua.cpp.diff 33 35 34 use_configure no 36 35 37 36 build.env CXXFLAGS="${configure.cxx_archflags}" \ 38 37 LDFLAGS="${configure.ld_archflags}" 39 38 40 39 build.args IPEPREFIX=${prefix} \ 40 ZLIB_CFLAGS="`pkg-config --cflags zlib`" \ 41 ZLIB_LIBS="`pkg-config --libs zlib`" \ 42 FREETYPE_CFLAGS="`pkg-config --cflags freetype2`" \ 43 FREETYPE_LIBS="`pkg-config --libs freetype2`" \ 44 CAIRO_CFLAGS="`pkg-config --cflags cairo`" \ 45 CAIRO_LIBS="`pkg-config --libs cairo`" \ 46 LUA_CFLAGS="`pkg-config --cflags lua`" \ 47 LUA_LIBS="`pkg-config --libs lua`" \ 48 QT_CFLAGS="`pkg-config --cflags QtGui QtCore`" \ 49 QT_LIBS="`pkg-config --libs QtGui QtCore`" \ 41 50 MOC=${qt_moc_cmd} \ 42 51 CXX=${configure.cxx} 43 52 … … 52 61 ${destroot}${applications_dir}/${app}.app/Contents/Resources 53 62 xinstall -m 644 ${filespath}/Info.plist.in ${destroot}${applications_dir}/${app}.app/Contents/Info.plist 54 63 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"64 reinplace "s|@PREFIX@|${prefix}|g" ${destroot}${applications_dir}/${app}.app/Contents/Info.plist 65 system "ln -s ${prefix}/bin/ipe ${destroot}${applications_dir}/${app}.app/Contents/MacOS/${app}" 66 system "${prefix}/bin/makeicns -in ${worksrcpath}/ipe/icons/ipe.png -out ${destroot}${applications_dir}/${app}.app/Contents/Resources/${name}.icns" 58 67 } 59 68 }