packages/libs/libmad/Makefile
Rosen Penev 97cb401f0d libmad: update to 0.16.3
Remove upstreamed patch.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-11-04 12:56:34 -07:00

53 lines
1.4 KiB
Makefile

#
# Copyright (C) 2006-2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=libmad
PKG_VERSION:=0.16.3
PKG_RELEASE:=$(AUTORELEASE)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/tenacityteam/libmad/tar.gz/$(PKG_VERSION)?
PKG_HASH:=83ca48db60f480ae22234bae08e6ad651adec2667a68ad2df6fd61e6a50a32c7
PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
PKG_LICENSE:=GPL-2.0-or-later
PKG_LICENSE_FILES:=COPYING
PKG_CPE_ID:=cpe:/a:underbit:mad_libmad
CMAKE_INSTALL:=1
PKG_USE_MIPS16:=0
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
define Package/libmad
SECTION:=libs
CATEGORY:=Libraries
TITLE:=An high-quality MPEG audio decoding library
URL:=http://www.underbit.com/products/mad/
endef
define Package/libmad/description
MAD is a high-quality MPEG audio decoder. It currently supports
MPEG-1 and the MPEG-2 extension to lower sampling frequencies,
as well as the de facto MPEG 2.5 format. All three audio layers -
Layer I, Layer II, and Layer III (i.e. MP3) - are fully implemented.
endef
CMAKE_OPTIONS += \
-DOPTIMIZE=SPEED
TARGET_CFLAGS:= $(filter-out -O%,$(TARGET_CFLAGS)) -O2
define Package/libmad/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libmad.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libmad))