82 | | patchfiles patch-configure.diff |
83 | | post-patch { |
84 | | reinplace "s/echo -n/printf/g" ${worksrcpath}/configure |
85 | | |
86 | | # ensure correct compilers and compiler options are used |
87 | | reinplace "/^TMAKE_CC\[\[:space:\]\]/s%=.*%= ${configure.cc} ${configure.cppflags} [get_canonical_archflags cc]%" ${tmake_conf} |
88 | | reinplace "/^TMAKE_CXX\[\[:space:\]\]/s%=.*%= ${configure.cxx} ${configure.cppflags} ${cxx_stdlibflags} [get_canonical_archflags cxx]%" ${tmake_conf} |
89 | | reinplace "/^TMAKE_LINK\[\[:space:\]\]/s%=.*%= ${configure.cxx} ${configure.ldflags} ${cxx_stdlibflags} [get_canonical_archflags ld]%" ${tmake_conf} |
90 | | reinplace "/^TMAKE_LINK_SHLIB\[\[:space:\]\]/s%=.*%= ${configure.cxx} ${cxx_stdlibflags} [get_canonical_archflags ld]%" ${tmake_conf} |
91 | | reinplace "s|-mmacosx-version-min=10.5||g" ${tmake_conf} |
92 | | |
93 | | # make sure LIBICONV_PLUG is undefined (this flag is necessary for the |
94 | | # system-installed libiconv, but breaks linking with the MacPorts installed |
95 | | # one) |
96 | | reinplace "s|#define LIBICONV_PLUG||g" ${worksrcpath}/src/portable_c.c |
97 | | |
98 | | # may not be strictly necessary, but remove trailing '/' from DESTDIR |
99 | | reinplace "s|\$(DESTDIR)/|\$(DESTDIR)|g" ${worksrcpath}/Makefile.in |
100 | | |
101 | | # link with doxygen's libmd5, avoiding a libwww port conflict |
102 | | reinplace "s|-lmd5|../lib/libmd5.a|" ${worksrcpath}/src/doxygen.pro.in |
103 | | |
104 | | # do not require GNU install; BSD install suffices |
105 | | reinplace "s,-n \"`\$j/\$i --version 2>/dev/null \| grep utils`\",-x \"\$j/\$i\",g" ${worksrcpath}/configure |
106 | | |
107 | | # remove flag that is not defined for gcc and only suppresses some warnings for clang |
108 | | if {[string match *gcc* ${configure.compiler}]} { |
109 | | reinplace "s|-Wno-invalid-source-encoding||g" ${tmake_conf} |
110 | | } |
111 | | } |
112 | | |
113 | | build.type gnu |
114 | | |
115 | | configure.universal_args-delete \ |
116 | | --disable-dependency-tracking |
117 | | configure.pre_args --prefix ${prefix} |
118 | | configure.args --make ${build.cmd} \ |
119 | | --python python2.7 |
120 | | |
121 | | build.target all |
122 | | |
123 | | destroot.target install |
153 | | configure.args-append --with-doxywizard |
154 | | |
155 | | # on Macs, qmake builds .app directories; when installing, copy |
156 | | # this directory to the correct location (via the reinplace below). |
157 | | patchfiles-append patch-addon_doxywizard_Makefile.in.diff |
158 | | |
159 | | post-patch { |
160 | | # allow for universal building, if desired |
161 | | reinplace "/CONFIG/s@x86@${qt_arch_types}@" \ |
162 | | ${worksrcpath}/addon/doxywizard/doxywizard.pro.in |
163 | | |
164 | | # give doxywizard the more mac-like name of DoxyWizard |
165 | | reinplace "/^TARGET\[\[:space:\]\]/s%=.*%= DoxyWizard%" \ |
166 | | ${worksrcpath}/addon/doxywizard/doxywizard.pro.in |
167 | | |
168 | | # fix final install location |
169 | | reinplace "s|__APPLICATIONS_DIR__|${applications_dir}|" \ |
170 | | ${worksrcpath}/addon/doxywizard/Makefile.in |
171 | | |
172 | | # use the correct QMAKE command; the other should work, but |
173 | | # this one is guaranteed to. |
174 | | reinplace "s|QMAKE=qmake|QMAKE=${qt_qmake_cmd}|g" \ |
175 | | ${worksrcpath}/addon/doxywizard/Makefile.in |
176 | | } |
177 | | |
178 | | post-destroot { |
179 | | # allow doxywizard to be called from the command line |
180 | | ln -s ${applications_dir}/DoxyWizard.app/Contents/MacOS/DoxyWizard ${destroot}${prefix}/bin/doxywizard |
181 | | } |
182 | | } |
183 | | |
184 | | platform darwin { |
185 | | # Specify the platform explicitly to avoid a universal build. |
186 | | global tmake_conf |
187 | | |
188 | | set tmake_conf ${worksrcpath}/tmake/lib/macosx-c++/tmake.conf |
189 | | configure.args-append --platform macosx-c++ |
| 110 | configure.args-append -Dbuild_wizard=YES |