Ticket #47280: Portfile-ipe.diff
File Portfile-ipe.diff, 3.0 KB (added by m.thon@…, 10 years ago) |
---|
-
Portfile
old new 5 5 PortGroup qt4 1.0 6 6 7 7 name ipe 8 version 7.1. 48 version 7.1.7 9 9 set branch [join [lrange [split ${version} .] 0 1] .] 10 10 categories graphics 11 maintainers jacobs-university.de:m.thon openmaintainer11 maintainers gmail.com:m7.thon openmaintainer 12 12 description The Ipe extensible drawing editor 13 13 long_description \ 14 14 Ipe is a drawing editor for creating figures in PDF or \ … … 23 23 distname ${name}-${version}-src 24 24 worksrcdir ${name}-${version}/src 25 25 26 checksums sha1 48a5aebd6e54a3832e4841b12ed5dd8bb6ec8ec6\27 rmd160 ab90157ae53a72b1a04bddb5f62aa645bdc9b20b26 checksums sha1 ace0628f9e8a1d752f4a1837ac705e0457498a00 \ 27 rmd160 e77099d2d24d195d4ef541311b6114dc38580dc8 28 28 29 29 30 30 depends_lib-append port:freetype \ 31 31 path:lib/pkgconfig/cairo.pc:cairo \ 32 32 path:lib/pkgconfig/lua.pc:lua \ 33 33 port:lua \ 34 path:lib/libjpeg.dylib:jpeg \ 35 port:libpng \ 34 36 port:zlib 35 37 36 patchfiles ipe-cstdlib.patch 38 patchfiles patch-ipelib-ipebitmap.cpp.diff \ 39 patch-ipelets-qvoronoi-qvoronoi.cpp.diff \ 40 patch-ipelua-ipeluaipelet.cpp.diff 37 41 38 42 use_configure no 39 43 40 44 variant universal {} 41 45 46 variant qvoronoi description {Add qvoronoi ipelet} { 47 depends_lib-append port:qhull 48 build.post_args subdirs="ipelib ipelets/lua ipelets/qvoronoi ipetoipe ipe6upgrade \ 49 ipeextract ipescript ipecairo iperender ipecanvas ipeview ipelua ipeui ipe" \ 50 QHULL_CFLAGS=-I${prefix}/include/qhull 51 destroot.post_args subdirs="ipelib ipelets/lua ipelets/qvoronoi ipetoipe ipe6upgrade \ 52 ipeextract ipescript ipecairo iperender ipecanvas ipeview ipelua ipeui ipe" 53 } 54 55 default_variants +qvoronoi 56 42 57 pre-build { 43 58 set lua_pc [lindex [split [glob ${prefix}/lib/pkgconfig/lua*] "/"] end] 44 59 set lua_version [join [lrange [split ${lua_pc} "."] 0 end-1] "."] … … 48 63 build.args IPEPREFIX=${prefix} \ 49 64 ZLIB_CFLAGS="`pkg-config --cflags zlib`" \ 50 65 ZLIB_LIBS="`pkg-config --libs zlib`" \ 66 JPEG_LIBS="-ljpeg" \ 67 PNG_CFLAGS="`pkg-config --cflags libpng`" \ 68 PNG_LIBS="`pkg-config --libs libpng`" \ 51 69 FREETYPE_CFLAGS="`pkg-config --cflags freetype2`" \ 52 70 FREETYPE_LIBS="`pkg-config --libs freetype2`" \ 53 71 CAIRO_CFLAGS="`pkg-config --cflags cairo`" \