This makefile works to build a fixed-point version of faad2 that supports AAC low complexity. An mpd using it takes about 10% CPU on my Asus WL500g Premium. However, this makefile fails to package the faad2 properly and the shared library must be manually installed. The modification of mpd's Makefile to compile in faad2 only if it is available was also beyond my ability. Signed-off-by: Cortland Setlow <@gmail.com> # # Copyright (C) 2006 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. # # $Id: Makefile 9907 2007-12-25 01:59:55Z nbd $
include $(TOPDIR)/rules.mk PKG_NAME:=faad2 PKG_VERSION:=2.6.1 PKG_RELEASE:=1 #http://downloads.sourceforge.net/faac/faad2-2.6.1.tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:[EMAIL PROTECTED]/faac/ \ http://downloads.sourceforge.net/faac/ PKG_MD5SUM:=74e92df40c270f216a8305fc87603c8a PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME) PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install include $(INCLUDE_DIR)/package.mk define Package/faad2 SECTION:=libs CATEGORY:=Libraries TITLE:=A high-quality AAC decoding library URL:=http://www.audiocoding.com/faad2.html endef define Package/faad2/description FAAD2 is an open source MPEG-4 and MPEG-2 AAC decoder, it is licensed under the GPLv2 license. It is portable, reasonably fast, has LC, Main, LTP, SBR, and PS support, and DRM support through DreaM. endef CONFIGURE_ARGS+= \ --enable-shared \ --enable-static \ define Build/Configure (cd $(PKG_BUILD_DIR); ls); (cd $(PKG_BUILD_DIR); pwd); (cd $(PKG_BUILD_DIR); ./bootstrap ); $(call Build/Configure/Default, \ --enable-shared \ --enable-static \ --disable-debugging \ ) endef MAKE_FLAGS += \ CFLAGS="$(TARGET_CFLAGS) -DFIXED_POINT" \ DESTDIR="$(PKG_INSTALL_DIR)" \ libfaad install define Build/InstallDev mkdir -p $(1)/usr/include $(CP) $(PKG_INSTALL_DIR)/usr/include/faad.h $(1)/usr/include/ $(CP) $(PKG_INSTALL_DIR)/usr/include/neaacdec.h $(1)/usr/include/ mkdir -p $(1)/usr/lib $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfaad.{a,so*} $(1)/usr/lib/ endef define Package/faad2/Install $(INSTALL_DIR) $(1)/usr/lib $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfaad.so.* $(1)/usr/lib/ endef $(eval $(call BuildPackage,faad2)) _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel