ffmpeg: fix dependencies
[oi-userland.git] / components / encumbered / libdcadec / Makefile
blob703c1ee4cf7949aa2aa219585bfda3751d9c4e2d
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
5 # 1.0 of the CDDL.
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2016 phorcys@126.com. All rights reserved.
16 BUILD_STYLE=justmake
17 BUILD_BITS=64
18 include ../../../make-rules/shared-macros.mk
20 COMPONENT_NAME= libdcadec
21 COMPONENT_VERSION= 0.2.0
22 COMPONENT_REVISION= 1
23 COMPONENT_FMRI= library/audio/libdcadec
24 COMPONENT_PROJECT_URL= https://github.com/foo86/dcadec
25 COMPONENT_CLASSIFICATION=System/Multimedia Libraries
26 COMPONENT_SUMMARY= dcadec is a free DTS Coherent Acoustics decoder with support for HD extensions.
27 COMPONENT_SRC= dcadec-$(COMPONENT_VERSION)
28 COMPONENT_ARCHIVE= $(COMPONENT_NAME)-$(COMPONENT_VERSION).tar.gz
29 COMPONENT_ARCHIVE_HASH= \
30 sha256:ed9d207fde3e8d576f3af8b0d1235b3371e315175757173689104efcaebf0d44
31 COMPONENT_ARCHIVE_URL= \
32 https://github.com/foo86/dcadec/archive/v$(COMPONENT_VERSION).tar.gz
33 COMPONENT_LICENSE= LGPLv2.1
35 include $(WS_MAKE_RULES)/encumbered.mk
36 TEST_TARGET=$(NO_TESTS)
37 include $(WS_MAKE_RULES)/common.mk
39 COMPONENT_BUILD_ENV += CC=$(CC)
40 COMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)"
41 COMPONENT_BUILD_ENV += LDFLAGS="$(LDFLAGS)"
42 COMPONENT_BUILD_ARGS+= CONFIG_SHARED=1
44 COMPONENT_INSTALL_ENV += LDFLAGS="$(LDFLAGS)"
45 COMPONENT_INSTALL_ENV += PREFIX=$(USRDIR)
46 COMPONENT_INSTALL_ENV += BINDIR=$(USRBINDIR)
47 COMPONENT_INSTALL_ENV += LIBDIR=$(USRLIBDIR.$(BITS))
48 COMPONENT_INSTALL_ARGS+= CONFIG_SHARED=1
50 REQUIRED_PACKAGES += system/library
51 REQUIRED_PACKAGES += system/library/math