54 | | LDFLAGS="[get_canonical_archflags ld]" \ |
55 | | PKG_CONFIG_PATH=\$PKG_CONFIG_PATH:${qt_pkg_config_dir} |
56 | | |
57 | | build.args IPEPREFIX=${prefix} \ |
58 | | ZLIB_CFLAGS="`pkg-config --cflags zlib`" \ |
59 | | ZLIB_LIBS="`pkg-config --libs zlib`" \ |
60 | | JPEG_LIBS="-ljpeg" \ |
61 | | PNG_CFLAGS="`pkg-config --cflags libpng`" \ |
62 | | PNG_LIBS="`pkg-config --libs libpng`" \ |
63 | | FREETYPE_CFLAGS="`pkg-config --cflags freetype2`" \ |
64 | | FREETYPE_LIBS="`pkg-config --libs freetype2`" \ |
65 | | CAIRO_CFLAGS="`pkg-config --cflags cairo`" \ |
66 | | CAIRO_LIBS="`pkg-config --libs cairo`" \ |
67 | | LUA_CFLAGS="`pkg-config --cflags lua`" \ |
68 | | LUA_LIBS="`pkg-config --libs lua`" \ |
69 | | QT_CFLAGS="`pkg-config --cflags QtGui QtCore`" \ |
70 | | QT_LIBS="`pkg-config --libs QtGui QtCore`" \ |
71 | | MOC=${qt_moc_cmd} \ |
72 | | CXX=${configure.cxx} |
| 60 | LDFLAGS="[get_canonical_archflags ld]" |
| 61 | build.args-append IPEPREFIX=${prefix} \ |
| 62 | CXX=${configure.cxx} \ |
| 63 | LUA_PACKAGE="lua" \ |
| 64 | JPEG_LIBS="-framework ApplicationServices" \ |
| 65 | IPECONFIGMAK="config.mak" |
| 66 | if {[variant_isset qt4] || [variant_isset qt5]} { |
| 67 | build.env-append PKG_CONFIG_PATH=\$PKG_CONFIG_PATH:${qt_pkg_config_dir} |
| 68 | build.args-append IPEUI="QT" \ |
| 69 | MOC=${qt_moc_cmd} |
| 70 | } else { |
| 71 | build.args-append IPEBUNDLE=1 |
| 72 | } |
82 | | set app Ipe |
83 | | xinstall -d ${destroot}${applications_dir}/${app}.app/Contents/MacOS \ |
84 | | ${destroot}${applications_dir}/${app}.app/Contents/Resources |
85 | | xinstall -m 644 ${filespath}/Info.plist.in ${destroot}${applications_dir}/${app}.app/Contents/Info.plist |
86 | | reinplace "s|@VERSION@|${version}|g" ${destroot}${applications_dir}/${app}.app/Contents/Info.plist |
87 | | reinplace "s|@PREFIX@|${prefix}|g" ${destroot}${applications_dir}/${app}.app/Contents/Info.plist |
88 | | ln -s ${prefix}/bin/ipe ${destroot}${applications_dir}/${app}.app/Contents/MacOS/${app} |
89 | | system "${prefix}/bin/makeicns -in ${worksrcpath}/ipe/icons/ipe.png -out ${destroot}${applications_dir}/${app}.app/Contents/Resources/${name}.icns" |
| 88 | if {[variant_isset qt4] || [variant_isset qt5]} { |
| 89 | set app Ipe |
| 90 | xinstall -d ${destroot}${applications_dir}/${app}.app/Contents/MacOS \ |
| 91 | ${destroot}${applications_dir}/${app}.app/Contents/Resources |
| 92 | xinstall -m 644 ${filespath}/Info.plist.in ${destroot}${applications_dir}/${app}.app/Contents/Info.plist |
| 93 | reinplace "s|@VERSION@|${version}|g" ${destroot}${applications_dir}/${app}.app/Contents/Info.plist |
| 94 | reinplace "s|@PREFIX@|${prefix}|g" ${destroot}${applications_dir}/${app}.app/Contents/Info.plist |
| 95 | ln -s ${prefix}/bin/ipe ${destroot}${applications_dir}/${app}.app/Contents/MacOS/${app} |
| 96 | xinstall -m 644 ${worksrcpath}/ipe/ipe.icns ${destroot}${applications_dir}/${app}.app/Contents/Resources/ipe.icns |
| 97 | } else { |
| 98 | copy ${worksrcpath}/../build/Ipe.app ${destroot}${applications_dir}/Ipe.app |
| 99 | reinplace "s|/usr/local/bin|/usr/local/bin:${prefix}/bin|g" ${destroot}${applications_dir}/Ipe.app/Contents/Info.plist |
| 100 | xinstall -m 755 ${filespath}/ipe.in ${destroot}${prefix}/bin/ipe |
| 101 | reinplace "s|@APPLICATIONSDIR@|${applications_dir}|g" ${destroot}${prefix}/bin/ipe |
| 102 | } |