File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -113,13 +113,19 @@ else
113113 configure_args+=" -DWITH_TEXTUREPACKER=/usr/bin/TexturePacker"
114114fi
115115
116- pre_configure () {
116+ post_patch () {
117117 if [ "$CROSS_BUILD" ]; then
118- find -type f | \
119- grep "configure\.ac\|Makefile\|cmake\|config\.site" | \
120- xargs sed -i -e "s;-isystem;-I;g"
118+ find -type f | \
119+ grep "configure\.ac\|Makefile\|cmake\|config\.site" | \
120+ xargs sed -i -e "s;-isystem;-I;g"
121+ vsed -i -e "s/--disable-shared/& --host=${XBPS_CROSS_TRIPLET}/" cmake/modules/FindUdfread.cmake
122+ vsed -i -e "s/--prefix/--host=${XBPS_CROSS_TRIPLET} &/" cmake/modules/FindFstrcmp.cmake
123+ # vsed -i -e "s/BUILD_COMMAND make/& CC=${XBPS_CROSS_TRIPLET}-cc LD=${XBPS_CROSS_TRIPLET}-cc/" \
124+ # cmake/modules/FindFstrcmp.cmake
121125 fi
126+ }
122127
128+ pre_configure() {
123129 . /etc/profile.d/jdk.sh
124130}
125131
You can’t perform that action at this time.
0 commit comments