File tree Expand file tree Collapse file tree 1 file changed +18
-8
lines changed Expand file tree Collapse file tree 1 file changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,16 @@ CFLAGS='-O3 -fPIC'
8484CXXFLAGS=' -O3 -fPIC'
8585LDFLAGS=' -O3 -fPIC'
8686
87+ case " $( uname -s) " in
88+ ' FreeBSD' )
89+ # The builtin make isn't compatible enough.
90+ MAKE=' gmake'
91+ ;;
92+ * )
93+ MAKE=' make'
94+ ;;
95+ esac
96+
8797log () {
8898 level=" ${1} " ; shift
8999 printf ' %s: %s\n' " ${level} " " ${@ } " >&2
@@ -202,8 +212,8 @@ configure_build() {
202212 --libdir=" ${PREFIX} /lib" \
203213 " ${configure_args[@]} "
204214
205- make
206- make install
215+ " ${MAKE} "
216+ " ${MAKE} " install
207217}
208218
209219get_compiler_name () {
@@ -309,8 +319,8 @@ build_zlib() {
309319
310320 case " ${PLATFORM} " in
311321 windows-* -* )
312- LOC=" ${CFLAGS} " make -f win32/Makefile.gcc PREFIX=" ${HOST} -"
313- make -f win32/Makefile.gcc install BINARY_PATH=" ${PREFIX} /bin" LIBRARY_PATH=" ${PREFIX} /lib" INCLUDE_PATH=" ${PREFIX} /include" SHARED_MODE=1
322+ LOC=" ${CFLAGS} " " ${MAKE} " -f win32/Makefile.gcc PREFIX=" ${HOST} -"
323+ " ${MAKE} " -f win32/Makefile.gcc install BINARY_PATH=" ${PREFIX} /bin" LIBRARY_PATH=" ${PREFIX} /lib" INCLUDE_PATH=" ${PREFIX} /include" SHARED_MODE=1
314324 ;;
315325 * )
316326 CFLAGS=" ${CFLAGS} -DZLIB_CONST" \
@@ -537,12 +547,12 @@ build_glew() {
537547 # manually re-add the required flags there.
538548 case " ${PLATFORM} " in
539549 macos-* -* )
540- make " ${glew_env[@]} " " ${glew_options[@]} "
541- make install " ${glew_env[@]} " " ${glew_options[@]} "
550+ " ${MAKE} " " ${glew_env[@]} " " ${glew_options[@]} "
551+ " ${MAKE} " install " ${glew_env[@]} " " ${glew_options[@]} "
542552 ;;
543553 * )
544- env " ${glew_env[@]} " make " ${glew_options[@]} "
545- env " ${glew_env[@]} " make install " ${glew_options[@]} "
554+ env " ${glew_env[@]} " " ${MAKE} " " ${glew_options[@]} "
555+ env " ${glew_env[@]} " " ${MAKE} " install " ${glew_options[@]} "
546556 ;;
547557 esac
548558
You can’t perform that action at this time.
0 commit comments