From 9c4fc2819dc133e1dfbe6e964cb309afc59bece7 Mon Sep 17 00:00:00 2001 From: AndresSM Date: Wed, 5 Nov 2014 22:21:26 -0800 Subject: [PATCH] add additional recipes --- libretro-fetch-and-build.sh | 53 +++++++++++++++++++++++++++++++++++++ recipes.win-mingw64-seh | 2 +- 2 files changed, 54 insertions(+), 1 deletion(-) diff --git a/libretro-fetch-and-build.sh b/libretro-fetch-and-build.sh index c0a364fd..62b09121 100644 --- a/libretro-fetch-and-build.sh +++ b/libretro-fetch-and-build.sh @@ -175,6 +175,56 @@ build_libretro_generic_makefile() { } +build_libretro_generic_gl_makefile() { + + + NAME=$1 + DIR=$2 + SUBDIR=$3 + MAKEFILE=$4 + PLATFORM=$5 + ARGS=$6 + + cd $DIR + cd $SUBDIR + + check_opengl + + if [ -z "${NOCLEAN}" ]; + then + echo "cleaning up..." + echo "cleanup command: ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} ${COMPILER} -j${JOBS} clean" + ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} ${COMPILER} -j${JOBS} clean + if [ $? -eq 0 ]; + then + echo success! + else + echo error while cleaning up + fi + fi + + echo "compiling..." + if [ -z ${ARGS} ]; + then + echo "buid command: ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} ${COMPILER} -j${JOBS}" + ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} ${COMPILER} -j${JOBS} + else + echo "buid command: ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} ${COMPILER} -j${JOBS} ${ARGS}" + ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} ${COMPILER} -j${JOBS} ${ARGS} + fi + + if [ $? -eq 0 ]; + then + echo success! + cp ${NAME}_libretro$FORMAT.${FORMAT_EXT} $RARCH_DIST_DIR/${NAME}_libretro$FORMAT.${FORMAT_EXT} + else + echo error while compiling $1 + fi + + reset_compiler_targets + +} + #fetch a project and mark it for building if there have been any changes #sleep 10 @@ -251,6 +301,9 @@ while read line; do echo building core... if [ "${COMMAND}" == "GENERIC" ]; then build_libretro_generic_makefile $NAME $DIR $SUBDIR $MAKEFILE ${FORMAT_COMPILER_TARGET} "${ARGS}" + elif [ "${COMMAND}" == "GL" ]; then + build_libretro_generic_gl_makefile $NAME $DIR $SUBDIR $MAKEFILE ${FORMAT_COMPILER_TARGET} "${ARGS}" + fi else echo core already up-to-date... diff --git a/recipes.win-mingw64-seh b/recipes.win-mingw64-seh index c8960faa..599043e5 100644 --- a/recipes.win-mingw64-seh +++ b/recipes.win-mingw64-seh @@ -2,7 +2,7 @@ fb_alpha libretro-fba https://github.com/libretro/fba-libretro.git project NO GE fba_cores_cps1 libretro-fba https://github.com/libretro/fba-libretro.git project NO GENERIC makefile.libretro svn-current/trunk/fbacores/cps1 fba_cores_cps2 libretro-fba https://github.com/libretro/fba-libretro.git project NO GENERIC makefile.libretro svn-current/trunk/fbacores/cps2 fba_cores_neo libretro-fba https://github.com/libretro/fba-libretro.git project NO GENERIC makefile.libretro svn-current/trunk/fbacores/neogeo -mupen64plus libretro-mupen64plus https://github.com/libretro/mupen64plus-libretro.git project NO GENERIC Makefile . WITH_DYNAREC='x86_64' +mupen64plus libretro-mupen64plus https://github.com/libretro/mupen64plus-libretro.git project YES GL Makefile . WITH_DYNAREC=x86_64 nestopia libretro-nestopia https://github.com/libretro/nestopia.git project NO GENERIC Makefile libretro pcsx_rearmed libretro-pcsx_rearmed https://github.com/libretro/pcsx_rearmed.git project NO GENERIC Makefile.libretro . USE_DYNAREC=0 TEST=1 tgbdual libretro-tgbdual https://github.com/libretro/tgbdual-libretro.git project NO GENERIC Makefile .