2009-02-06 19:52:59 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
curdir=`pwd`
|
|
|
|
|
|
|
|
echo ----------------------
|
|
|
|
echo Building ZeroGS OpenGL
|
|
|
|
echo ----------------------
|
|
|
|
|
2009-02-18 12:51:36 +00:00
|
|
|
if test "${ZEROGSOPTIONS+set}" != set ; then
|
|
|
|
export ZEROGSOPTIONS="--enable-sse2"
|
|
|
|
fi
|
|
|
|
|
2009-02-06 19:52:59 +00:00
|
|
|
cd ${curdir}/opengl
|
|
|
|
|
|
|
|
if [ $# -gt 0 ] && [ $1 = "all" ]
|
|
|
|
then
|
|
|
|
|
|
|
|
aclocal
|
|
|
|
automake
|
|
|
|
autoconf
|
|
|
|
chmod +x configure
|
2009-02-18 12:51:36 +00:00
|
|
|
./configure ${ZEROGSOPTIONS} --prefix=${PCSX2PLUGINS}
|
|
|
|
|
2009-02-06 19:52:59 +00:00
|
|
|
make clean
|
|
|
|
make install
|
|
|
|
|
|
|
|
else
|
|
|
|
make $@
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ $? -ne 0 ]
|
|
|
|
then
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
#cp libZeroGSogl*.so* ${PCSX2PLUGINS}/
|
|
|
|
cp Win32/ps2hw.dat ${PCSX2PLUGINS}/
|