Re: [ptxdist] [PATCH 3] Add mpg123 rule/in file.

2010-06-02 Thread Jürgen Kilb
Hi Michael,

On Tue, Jun 01, 2010 at 21:42 PM +0200 Michael Olbrich wrote:
  +## SECTION=multimedia_sound
  +
  +config MPG123
  +   tristate
  +   prompt mpg123
 
   select ALSA_LIB
 
 I don't think this needs to be optional.
 
What do you mean ?
How can I mark the alsa-lib as non optional ?

Greetings,
Jürgen



-- 
ptxdist mailing list
ptxdist@pengutronix.de


[ptxdist] [PATCH 3] Add mpg123 rule/in file.

2010-06-01 Thread Juergen Kilb
Signed-off-by: Jürgen Kilb j.k...@phytec.de
---

 rules/mpg123.in   |   13 ++
 rules/mpg123.make |   71 +
 2 files changed, 84 insertions(+), 0 deletions(-)
 create mode 100644 rules/mpg123.in
 create mode 100644 rules/mpg123.make

diff --git a/rules/mpg123.in b/rules/mpg123.in
new file mode 100644
index 000..7cebe9f
--- /dev/null
+++ b/rules/mpg123.in
@@ -0,0 +1,13 @@
+## SECTION=multimedia_sound
+
+config MPG123
+   tristate
+   prompt mpg123
+   help
+ mpg123 is a real time MPEG 1.0/2.0/2.5 audio player/decoder for 
layers 1,2 and 3
+ (MPEG 1.0 layer 3 aka MP3 most commonly tested). Among others working 
with Linux,
+ MacOSX, FreeBSD, SunOS4.1.3, Solaris 2.5, HPUX 9.x, SGI Irix and 
Cygwin or plain
+ MS Windows.
+ It is free software licensed under LGPL 2.1 (the officially released 
sources,
+ some files in subversion repository may differ).
+
diff --git a/rules/mpg123.make b/rules/mpg123.make
new file mode 100644
index 000..c90712f
--- /dev/null
+++ b/rules/mpg123.make
@@ -0,0 +1,71 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2010 by Juergen Kilb
+#
+# 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_MPG123) += mpg123
+
+#
+# Paths and names
+#
+MPG123_VERSION := 1.12.1
+MPG123 := mpg123-$(MPG123_VERSION)
+MPG123_SUFFIX  := tar.bz2
+MPG123_URL := http://www.mpg123.org/download/$(MPG123).$(MPG123_SUFFIX)
+MPG123_SOURCE  := $(SRCDIR)/$(MPG123).$(MPG123_SUFFIX)
+MPG123_DIR := $(BUILDDIR)/$(MPG123)
+MPG123_LICENSE := LGPLv2.1
+
+# 
+# Get
+# 
+
+$(MPG123_SOURCE):
+   @$(call targetinfo)
+   @$(call get, MPG123)
+
+# 
+# Prepare
+# 
+
+#
+# autoconf
+#
+MPG123_CONF_TOOL   := autoconf
+MPG123_CONF_OPT:= \
+   $(CROSS_AUTOCONF_USR) \
+   --with-audio=alsa,oss \
+   --with-default-audio=alsa
+# 
+# Target-Install
+# 
+
+$(STATEDIR)/mpg123.targetinstall:
+   @$(call targetinfo)
+
+   @$(call install_init,  mpg123)
+   @$(call install_fixup, mpg123,PACKAGE,mpg123)
+   @$(call install_fixup, mpg123,PRIORITY,optional)
+   @$(call install_fixup, mpg123,VERSION,$(MPG123_VERSION))
+   @$(call install_fixup, mpg123,SECTION,base)
+   @$(call install_fixup, mpg123,AUTHOR,Juergen Kilb j.k...@phytec.de)
+   @$(call install_fixup, mpg123,DEPENDS,)
+   @$(call install_fixup, mpg123,DESCRIPTION,missing)
+
+   @$(call install_copy, mpg123, 0, 0, 0755, -, /usr/bin/mpg123)
+   @$(call install_copy, mpg123, 0, 0, 0644, -, 
/usr/lib/libmpg123.so.0.25.0)
+   @$(call install_link, mpg123, libmpg123.so.0.25.0, 
/usr/lib/libmpg123.so)
+   @$(call install_link, mpg123, libmpg123.so.0.25.0, 
/usr/lib/libmpg123.so.0)
+   @$(call install_finish, mpg123)
+
+   @$(call touch)
+
+# vim: syntax=make


-- 
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] [PATCH 3] Add mpg123 rule/in file.

2010-06-01 Thread Michael Olbrich
On Tue, Jun 01, 2010 at 03:21:13PM +0200, Juergen Kilb wrote:
 Signed-off-by: Jürgen Kilb j.k...@phytec.de
 ---
 
  rules/mpg123.in   |   13 ++
  rules/mpg123.make |   71 
 +
  2 files changed, 84 insertions(+), 0 deletions(-)
  create mode 100644 rules/mpg123.in
  create mode 100644 rules/mpg123.make
 
 diff --git a/rules/mpg123.in b/rules/mpg123.in
 new file mode 100644
 index 000..7cebe9f
 --- /dev/null
 +++ b/rules/mpg123.in
 @@ -0,0 +1,13 @@
 +## SECTION=multimedia_sound
 +
 +config MPG123
 + tristate
 + prompt mpg123

select ALSA_LIB

I don't think this needs to be optional.

 + help
 +   mpg123 is a real time MPEG 1.0/2.0/2.5 audio player/decoder for 
 layers 1,2 and 3
 +   (MPEG 1.0 layer 3 aka MP3 most commonly tested). Among others working 
 with Linux,
 +   MacOSX, FreeBSD, SunOS4.1.3, Solaris 2.5, HPUX 9.x, SGI Irix and 
 Cygwin or plain
 +   MS Windows.
 +   It is free software licensed under LGPL 2.1 (the officially released 
 sources,
 +   some files in subversion repository may differ).
 +
 diff --git a/rules/mpg123.make b/rules/mpg123.make
 new file mode 100644
 index 000..c90712f
 --- /dev/null
 +++ b/rules/mpg123.make
 @@ -0,0 +1,71 @@
 +# -*-makefile-*-
 +#
 +# Copyright (C) 2010 by Juergen Kilb
 +#
 +# 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_MPG123) += mpg123
 +
 +#
 +# Paths and names
 +#
 +MPG123_VERSION   := 1.12.1
 +MPG123   := mpg123-$(MPG123_VERSION)
 +MPG123_SUFFIX:= tar.bz2
 +MPG123_URL   := http://www.mpg123.org/download/$(MPG123).$(MPG123_SUFFIX)
 +MPG123_SOURCE:= $(SRCDIR)/$(MPG123).$(MPG123_SUFFIX)
 +MPG123_DIR   := $(BUILDDIR)/$(MPG123)
 +MPG123_LICENSE   := LGPLv2.1
 +
 +# 
 
 +# Get
 +# 
 
 +
 +$(MPG123_SOURCE):
 + @$(call targetinfo)
 + @$(call get, MPG123)
 +
 +# 
 
 +# Prepare
 +# 
 
 +
 +#
 +# autoconf
 +#
 +MPG123_CONF_TOOL := autoconf
 +MPG123_CONF_OPT  := \
 + $(CROSS_AUTOCONF_USR) \
 + --with-audio=alsa,oss \
 + --with-default-audio=alsa
 +# 
 
 +# Target-Install
 +# 
 
 +
 +$(STATEDIR)/mpg123.targetinstall:
 + @$(call targetinfo)
 +
 + @$(call install_init,  mpg123)
 + @$(call install_fixup, mpg123,PACKAGE,mpg123)
 + @$(call install_fixup, mpg123,PRIORITY,optional)
 + @$(call install_fixup, mpg123,VERSION,$(MPG123_VERSION))
 + @$(call install_fixup, mpg123,SECTION,base)
 + @$(call install_fixup, mpg123,AUTHOR,Juergen Kilb j.k...@phytec.de)
 + @$(call install_fixup, mpg123,DEPENDS,)
 + @$(call install_fixup, mpg123,DESCRIPTION,missing)
 +
 + @$(call install_copy, mpg123, 0, 0, 0755, -, /usr/bin/mpg123)
 + @$(call install_copy, mpg123, 0, 0, 0644, -, 
 /usr/lib/libmpg123.so.0.25.0)
 + @$(call install_link, mpg123, libmpg123.so.0.25.0, 
 /usr/lib/libmpg123.so)
 + @$(call install_link, mpg123, libmpg123.so.0.25.0, 
 /usr/lib/libmpg123.so.0)
 + @$(call install_finish, mpg123)
 +
 + @$(call touch)
 +
 +# vim: syntax=make
 
 
 -- 
 ptxdist mailing list
 ptxdist@pengutronix.de

-- 
Pengutronix e.K.   | |
Industrial Linux Solutions | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

-- 
ptxdist mailing list
ptxdist@pengutronix.de