summaryrefslogtreecommitdiffstats
path: root/rules/libshout.make
blob: 7885968456268db20fb63283159aa50b1b2f6f58 (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
# -*-makefile-*-
#
# Copyright (C) 2014 by Michael Olbrich <m.olbrich@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_LIBSHOUT) += libshout

#
# Paths and names
#
LIBSHOUT_VERSION	:= 2.3.1
LIBSHOUT_MD5		:= 11765b2592e7ea623ccd93d3f8df172c
LIBSHOUT		:= libshout-$(LIBSHOUT_VERSION)
LIBSHOUT_SUFFIX		:= tar.gz
LIBSHOUT_URL		:= http://downloads.xiph.org/releases/libshout/$(LIBSHOUT).$(LIBSHOUT_SUFFIX)
LIBSHOUT_SOURCE		:= $(SRCDIR)/$(LIBSHOUT).$(LIBSHOUT_SUFFIX)
LIBSHOUT_DIR		:= $(BUILDDIR)/$(LIBSHOUT)
LIBSHOUT_LICENSE	:= LGPL-2.0+

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

#
# autoconf
#
LIBSHOUT_CONF_TOOL	:= autoconf
LIBSHOUT_CONF_OPT	:= \
	$(CROSS_AUTOCONF_USR) \
	--enable-thread \
	--$(call ptx/endis, PTXCONF_LIBSHOUT_THEORA)-theora \
	--$(call ptx/endis, PTXCONF_LIBSHOUT_SPEEX)-speex

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

$(STATEDIR)/libshout.targetinstall:
	@$(call targetinfo)

	@$(call install_init, libshout)
	@$(call install_fixup, libshout,PRIORITY,optional)
	@$(call install_fixup, libshout,VERSION,$(LIBSHOUT_VERSION))
	@$(call install_fixup, libshout,SECTION,base)
	@$(call install_fixup, libshout,AUTHOR,"Michael Olbrich <m.olbrich@pengutronix.de>")
	@$(call install_fixup, libshout,DEPENDS,)
	@$(call install_fixup, libshout,DESCRIPTION,missing)

	@$(call install_lib, libshout, 0, 0, 0755, libshout)

	@$(call install_finish, libshout)

	@$(call touch)

# vim: syntax=make