summaryrefslogtreecommitdiffstats
path: root/rules/lame.make
blob: 31ef593f8d8506475bc04a092a2278e724d19317 (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
# -*-makefile-*-
#
# Copyright (C) 2012 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_LAME) += lame

#
# Paths and names
#
LAME_VERSION	:= 3.99.5
LAME_MD5	:= 84835b313d4a8b68f5349816d33e07ce
LAME		:= lame-$(LAME_VERSION)
LAME_SUFFIX	:= tar.gz
LAME_URL	:= $(call ptx/mirror, SF, lame/$(LAME).$(LAME_SUFFIX))
LAME_SOURCE	:= $(SRCDIR)/$(LAME).$(LAME_SUFFIX)
LAME_DIR	:= $(BUILDDIR)/$(LAME)
LAME_LICENSE	:= LGPL-2.0-only

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

LAME_CONF_ENV := $(CROSS_ENV)
ifneq ($(PTXCONF_ARCH_X86_I386)$(PTXCONF_ARCH_X86_I486)$(PTXCONF_ARCH_X86_I586)$(PTXCONF_ARCH_X86_I686)$(PTXCONF_ARCH_X86_P2),)
LAME_CONF_ENV += ac_cv_header_xmmintrin_h=no
endif

#
# autoconf
#
LAME_CONF_TOOL	:= autoconf
LAME_CONF_OPT	:= \
	$(CROSS_AUTOCONF_USR) \
	$(GLOBAL_LARGE_FILE_OPTION) \
	--disable-static \
	--disable-nasm \
	--disable-rpath \
	--disable-cpml \
	--disable-gtktest \
	--disable-efence \
	--disable-analyzer-hooks \
	--enable-decoder \
	--$(call ptx/endis, PTXCONF_LAME_FRONTEND)-frontend \
	--disable-mp3x \
	--enable-mp3rtp \
	--enable-expopt \
	--disable-debug \
	--without-dmalloc

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

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

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

	@$(call install_lib, lame, 0, 0, 0644, libmp3lame)
ifdef PTXCONF_LAME_FRONTEND
	@$(call install_copy, lame, 0, 0, 0755, -, /usr/bin/lame)
endif

	@$(call install_finish, lame)

	@$(call touch)

# vim: syntax=make