summaryrefslogtreecommitdiffstats
path: root/rules/vorbis-tools.make
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2013-01-11 13:43:39 +0100
committerMarc Kleine-Budde <mkl@pengutronix.de>2013-01-11 13:45:20 +0100
commit79311bcdf7def3545a452d7fa94ddd7f2bb5994f (patch)
tree031c4e4d69ccb352818e0dc3d560f500e6f9851b /rules/vorbis-tools.make
parent4fd136fd587d0c3e4c59cb29cb3b2bffbd6b2146 (diff)
downloadptxdist-79311bcdf7def3545a452d7fa94ddd7f2bb5994f.tar.gz
ptxdist-79311bcdf7def3545a452d7fa94ddd7f2bb5994f.tar.xz
vorbis-tools: new package
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'rules/vorbis-tools.make')
-rw-r--r--rules/vorbis-tools.make70
1 files changed, 70 insertions, 0 deletions
diff --git a/rules/vorbis-tools.make b/rules/vorbis-tools.make
new file mode 100644
index 000000000..54032ea5e
--- /dev/null
+++ b/rules/vorbis-tools.make
@@ -0,0 +1,70 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2013 by Marc Kleine-Budde <mkl@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_VORBIS_TOOLS) += vorbis-tools
+
+#
+# Paths and names
+#
+VORBIS_TOOLS_VERSION := 1.4.0
+VORBIS_TOOLS_MD5 := 567e0fb8d321b2cd7124f8208b8b90e6
+VORBIS_TOOLS := vorbis-tools-$(VORBIS_TOOLS_VERSION)
+VORBIS_TOOLS_SUFFIX := tar.gz
+VORBIS_TOOLS_URL := http://downloads.xiph.org/releases/vorbis/$(VORBIS_TOOLS).$(VORBIS_TOOLS_SUFFIX)
+VORBIS_TOOLS_SOURCE := $(SRCDIR)/$(VORBIS_TOOLS).$(VORBIS_TOOLS_SUFFIX)
+VORBIS_TOOLS_DIR := $(BUILDDIR)/$(VORBIS_TOOLS)
+VORBIS_TOOLS_LICENSE := GPLv2
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+VORBIS_TOOLS_CONF_TOOL := autoconf
+VORBIS_TOOLS_CONF_OPT := \
+ $(CROSS_AUTOCONF_USR) \
+ $(GLOBAL_LARGE_FILE_OPTION) \
+ --without-kate \
+ --without-curl
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+VORBIS_TOOLS_PROGS :=
+VORBIS_TOOLS_PROGS_$(PTXCONF_VORBIS_TOOLS_OGG123) += ogg123
+VORBIS_TOOLS_PROGS_$(PTXCONF_VORBIS_TOOLS_OGGDEC) += oggdec
+VORBIS_TOOLS_PROGS_$(PTXCONF_VORBIS_TOOLS_OGGENC) += oggenc
+VORBIS_TOOLS_PROGS_$(PTXCONF_VORBIS_TOOLS_OGGINFO) += ogginfo
+VORBIS_TOOLS_PROGS_$(PTXCONF_VORBIS_TOOLS_VCUT) += vcut
+VORBIS_TOOLS_PROGS_$(PTXCONF_VORBIS_TOOLS_VORBISCOMMENT) += vorbiscomment
+
+$(STATEDIR)/vorbis-tools.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, vorbis-tools)
+ @$(call install_fixup, vorbis-tools,PRIORITY,optional)
+ @$(call install_fixup, vorbis-tools,SECTION,base)
+ @$(call install_fixup, vorbis-tools,AUTHOR,"Marc Kleine-Budde <mkl@pengutronix.de>")
+ @$(call install_fixup, vorbis-tools,DESCRIPTION,missing)
+
+ @$(foreach prog, $(VORBIS_TOOLS_PROGS_y), \
+ $(call install_copy, vorbis-tools, 0, 0, 0755, -, /usr/bin/$(prog));)
+
+ @$(call install_finish, vorbis-tools)
+
+ @$(call touch)
+
+# vim: syntax=make