summaryrefslogtreecommitdiffstats
path: root/rules/mpg123.make
blob: 0610d9292c03b2e93b6ae3119da1c0405b065e05 (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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# -*-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.25.10
MPG123_MD5	:= ea32caa61d41d8be797f0b04a1b43ad9
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	:= LGPL-2.1-only
MPG123_LICENSE_FILES := \
	file://COPYING;md5=1e86753638d3cf2512528b99079bc4f3

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

#
# autoconf
#
MPG123_CONF_TOOL	:= autoconf
MPG123_CONF_OPT		:= \
	$(CROSS_AUTOCONF_USR) \
	--disable-modules \
	--disable-debug \
	--disable-nagging \
	--enable-gapless \
	--enable-fifo \
	$(GLOBAL_IPV6_OPTION) \
	--enable-network \
	--enable-id3v2 \
	--enable-string \
	--enable-icy \
	--enable-ntom \
	--enable-downsample \
	--enable-feeder \
	--enable-messages \
	--enable-new-huffman \
	--$(call ptx/endis, PTXCONF_MPG123_INT_QUALITY)-int-quality \
	--enable-16bit \
	--enable-8bit \
	--enable-32bit \
	--enable-real \
	--disable-equalizer \
	--disable-yasm \
	--enable-ieeefloat \
	--enable-buffer \
	--disable-newoldwritesample \
	--enable-layer1 \
	--enable-layer2 \
	--enable-layer3 \
	$(GLOBAL_LARGE_FILE_OPTION) \
	--enable-lfs-alias \
	--disable-feature_report \
	--with-audio=alsa \
	--with-default-audio=alsa \
	--with-optimization=2 \
	--with-seektable=1000

# needed when compiling without IPv6
MPG123_CPPFLAGS := -D_GNU_SOURCE

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

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

	@$(call install_init, mpg123)
	@$(call install_fixup, mpg123,PRIORITY,optional)
	@$(call install_fixup, mpg123,SECTION,base)
	@$(call install_fixup, mpg123,AUTHOR,"Juergen Kilb <J.Kilb@phytec.de>")
	@$(call install_fixup, mpg123,DESCRIPTION,missing)

	@$(call install_copy, mpg123, 0, 0, 0755, -, /usr/bin/mpg123)
	@$(call install_lib, mpg123, 0, 0, 0644, libmpg123)
	@$(call install_lib, mpg123, 0, 0, 0644, libout123)

	@$(call install_finish, mpg123)

	@$(call touch)

# vim: syntax=make