components/desktop/flac/Makefile
author Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
Thu, 22 Dec 2016 10:01:11 -0800
changeset 7548 ad7417efe433
parent 7104 8f45af4c27d7
child 7687 1093e2a9adbd
permissions -rw-r--r--
25305787 developer/opensolaris/userland depends on obsolete/split codec/ogg-vorbis
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6588
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     1
#
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     2
# CDDL HEADER START
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     3
#
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     7
#
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    11
# and limitations under the License.
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    12
#
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    18
#
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    19
# CDDL HEADER END
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    20
#
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    21
# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    22
#
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    23
7104
8f45af4c27d7 24837165 userland should move to parfait 1.9
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 6740
diff changeset
    24
# parfait is a bit unhappy (24796395)
8f45af4c27d7 24837165 userland should move to parfait 1.9
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 6740
diff changeset
    25
export PARFAIT_BUILD=no
8f45af4c27d7 24837165 userland should move to parfait 1.9
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 6740
diff changeset
    26
6588
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    27
BUILD_BITS=		64_and_32
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    28
# Upstream requires gcc flags that Studio doesn't support
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    29
COMPILER=		gcc
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    30
include ../../../make-rules/shared-macros.mk
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    31
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    32
COMPONENT_NAME=		flac
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    33
COMPONENT_VERSION=	1.3.1
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    34
COMPONENT_PROJECT_URL=	https://xiph.org/flac/
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    35
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.xz
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    36
COMPONENT_ARCHIVE_HASH= \
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    37
	sha256:4773c0099dba767d963fd92143263be338c48702172e8754b9bc5103efe1c56c
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    38
COMPONENT_ARCHIVE_URL=	http://downloads.xiph.org/releases/flac/$(COMPONENT_ARCHIVE)
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    39
COMPONENT_BUGDB=	gnome/multimedia
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    40
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    41
TPNO=			27270
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    42
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    43
# tests work but take hours to run and use a lot of disk space
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    44
TEST_TARGET = $(SKIP_TEST)
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    45
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    46
include $(WS_MAKE_RULES)/common.mk
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    47
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    48
CONFIGURE_OPTIONS += --enable-ogg
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    49
7548
ad7417efe433 25305787 developer/opensolaris/userland depends on obsolete/split codec/ogg-vorbis
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 7104
diff changeset
    50
ifeq ($(BUILD_TYPE), evaluation)
ad7417efe433 25305787 developer/opensolaris/userland depends on obsolete/split codec/ogg-vorbis
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 7104
diff changeset
    51
REQUIRED_PACKAGES += codec/ogg-vorbis
ad7417efe433 25305787 developer/opensolaris/userland depends on obsolete/split codec/ogg-vorbis
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 7104
diff changeset
    52
else
6740
b9a930b724d2 23245483 Move libvorbis 1.3.3 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents: 6588
diff changeset
    53
REQUIRED_PACKAGES += codec/libogg
b9a930b724d2 23245483 Move libvorbis 1.3.3 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents: 6588
diff changeset
    54
REQUIRED_PACKAGES += codec/libvorbis
7548
ad7417efe433 25305787 developer/opensolaris/userland depends on obsolete/split codec/ogg-vorbis
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 7104
diff changeset
    55
endif
6588
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    56
REQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    57
REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
7c53fb3c7c1e 23245285 Move codec/flac to Userland and update to 1.3.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    58
REQUIRED_PACKAGES += system/library/math