summaryrefslogtreecommitdiffstats
path: root/rules/vorbis-tools.make
blob: e78bde83736922b1fe1bf05fc49f996831bfff8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# -*-makefile-*-
#
# Copyright (C) 2013 by Marc Kleine-Budde <mkl@pengutronix.de>
#
# 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	:= GPL-2.0-only

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

#
# autoconf
#
VORBIS_TOOLS_CONF_TOOL := autoconf
VORBIS_TOOLS_CONF_OPT := \
	$(CROSS_AUTOCONF_USR) \
	--enable-threads \
	--disable-rpath \
	$(GLOBAL_LARGE_FILE_OPTION) \
	--$(call ptx/endis, PTXCONF_VORBIS_TOOLS_OGG123)-ogg123 \
	--$(call ptx/endis, PTXCONF_VORBIS_TOOLS_OGGDEC)-oggdec \
	--$(call ptx/endis, PTXCONF_VORBIS_TOOLS_OGGENC)-oggenc \
	--$(call ptx/endis, PTXCONF_VORBIS_TOOLS_OGGINFO)-ogginfo \
	--$(call ptx/endis, PTXCONF_VORBIS_TOOLS_VCUT)-vcut \
	--$(call ptx/endis, PTXCONF_VORBIS_TOOLS_VORBISCOMMENT)-vorbiscomment \
	--disable-oggtest \
	--disable-vorbistest \
	--disable-curltest \
	--$(call ptx/wwo, PTXCONF_VORBIS_TOOLS_FLAC)-flac \
	--$(call ptx/wwo, PTXCONF_VORBIS_TOOLS_OGG123)-speex \
	--without-kate \
	--without-curl

# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------

VORBIS_TOOLS_PROGS_y :=
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))$(ptx/nl))

	@$(call install_finish, vorbis-tools)

	@$(call touch)

# vim: syntax=make