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
|
# -*-makefile-*-
#
# Copyright (C) 2010 by Erwin Rol <erwin@erwinrol.com>
#
# For further information about the PTXdist project and license conditions
# see the README file.
#
#
# We provide this package
#
PACKAGES-$(PTXCONF_FLAC) += flac
#
# Paths and names
#
FLAC_VERSION := 1.3.3
FLAC_MD5 := 26703ed2858c1fc9ffc05136d13daa69
FLAC := flac-$(FLAC_VERSION)
FLAC_SUFFIX := tar.xz
FLAC_URL := http://downloads.xiph.org/releases/flac/$(FLAC).$(FLAC_SUFFIX)
FLAC_SOURCE := $(SRCDIR)/$(FLAC).$(FLAC_SUFFIX)
FLAC_DIR := $(BUILDDIR)/$(FLAC)
FLAC_LICENSE := BSD-3-Clause AND GPL-2.0-or-later AND LGPL-2.0-or-later
FLAC_LICENSE_FILES := \
file://COPYING.Xiph;md5=b59c1b6d7fc0fb7965f821a3d36505e3 \
file://src/flac/analyze.c;startline=1;endline=18;md5=09777e2934947a36f13568d0beb81199 \
file://COPYING.GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
file://src/share/grabbag/file.c;startline=1;endline=18;md5=d7caed91c0cec733420f04cf36386d01 \
file://COPYING.LGPL;md5=fbc093901857fcd118f065f900982c24
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
#
# autoconf
#
FLAC_CONF_TOOL := autoconf
FLAC_CONF_OPT := \
$(CROSS_AUTOCONF_USR) \
$(GLOBAL_LARGE_FILE_OPTION) \
--enable-asm-optimizations \
--disable-debug \
--$(call ptx/endis, PTXCONF_ARCH_X86)-sse \
--disable-altivec \
--$(call ptx/endis, PTXCONF_ARCH_X86_64)-avx \
--disable-thorough-tests \
--disable-exhaustive-tests \
--disable-werror \
--enable-stack-smash-protection \
--disable-64-bit-words \
--disable-valgrind-testing \
--disable-doxygen-docs \
--disable-local-xmms-plugin \
--disable-xmms-plugin \
--disable-cpplibs \
--enable-ogg \
--disable-oggtest \
--disable-rpath \
--with-ogg=$(PTXDIST_SYSROOT_TARGET)/usr
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/flac.targetinstall:
@$(call targetinfo)
@$(call install_init, flac)
@$(call install_fixup, flac,PRIORITY,optional)
@$(call install_fixup, flac,SECTION,base)
@$(call install_fixup, flac,AUTHOR,"Erwin Rol <erwin@erwinrol.com>")
@$(call install_fixup, flac,DESCRIPTION,missing)
@$(call install_lib, flac, 0, 0, 0644, libFLAC)
ifdef PTXCONF_FLAC_INSTALL_FLAC
@$(call install_copy, flac, 0, 0, 0755, -, /usr/bin/flac)
endif
ifdef PTXCONF_FLAC_INSTALL_METAFLAC
@$(call install_copy, flac, 0, 0, 0755, -, /usr/bin/metaflac)
endif
@$(call install_finish, flac)
@$(call touch)
# vim: syntax=make
|