mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Grzeschik <m.grzeschik@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH v2 6/6] sdl2-mixer: add new package
Date: Fri, 13 Jul 2018 16:35:15 +0200	[thread overview]
Message-ID: <20180713143515.19019-7-m.grzeschik@pengutronix.de> (raw)
In-Reply-To: <20180713143515.19019-1-m.grzeschik@pengutronix.de>

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
---
v1 -> v2: - removed extra padding spaces from prompt
          - removed extra space on _LDFLAGS
	  - added missing license to zlib

 rules/sdl2-mixer.in   | 11 ++++++++
 rules/sdl2-mixer.make | 58 +++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 69 insertions(+)
 create mode 100644 rules/sdl2-mixer.in
 create mode 100644 rules/sdl2-mixer.make

diff --git a/rules/sdl2-mixer.in b/rules/sdl2-mixer.in
new file mode 100644
index 000000000..7b1b7af06
--- /dev/null
+++ b/rules/sdl2-mixer.in
@@ -0,0 +1,11 @@
+## SECTION=multimedia_sdl
+
+config SDL2_MIXER
+	tristate
+	select SDL2
+	prompt "SDL2 mixer"
+	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, in FLAC, Ogg Vorbis, MP3, MOD, and MIDI
+          formats.
diff --git a/rules/sdl2-mixer.make b/rules/sdl2-mixer.make
new file mode 100644
index 000000000..9ca304865
--- /dev/null
+++ b/rules/sdl2-mixer.make
@@ -0,0 +1,58 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2018 by Michael Grzeschik <mgr@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_SDL2_MIXER) += sdl2-mixer
+
+#
+# Paths and names
+#
+SDL2_MIXER_VERSION	:= 2.0.2
+SDL2_MIXER_MD5		:= aaa0551393993c14a13f72b339c0ed6c
+SDL2_MIXER		:= SDL2_mixer-$(SDL2_MIXER_VERSION)
+SDL2_MIXER_SUFFIX	:= tar.gz
+SDL2_MIXER_URL		:= https://www.libsdl.org/projects/SDL_mixer/release/$(SDL2_MIXER).$(SDL2_MIXER_SUFFIX)
+SDL2_MIXER_SOURCE	:= $(SRCDIR)/$(SDL2_MIXER).$(SDL2_MIXER_SUFFIX)
+SDL2_MIXER_DIR		:= $(BUILDDIR)/$(SDL2_MIXER)
+SDL2_MIXER_LICENSE	:= zlib
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+SDL2_MIXER_CONF_TOOL	:= autoconf
+
+ifdef PTXCONF_SDL2_PULSEAUDIO
+SDL2_MIXER_LDFLAGS	:= \
+	-Wl,-rpath-link,$(SYSROOT)/usr/lib/pulseaudio
+endif
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/sdl2-mixer.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, sdl2-mixer)
+	@$(call install_fixup, sdl2-mixer,PRIORITY,optional)
+	@$(call install_fixup, sdl2-mixer,SECTION,base)
+	@$(call install_fixup, sdl2-mixer,AUTHOR,"Michael Grzeschik <mgr@pengutronix.de>")
+	@$(call install_fixup, sdl2-mixer,DESCRIPTION,missing)
+
+	@$(call install_lib, sdl2-mixer, 0, 0, 0644, libSDL2_mixer-2.0)
+
+	@$(call install_finish, sdl2-mixer)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.18.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

      parent reply	other threads:[~2018-07-13 14:35 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-13 14:35 [ptxdist] [PATCH v2 0/6] sdl2: add support for new packages Michael Grzeschik
2018-07-13 14:35 ` [ptxdist] [PATCH v2 1/6] sdl2: add new package Michael Grzeschik
2018-07-16 12:54   ` [ptxdist] [PATCH v3] " Michael Grzeschik
2018-07-16 13:07     ` Michael Olbrich
2018-07-16 13:13     ` Michael Olbrich
2018-07-13 14:35 ` [ptxdist] [PATCH v2 2/6] sdl2-test: " Michael Grzeschik
2018-07-13 14:35 ` [ptxdist] [PATCH v2 3/6] sdl2-image: " Michael Grzeschik
2018-07-13 14:35 ` [ptxdist] [PATCH v2 4/6] sdl2-net: " Michael Grzeschik
2018-07-13 14:35 ` [ptxdist] [PATCH v2 5/6] sdl2-ttf: " Michael Grzeschik
2018-07-13 14:35 ` Michael Grzeschik [this message]

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=20180713143515.19019-7-m.grzeschik@pengutronix.de \
    --to=m.grzeschik@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /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