Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: jacmet at uclibc.org <jacmet@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] svn commit: trunk/buildroot/package:  sdl_mixer
Date: Fri,  7 Mar 2008 05:31:33 -0800 (PST)	[thread overview]
Message-ID: <20080307133133.01E8F1201F3@busybox.net> (raw)

Author: jacmet
Date: 2008-03-07 05:31:33 -0800 (Fri, 07 Mar 2008)
New Revision: 21271

Log:
buildroot: SDL_mixer package

Based on patch from Hebbar.


Added:
   trunk/buildroot/package/sdl_mixer/
   trunk/buildroot/package/sdl_mixer/Config.in
   trunk/buildroot/package/sdl_mixer/sdl_mixer.mk

Modified:
   trunk/buildroot/package/Config.in


Changeset:
Modified: trunk/buildroot/package/Config.in
===================================================================
--- trunk/buildroot/package/Config.in	2008-03-07 13:31:24 UTC (rev 21270)
+++ trunk/buildroot/package/Config.in	2008-03-07 13:31:33 UTC (rev 21271)
@@ -313,6 +313,7 @@
 source "package/libpng/Config.in"
 source "package/libungif/Config.in"
 source "package/sdl/Config.in"
+source "package/sdl_mixer/Config.in"
 source "package/sdl_ttf/Config.in"
 source "package/tiff/Config.in"
 

Added: trunk/buildroot/package/sdl_mixer/Config.in
===================================================================
--- trunk/buildroot/package/sdl_mixer/Config.in	                        (rev 0)
+++ trunk/buildroot/package/sdl_mixer/Config.in	2008-03-07 13:31:33 UTC (rev 21271)
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_SDL_MIXER
+	bool "SDL_mixer"
+	default n
+	help
+
+	  SDL_mixer is a sample multi-channel audio mixer library.
+	  It supports any number of simultaneously playing channels of
+	  16 bit stereo audio, plus a single channel of music, mixed
+	  by the popular MikMod MOD, Timidity MIDI, Ogg Vorbis, and
+	  SMPEG MP3 libraries.
+
+	  http://www.libsdl.org/projects/SDL_mixer/

Added: trunk/buildroot/package/sdl_mixer/sdl_mixer.mk
===================================================================
--- trunk/buildroot/package/sdl_mixer/sdl_mixer.mk	                        (rev 0)
+++ trunk/buildroot/package/sdl_mixer/sdl_mixer.mk	2008-03-07 13:31:33 UTC (rev 21271)
@@ -0,0 +1,68 @@
+#############################################################
+#
+# SDL_mixer
+#
+#############################################################
+SDL_MIXER_VERSION:=1.2.8
+SDL_MIXER_SOURCE:=SDL_mixer-$(SDL_MIXER_VERSION).tar.gz
+SDL_MIXER_SITE:=http://www.libsdl.org/projects/SDL_mixer/release/
+SDL_MIXER_CAT:=$(ZCAT)
+SDL_MIXER_DIR:=$(BUILD_DIR)/SDL_mixer-$(SDL_MIXER_VERSION)
+
+$(DL_DIR)/$(SDL_MIXER_SOURCE):
+	$(WGET) -P $(DL_DIR) $(SDL_MIXER_SITE)/$(SDL_MIXER_SOURCE)
+
+sdl_mixer-source: $(DL_DIR)/$(SDL_MIXER_SOURCE)
+
+$(SDL_MIXER_DIR)/.unpacked: $(DL_DIR)/$(SDL_MIXER_SOURCE)
+	$(SDL_MIXER_CAT) $(DL_DIR)/$(SDL_MIXER_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+	$(CONFIG_UPDATE) $(SDL_MIXER_DIR)
+	touch $@
+
+$(SDL_MIXER_DIR)/.configured: $(SDL_MIXER_DIR)/.unpacked $(STAGING_DIR)/usr/lib/libSDL.so
+	(cd $(SDL_MIXER_DIR); rm -rf config.cache; \
+		$(TARGET_CONFIGURE_OPTS) \
+		$(TARGET_CONFIGURE_ARGS) \
+		./configure \
+		--target=$(GNU_TARGET_NAME) \
+		--host=$(GNU_TARGET_NAME) \
+		--build=$(GNU_HOST_NAME) \
+		--prefix=/usr \
+		--sysconfdir=/etc \
+		--localstatedir=/var \
+		--without-x \
+		--with-freetype-prefix=$(STAGING_DIR)/usr \
+		--with-sdl-prefix=$(STAGING_DIR)/usr \
+		)
+	touch $@
+
+$(SDL_MIXER_DIR)/.compiled: $(SDL_MIXER_DIR)/.configured
+	$(MAKE1) $(TARGET_CONFIGURE_OPTS) -C $(SDL_MIXER_DIR)
+	touch $@
+
+$(STAGING_DIR)/usr/lib/libSDL_mixer.so: $(SDL_MIXER_DIR)/.compiled
+	$(MAKE) DESTDIR=$(STAGING_DIR) -C $(SDL_MIXER_DIR) install
+	touch -c $@
+
+$(TARGET_DIR)/usr/lib/libSDL_mixer.so: $(STAGING_DIR)/usr/lib/libSDL_mixer.so
+	cp -dpf $(STAGING_DIR)/usr/lib/libSDL_mixer*.so* $(TARGET_DIR)/usr/lib/
+	-$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libSDL_mixer*.so*
+
+sdl_mixer: uclibc $(TARGET_DIR)/usr/lib/libSDL_mixer.so
+
+sdl_mixer-clean:
+	rm -f $(TARGET_DIR)/usr/lib/libSDL_mixer*.so*
+	-$(MAKE) DESTDIR=$(STAGING_DIR) -C $(SDL_MIXER_DIR) uninstall
+	-$(MAKE) -C $(SDL_MIXER_DIR) clean
+
+sdl_mixer-dirclean:
+	rm -rf $(SDL_MIXER_DIR)
+
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_SDL_MIXER)),y)
+TARGETS+=sdl_mixer
+endif

                 reply	other threads:[~2008-03-07 13:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080307133133.01E8F1201F3@busybox.net \
    --to=jacmet@uclibc.org \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox