X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=configure;h=121b705ce75f1e7b3d32dddc7bd31c449256efd5;hb=016c6e93f6db684211f5c8b05433cb500715ba50;hp=59cc1db988a3b5d13575f52b6f11d2c9293940e4;hpb=ebefdeefeeefd0dc1ab0e34ae63ceb164abab9f4;p=pcsx_rearmed.git diff --git a/configure b/configure index 59cc1db9..121b705c 100755 --- a/configure +++ b/configure @@ -39,7 +39,7 @@ check_define_val() platform_list="generic pandora maemo caanoo libretro" platform="generic" -builtin_gpu_list="peops unai neon" +builtin_gpu_list="neon peops unai" builtin_gpu="" sound_driver_list="oss alsa pulseaudio sdl libretro" sound_drivers="" @@ -66,15 +66,27 @@ optimize_cortexa8="no" optimize_arm926ej="no" # hardcoded stuff -CC="${CC-${CROSS_COMPILE}gcc}" -CXX="${CXX-${CROSS_COMPILE}g++}" +if [ "${OSTYPE}" = "FreeBSD" ]; then + CC="clang" + CXX="clang++" + CFLAGS="-I/usr/local/include -L/usr/local/lib" + MAKE=gmake +else + CC="${CC-${CROSS_COMPILE}gcc}" + CXX="${CXX-${CROSS_COMPILE}g++}" +fi AS="${AS-${CROSS_COMPILE}as}" AR="${AS-${CROSS_COMPILE}ar}" MAIN_LDLIBS="$LDLIBS -ldl -lm -lpthread" config_mak="config.mak" -SYSROOT="$(${CC} --print-sysroot)" -[ "x${SDL_CONFIG}" = "x" ] && SDL_CONFIG="${SYSROOT}/usr/bin/sdl-config" +if [ "${OSTYPE}" = "FreeBSD" ]; then + SYSROOT="$sysroot" + [ "x${SDL_CONFIG}" = "x" ] && SDL_CONFIG="${SYSROOT}/usr/local/bin/sdl-config" +else + SYSROOT="$(${CC} --print-sysroot)" + [ "x${SDL_CONFIG}" = "x" ] && SDL_CONFIG="${SYSROOT}/usr/bin/sdl-config" +fi fail() {