diff options
Diffstat (limited to 'package/sdl/sdl.mk')
-rw-r--r-- | package/sdl/sdl.mk | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/package/sdl/sdl.mk b/package/sdl/sdl.mk index 87c753370..4fd3ad433 100644 --- a/package/sdl/sdl.mk +++ b/package/sdl/sdl.mk @@ -44,13 +44,22 @@ endif SDL_CONF_OPT += --enable-pulseaudio=no \ --disable-arts \ --disable-esd \ - --disable-nasm + --disable-nasm \ + --disable-video-ps3 -define SDL_POST_INSTALL_STAGING_HOOKS - $(SED) 's^libdir=\$${exec_prefix}^libdir=/usr^' \ - $(STAGING_DIR)/usr/bin/sdl-config +# Fixup prefix= and exec_prefix= in sdl-config, and remove the +# -Wl,-rpath option. +define SDL_FIXUP_SDL_CONFIG + $(SED) 's%prefix=/usr%prefix=$(STAGING_DIR)/usr%' \ + $(STAGING_DIR)/usr/bin/sdl-config + $(SED) 's%exec_prefix=/usr%exec_prefix=$(STAGING_DIR)/usr%' \ + $(STAGING_DIR)/usr/bin/sdl-config + $(SED) 's%-Wl,-rpath,\$${libdir}%%' \ + $(STAGING_DIR)/usr/bin/sdl-config endef +SDL_POST_INSTALL_STAGING_HOOKS+=SDL_FIXUP_SDL_CONFIG + define SDL_INSTALL_TARGET_CMDS cp -dpf $(STAGING_DIR)/usr/lib/libSDL*.so* $(TARGET_DIR)/usr/lib/ endef |