ffmpeg: fix dependencies
[oi-userland.git] / components / encumbered / libmad / Makefile
blobca41b36ddec52251e57eb937495741c4c811dd9b
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 2015 Alexander Pyhalov
14 # Copyright 2016 Jim Klimov
15 # Copyright 2023 Niklas Poslovski
18 include ../../../make-rules/shared-macros.mk
20 COMPONENT_NAME= libmad
21 COMPONENT_VERSION= 0.15.1.2
22 HUMAN_VERSION= 0.15.1b
23 COMPONENT_REVISION= 3
24 COMPONENT_SUMMARY= A high-quality MPEG Audio Decoder
25 COMPONENT_SRC= $(COMPONENT_NAME)-$(HUMAN_VERSION)
26 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
27 COMPONENT_ARCHIVE_HASH= \
28 sha256:27afcbde70b6539471c0c83cd71f425361763e077987621086337cdbebcd8815
29 COMPONENT_ARCHIVE_URL= \
30 https://sourceforge.net/projects/mad/files/libmad/$(HUMAN_VERSION)/$(COMPONENT_ARCHIVE)
31 COMPONENT_PROJECT_URL= https://www.underbit.com/products/mad/
32 COMPONENT_LICENSE= GPLv2
33 COMPONENT_LICENSE_FILE= COPYING
34 COMPONENT_CLASSIFICATION=System/Multimedia Libraries
35 COMPONENT_FMRI= library/audio/libmad
37 include $(WS_MAKE_RULES)/encumbered.mk
38 include $(WS_MAKE_RULES)/common.mk
40 CONFIGURE_OPTIONS += --sysconfdir=/etc
41 CONFIGURE_OPTIONS += --enable-accuracy
42 CONFIGURE_OPTIONS += --enable-shared
43 CONFIGURE_OPTIONS += --disable-static
44 CONFIGURE_OPTIONS += --enable-fpm=64bit
45 CONFIGURE_OPTIONS += --enable-sso
46 CONFIGURE_OPTIONS += --enable-strict-iso
47 # disable architecture-specific optimizations
48 CONFIGURE_OPTIONS += --disable-aso
50 COMPONENT_POST_INSTALL_ACTION= \
51 ( $(GSED) -e "s:%LIBDIR%:$(CONFIGURE_LIBDIR.$(BITS)):g" \
52 -e "s:%VERSION%:$(COMPONENT_VERSION):g" \
53 < $(COMPONENT_DIR)/files/mad.pc > $(BUILD_DIR)/mad.pc.$(BITS) )
55 # Auto-generated dependencies
56 REQUIRED_PACKAGES += system/library