2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
11 PKG_NAME
:=libvorbisidec
12 PKG_VERSION
:=1.2.0-dave
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://users.tpg.com.au
/davico
/openwrt
/
17 PKG_MD5SUM
:=cb8e51aab92ef164f8e0e8853f7164fa
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
21 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/libvorbisidec
28 TITLE
:=A fixed-point Ogg
/Vorbis decoder library
30 libvorbisidec is
"tremor", a fixed-point implementation of libvorbis.
\\\
31 It also has libogg built-in. It is suitable
as a replacement for
\\\
32 libvorbis and libogg in tremor-aware applications.
\\\
33 Tremor is a decoder only.
34 URL
:=http
://wiki.xiph.org
/index.php
/Tremor
37 define Build
/Configure
38 $(call Build
/Configure
/Default
, \
45 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
46 DESTDIR
="$(PKG_INSTALL_DIR)" \
50 define Build
/InstallDev
51 mkdir
-p
$(STAGING_DIR
)/usr
/include
52 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/tremor
$(STAGING_DIR
)/usr
/include/
53 mkdir
-p
$(STAGING_DIR
)/usr
/lib
54 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libvorbisidec.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
57 define Build
/UninstallDev
59 $(STAGING_DIR
)/usr
/include/tremor \
60 $(STAGING_DIR
)/usr
/lib
/libvorbisidec.
{a
,so
*}
63 define Package
/libvorbisidec
/install
64 $(INSTALL_DIR
) $(1)/usr
/lib
65 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libvorbisidec.so.
* $(1)/usr
/lib
/
68 $(eval
$(call BuildPackage
,libvorbisidec
))