Skip to content
This repository has been archived by the owner on Nov 20, 2022. It is now read-only.

Commit

Permalink
Package openal-soft to replace deprecated system OpenAL.
Browse files Browse the repository at this point in the history
  • Loading branch information
pchote committed Mar 16, 2020
1 parent d0316df commit f1f56a5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ deploy:
- build/libSDL2.dylib
- build/liblua.5.1.dylib
- build/libfreetype.6.dylib
- build/libopenal.1.dylib
skip_cleanup: true
on:
tags: true
Expand Down
13 changes: 12 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
SDL2_VERSION := 2.0.10
LUA_VERSION := 5.1.5
FREETYPE_VERSION := 2.10.0
OPENALSOFT_VERSION := 1.20.1

all: deps launcher

deps: sdl2 lua freetype mono
deps: sdl2 lua freetype openalsoft mono

launcher: OpenRA
@echo "Generating launcher.zip"
Expand Down Expand Up @@ -53,6 +54,16 @@ freetype:
@cp build/freetype/lib/libfreetype.6.dylib build/libfreetype.6.dylib
@rm -rf freetype-$(FREETYPE_VERSION).tar.gz freetype-$(FREETYPE_VERSION) build/freetype

openalsoft:
@curl -s -L -O https://openal-soft.org/openal-releases/openal-soft-$(OPENALSOFT_VERSION).tar.bz2
@tar xf openal-soft-$(OPENALSOFT_VERSION).tar.bz2
@cd openal-soft-$(OPENALSOFT_VERSION)/build && cmake .. -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 -DALSOFT_EXAMPLES=OFF
@cd openal-soft-$(OPENALSOFT_VERSION)/build && make
@mkdir -p build/OpenRA.app/Contents/Resources
@cp openal-soft-$(OPENALSOFT_VERSION)/build/libopenal.$(OPENALSOFT_VERSION).dylib build/OpenRA.app/Contents/Resources/libopenal.1.dylib
@cp openal-soft-$(OPENALSOFT_VERSION)/build/libopenal.$(OPENALSOFT_VERSION).dylib build/libopenal.1.dylib
@rm -rf openal-soft-$(OPENALSOFT_VERSION).tar.bz2 openal-soft-$(OPENALSOFT_VERSION)

mono:
@./package-mono.sh $(PWD)/build/OpenRA.app

Expand Down

0 comments on commit f1f56a5

Please sign in to comment.