mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 22:02:44 +00:00 
			
		
		
		
	 b2eaed43e9
			
		
	
	
		b2eaed43e9
		
	
	
	
	
		
			
			Now that ports can find our OpenGL headers and shared library, remove all configuration and patches that was previously needed to make ports compile with LibGL.
		
			
				
	
	
		
			47 lines
		
	
	
	
		
			1.5 KiB
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
	
		
			1.5 KiB
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
| #!/usr/bin/env -S bash ../.port_include.sh
 | |
| port='scummvm'
 | |
| useconfigure='true'
 | |
| version='2.8.0'
 | |
| files=(
 | |
|     "https://downloads.scummvm.org/frs/scummvm/${version}/scummvm-${version}.tar.xz#d6e9fbee06a924706635dea225dfd560ff6770f35aa99d59570a3eb883795a72"
 | |
| )
 | |
| depends=(
 | |
|     'freetype'
 | |
|     'libiconv'
 | |
|     'libjpeg'
 | |
|     'libmad'
 | |
|     'libmpeg2'
 | |
|     'libpng'
 | |
|     'libtheora'
 | |
|     'SDL2'
 | |
| )
 | |
| configopts=(
 | |
|     '--enable-engine=monkey4'
 | |
|     '--enable-release'
 | |
|     "--with-sdl-prefix=${SERENITY_INSTALL_ROOT}/usr/local"
 | |
| )
 | |
| launcher_name='ScummVM'
 | |
| launcher_category='&Games'
 | |
| launcher_command='/usr/local/bin/scummvm'
 | |
| icon_file='icons/scummvm.ico'
 | |
| 
 | |
| export CPPFLAGS='-fvisibility=hidden'
 | |
| export FREETYPE2_CFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/local/include/freetype2"
 | |
| export SDL_CFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/local/include/SDL2"
 | |
| 
 | |
| function post_install() {
 | |
|     icons_build_dir="${PORT_BUILD_DIR}/scummvm-icons"
 | |
|     if [ ! -d "${icons_build_dir}" ]; then
 | |
|         echo 'Downloading & building an icon pack for ScummVM...'
 | |
| 
 | |
|         # Unfortunately, `gen-set.py` prevents us from fixating on a commit ID since it
 | |
|         # checks whether the git repository is up-to-date. Also, we cannot perform a
 | |
|         # shallow clone since that will mess up the icon list.
 | |
|         cd "$(dirname ${icons_build_dir})"
 | |
|         git clone https://github.com/scummvm/scummvm-icons "$(basename ${icons_build_dir})"
 | |
|         cd "$(basename ${icons_build_dir})"
 | |
| 
 | |
|         ./gen-set.py 20210825
 | |
|         cp gui-icons-*.dat "${SERENITY_INSTALL_ROOT}/usr/local/share/scummvm/gui-icons.dat"
 | |
|     fi
 | |
| }
 |