Signed-off-by: Jürgen Kilb <j.k...@phytec.de> --- rules/mpg123.in | 14 ++++++++++ rules/mpg123.make | 71 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 85 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 0000000..0e5125b --- /dev/null +++ b/rules/mpg123.in @@ -0,0 +1,14 @@ +## SECTION=multimedia_sound + +config MPG123 + tristate + prompt "mpg123" + select ALSA_LIB + 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 0000000..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