summaryrefslogtreecommitdiffstats
path: root/package/sdl_sound/sdl_sound.mk
diff options
context:
space:
mode:
authorEvan Zelkowitz <evan.zelkowitz@gmail.com>2009-09-20 10:02:44 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2009-09-20 10:05:15 +0200
commit8e8354d4dbc6c3325881b840e77906e1d4cd0e1a (patch)
tree8cbce1104712b6799d093122850b8a113cf7cf17 /package/sdl_sound/sdl_sound.mk
parent0c050a7fe567c94856cf975258983882110b9aa6 (diff)
downloadbuildroot-novena-8e8354d4dbc6c3325881b840e77906e1d4cd0e1a.tar.gz
buildroot-novena-8e8354d4dbc6c3325881b840e77906e1d4cd0e1a.zip
Add SDL_sound package
Closes #477 Peter: minor tweaks: - sdl_snd -> sdl_sound - cleaned up help text - don't transform binary name - add option to keep playsound/playsound_simple - Off by default - fix uninstall when BR2_HAVE_DEVFILES isn't enabled Signed-off-by: Evan Zelkowitz <evan.zelkowitz@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/sdl_sound/sdl_sound.mk')
-rw-r--r--package/sdl_sound/sdl_sound.mk42
1 files changed, 42 insertions, 0 deletions
diff --git a/package/sdl_sound/sdl_sound.mk b/package/sdl_sound/sdl_sound.mk
new file mode 100644
index 000000000..192325729
--- /dev/null
+++ b/package/sdl_sound/sdl_sound.mk
@@ -0,0 +1,42 @@
+#############################################################
+#
+# sdl_sound addon for SDL
+#
+#############################################################
+SDL_SOUND_VERSION:=1.0.3
+SDL_SOUND_SOURCE:=SDL_sound-$(SDL_SOUND_VERSION).tar.gz
+SDL_SOUND_SITE:=http://icculus.org/SDL_sound/downloads/
+SDL_SOUND_LIBTOOL_PATCH:=NO
+SDL_SOUND_INSTALL_STAGING:=YES
+SDL_SOUND_INSTALL_TARGET:=YES
+
+SDL_SOUND_CONF_OPT:=--with-sdl-prefix=$(STAGING_DIR)/usr \
+ --with-sdl-exec-prefix=$(STAGING_DIR)/usr \
+ --disable-sdltest \
+ --enable-static \
+ --program-prefix=''
+
+# enable mmx for newer x86's
+ifeq ($(BR2_i386)$(BR2_x86_i386)$(BR2_x86_i486)$(BR2_x86_i586)$(BR2_x86_pentiumpro)$(BR2_x86_geode),y)
+SDL_SOUND_CONF_OPT += --enable-mmx
+else
+SDL_SOUND_CONF_OPT += --disable-mmx
+endif
+
+$(eval $(call AUTOTARGETS,package,sdl_sound))
+
+ifneq ($(BR2_PACKAGE_SDL_SOUND_PLAYSOUND),y)
+$(SDL_SOUND_HOOK_POST_INSTALL):
+ rm $(addprefix $(TARGET_DIR)/usr/bin/,playsound playsound_simple)
+ touch $@
+endif
+
+# target shared libs doesn't get removed by make uninstall if the .la files
+# are removed (E.G. if BR2_HAVE_DEVFILES isn't set)
+$(SDL_SOUND_TARGET_UNINSTALL):
+ $(call MESSAGE,"Uninstalling")
+ $(MAKE) DESTDIR=$(STAGING_DIR) uninstall -C $(@D)/$(SDL_SOUND_SUBDIR)
+ rm -f $(@D)/.stamp_staging_installed
+ $(MAKE) DESTDIR=$(TARGET_DIR) uninstall -C $(@D)/$(SDL_SOUND_SUBDIR)
+ rm -f $(TARGET_DIR)/usr/lib/libSDL_sound*so*
+ rm -f $(SDL_SOUND_TARGET_INSTALL_TARGET) $(SDL_SOUND_HOOK_POST_INSTALL)