WebOS: Enable scalers and Darwin compatibility.
On Mac OS X (Darwin), there are minor differences in the 'sed' and 'install' tools that require slightly different usage. This distinction has been made in webos.mk, made possible by an additional flag in ./configure.
This commit is contained in:
parent
5143a0c708
commit
c619c241de
2 changed files with 16 additions and 5 deletions
|
@ -60,10 +60,19 @@ APP_ID = $(shell basename $(prefix))
|
|||
APP_VERSION = $(shell printf "%d.%d.%02d%02d" $(VER_MAJOR) $(VER_MINOR) $(VER_PATCH) $(VER_PACKAGE))
|
||||
DESTDIR ?= staging
|
||||
PORTDISTDIR ?= portdist
|
||||
ifeq ($(HOST_COMPILER),Darwin)
|
||||
SED_DASH_I = "-i \"\""
|
||||
else
|
||||
SED_DASH_I = "-i"
|
||||
endif
|
||||
|
||||
install: all
|
||||
$(QUIET)$(INSTALL) -d "$(DESTDIR)$(prefix)"
|
||||
ifeq ($(HOST_COMPILER),Darwin)
|
||||
$(QUIET)$(INSTALL) -m 0644 "$(PATH_MOJO)/"* "$(DESTDIR)$(prefix)/"
|
||||
else
|
||||
$(QUIET)$(INSTALL) -m 0644 -t "$(DESTDIR)$(prefix)/" "$(PATH_MOJO)/"*
|
||||
endif
|
||||
$(QUIET)$(INSTALL) -m 0755 "$(PATH_MOJO)/start" "$(DESTDIR)$(prefix)/"
|
||||
$(QUIET)$(INSTALL) -d "$(DESTDIR)$(bindir)"
|
||||
$(QUIET)$(INSTALL) -c -m 755 "./$(EXECUTABLE)" "$(DESTDIR)$(bindir)/$(EXECUTABLE)"
|
||||
|
@ -77,12 +86,12 @@ ifdef DYNAMIC_MODULES
|
|||
$(QUIET)$(INSTALL) -c -m 644 $(PLUGINS) "$(DESTDIR)$(libdir)/"
|
||||
$(QUIET)$(STRIP) "$(DESTDIR)$(libdir)/"*
|
||||
endif
|
||||
$(QUIET)sed -i s/'APP_VERSION'/'$(APP_VERSION)'/ "$(DESTDIR)$(prefix)/appinfo.json"
|
||||
$(QUIET)sed -i s/'APP_ID'/'$(APP_ID)'/ "$(DESTDIR)$(prefix)/appinfo.json"
|
||||
$(QUIET)sed $(SED_DASH_I) s/'APP_VERSION'/'$(APP_VERSION)'/ "$(DESTDIR)$(prefix)/appinfo.json"
|
||||
$(QUIET)sed $(SED_DASH_I) s/'APP_ID'/'$(APP_ID)'/ "$(DESTDIR)$(prefix)/appinfo.json"
|
||||
ifneq (,$(findstring -beta,$(APP_ID)))
|
||||
$(QUIET)sed -i s/'APP_TITLE'/'ScummVM Beta'/ "$(DESTDIR)$(prefix)/appinfo.json"
|
||||
$(QUIET)sed $(SED_DASH_I) s/'APP_TITLE'/'ScummVM Beta'/ "$(DESTDIR)$(prefix)/appinfo.json"
|
||||
else
|
||||
$(QUIET)sed -i s/'APP_TITLE'/'ScummVM'/ "$(DESTDIR)$(prefix)/appinfo.json"
|
||||
$(QUIET)sed $(SED_DASH_I) s/'APP_TITLE'/'ScummVM'/ "$(DESTDIR)$(prefix)/appinfo.json"
|
||||
endif
|
||||
|
||||
uninstall:
|
||||
|
|
4
configure
vendored
4
configure
vendored
|
@ -2355,12 +2355,14 @@ if test -n "$_host"; then
|
|||
webos)
|
||||
_backend="webos"
|
||||
_port_mk="backends/platform/webos/webos.mk"
|
||||
_build_scalers=no
|
||||
_build_scalers=yes
|
||||
_build_hq_scalers=no
|
||||
_timidity=no
|
||||
_mt32emu=no
|
||||
_seq_midi=no
|
||||
_vkeybd=no
|
||||
_keymapper=yes
|
||||
add_line_to_config_mk "HOST_COMPILER = `uname`"
|
||||
;;
|
||||
wii)
|
||||
_backend="wii"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue