faad2: Upgrade to lastest Debian patches, cleanup build procs
Signed-off-by: Ted Hess <thess@kitschensync.net>
This commit is contained in:
parent
3c94c75d3c
commit
855150a8f9
1 changed files with 16 additions and 32 deletions
|
@ -1,6 +1,4 @@
|
||||||
#
|
#
|
||||||
# Copyright (C) 2008-2014 OpenWrt.org
|
|
||||||
#
|
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
#
|
#
|
||||||
|
@ -8,12 +6,12 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=faad2
|
PKG_NAME:=faad2
|
||||||
PKG_VERSION:=2.7
|
PKG_VERSION:=2.8.0~cvs20161113
|
||||||
PKG_RELEASE:=3
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.xz
|
||||||
PKG_SOURCE_URL:=@SF/faac
|
PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/f/$(PKG_NAME)
|
||||||
PKG_MD5SUM:=4c332fa23febc0e4648064685a3d4332
|
PKG_HASH:=de34bce327eac8a89cd58b7d44dfb58988033de6fda0ab9582ed0585fc3fd07e
|
||||||
PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
|
PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
|
||||||
|
|
||||||
PKG_CONFIG_DEPENDS := \
|
PKG_CONFIG_DEPENDS := \
|
||||||
|
@ -25,15 +23,6 @@ PKG_INSTALL:=1
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
TARGET_CFLAGS += $(FPIC)
|
|
||||||
|
|
||||||
# Use fixed point math, if we're using soft floats, and the user didn't
|
|
||||||
# specifically ask to use floats anyways.
|
|
||||||
ifeq ($(CONFIG_SOFT_FLOAT)-$(CONFIG_FAAD2_ALWAYS_USE_FLOATING_POINT),y-)
|
|
||||||
TARGET_CFLAGS+= -DFIXED_POINT
|
|
||||||
FAAD2_CONFIG_OPTS= --without-fp -nfp
|
|
||||||
endif
|
|
||||||
|
|
||||||
define Package/faad2/Default
|
define Package/faad2/Default
|
||||||
URL:=http://www.audiocoding.com/faad2.html
|
URL:=http://www.audiocoding.com/faad2.html
|
||||||
TITLE:=Freeware Advanced Audio Decoder
|
TITLE:=Freeware Advanced Audio Decoder
|
||||||
|
@ -76,22 +65,17 @@ $(call Package/faad2/Default/description)
|
||||||
This package contains the library.
|
This package contains the library.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Configure
|
TARGET_CFLAGS += $(FPIC)
|
||||||
# This replacement were do according to many comments on the web because of gcc 3.4.5 version (.6 included).-
|
CONFIGURE_ARGS+= --without-xmms
|
||||||
# which doesn't recognices the -iquote parameter to AM_CFLAGS
|
|
||||||
($(SED) 's,-iquote $$$$(top_srcdir),-I$$$$(top_srcdir),g' $(PKG_BUILD_DIR)/libfaad/Makefile.am; \
|
# Use fixed point math, if we're using soft floats, and the user didn't
|
||||||
$(SED) 's,-iquote $$$$(top_srcdir),-I$$$$(top_srcdir),g' $(PKG_BUILD_DIR)/libfaad/Makefile.in);
|
# specifically ask to use floats anyways.
|
||||||
(cd $(PKG_BUILD_DIR); rm -rf config.{cache,status}; \
|
#ifeq ($(CONFIG_SOFT_FLOAT)-$(CONFIG_FAAD2_ALWAYS_USE_FLOATING_POINT),y-)
|
||||||
autoreconf -vif \
|
TARGET_CFLAGS+= -DFIXED_POINT
|
||||||
);
|
CONFIGURE_ARGS+= -nfp
|
||||||
$(call Build/Configure/Default, \
|
#endif
|
||||||
--with-mp4v2 \
|
|
||||||
$(FAAD2_CONFIG_OPTS) \
|
CONFIGURE_VARS+= CPPFLAGS="-fno-builtin-cos -fno-builtin-sin -fno-builtin-log"
|
||||||
--without-xmms \
|
|
||||||
, \
|
|
||||||
FAAD2_CPPFLAGS="-fno-builtin-cos -fno-builtin-sin -fno-builtin-log" \
|
|
||||||
)
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
$(INSTALL_DIR) $(1)/usr/include
|
$(INSTALL_DIR) $(1)/usr/include
|
||||||
|
|
Loading…
Reference in a new issue