2006-07-22 23:04:12 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 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:=libvorbisidec
|
2007-12-23 21:35:22 +00:00
|
|
|
PKG_VERSION:=1.0.2+svn14261
|
2006-07-22 23:04:12 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
2007-12-14 07:12:35 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://ftp.de.debian.org/debian/pool/main/libv/libvorbisidec/
|
2007-12-23 21:35:22 +00:00
|
|
|
PKG_MD5SUM:=bc617d4af1cd74b38d7c51451dd6eff0
|
2006-07-22 23:04:12 +00:00
|
|
|
|
2008-03-09 22:40:25 +00:00
|
|
|
PKG_FIXUP = libtool
|
|
|
|
|
2006-07-22 23:04:12 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/libvorbisidec
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=A fixed-point Ogg/Vorbis decoder library
|
2007-02-01 19:41:15 +00:00
|
|
|
URL:=http://wiki.xiph.org/index.php/Tremor
|
2006-07-22 23:04:12 +00:00
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/libvorbisidec/description
|
|
|
|
libvorbisidec is "tremor", a fixed-point implementation of libvorbis.
|
|
|
|
It also has libogg built-in. It is suitable as a replacement for
|
|
|
|
libvorbis and libogg in tremor-aware applications.
|
|
|
|
Tremor is a decoder only.
|
|
|
|
endef
|
|
|
|
|
2008-08-06 22:43:15 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
2006-07-22 23:04:12 +00:00
|
|
|
define Build/Configure
|
2007-12-14 07:12:35 +00:00
|
|
|
(cd $(PKG_BUILD_DIR); ./autogen.sh );
|
2006-10-28 22:43:08 +00:00
|
|
|
$(call Build/Configure/Default, \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
)
|
2006-07-22 23:04:12 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
all install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2007-10-07 03:20:26 +00:00
|
|
|
mkdir -p $(1)/usr/include
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/tremor $(1)/usr/include/
|
|
|
|
mkdir -p $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libvorbisidec.{a,so*} $(1)/usr/lib/
|
2006-07-22 23:04:12 +00:00
|
|
|
endef
|
|
|
|
|
2006-10-28 22:43:08 +00:00
|
|
|
define Package/libvorbisidec/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2006-10-28 22:43:08 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libvorbisidec.so.* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
2006-07-22 23:04:12 +00:00
|
|
|
$(eval $(call BuildPackage,libvorbisidec))
|