mirror of
https://github.com/coolsnowwolf/packages
synced 2025-01-09 19:57:38 +08:00
4bc31916b4
Upstream abandoned GitHub. Signed-off-by: Rosen Penev <rosenp@gmail.com>
55 lines
1.4 KiB
Makefile
55 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:=2
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_VERSION:=0.16.3
|
|
PKG_SOURCE_URL:=https://codeberg.org/tenacityteam/libmad
|
|
PKG_MIRROR_HASH:=f2fa2a3c75ad1c58f0b6150482a3036408c8da79f0fcbf23bcf9e105f29079ee
|
|
|
|
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))
|