1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- #!/bin/ksh
- doas pkg_add cmake gmake ninja sdl2 openal bzip2 jpeg libvpx zmusic
- #application=ZMusic
- #repository=https://github.com/coelckers/ZMusic.git
- #export compile=
- #mkdir -p ~/src
- #cd ~/src || return
- #if [ ! -d $application ]; then
- # git clone $repository
- # cd $application || return
- # export compile=true
- #else
- # cd $application || return
- # #git pull
- # pwd
- # git fetch
- # LOCAL=$(git rev-parse HEAD)
- # REMOTE=$(git rev-parse @{u})
- # if [ ! $LOCAL = $REMOTE ]; then
- # pwd
- # echo "Need to pull"
- # git pull
- # export compile=true
- # fi
- #fi
- #
- #if [ "$compile" = "true" ]; then
- # cd ~/src/$application || return
- # mkdir -pv build
- # cd build || return
- # cmake -DCMAKE_BUILD_TYPE=Release ..
- # cmake --build .
- # doas gmake install
- #fi
- application=gzdoom
- repository=https://github.com/coelckers/gzdoom.git
- export compile=
- mkdir -p ~/src
- cd ~/src || return
- if [ ! -d $application ]; then
- git clone $repository
- cd $application || return
- export compile=true
- else
- cd $application || return
- #git pull
- pwd
- git fetch
- LOCAL=$(git rev-parse HEAD)
- REMOTE=$(git rev-parse @{u})
- if [ ! $LOCAL = $REMOTE ]; then
- pwd
- echo "Need to pull"
- git pull
- export compile=true
- fi
- fi
- if [ "$compile" = "true" ]; then
- cd ~/src/$application || return
- mkdir -p build
- cd build || return
- wget -nc http://zdoom.org/files/fmod/fmodapi44464linux.tar.gz &&
- tar -xvzf fmodapi44464linux.tar.gz -C .
- cmake .. -DNO_FMOD=ON
- gmake
- fi
|