[packages] Use default templates instead of custom reimplementations where applicable
[packages.git] / libs / libvorbisidec / Makefile
1
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libvorbisidec
11 PKG_VERSION:=1.0.2+svn14261
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
15 PKG_SOURCE_URL:=http://ftp.de.debian.org/debian/pool/main/libv/libvorbisidec/
16 PKG_MD5SUM:=bc617d4af1cd74b38d7c51451dd6eff0
17
18 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/libvorbisidec
24   SECTION:=libs
25   CATEGORY:=Libraries
26   TITLE:=A fixed-point Ogg/Vorbis decoder library
27   URL:=http://wiki.xiph.org/index.php/Tremor
28 endef
29
30 define Package/libvorbisidec/description
31         libvorbisidec is "tremor", a fixed-point implementation of libvorbis.
32         It also has libogg built-in. It is suitable as a replacement for 
33         libvorbis and libogg in tremor-aware applications.
34         Tremor is a decoder only.
35 endef
36
37 TARGET_CFLAGS += $(FPIC)
38
39 define Build/Configure
40         (cd $(PKG_BUILD_DIR); ./autogen.sh );
41         $(call Build/Configure/Default, \
42                 --enable-shared \
43                 --enable-static \
44         )
45 endef
46
47 define Build/InstallDev
48         $(INSTALL_DIR) $(1)/usr/include
49         $(CP) $(PKG_INSTALL_DIR)/usr/include/tremor $(1)/usr/include/
50         $(INSTALL_DIR) $(1)/usr/lib
51         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libvorbisidec.{a,so*} $(1)/usr/lib/
52 endef
53
54 define Package/libvorbisidec/install
55         $(INSTALL_DIR) $(1)/usr/lib
56         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libvorbisidec.so.* $(1)/usr/lib/
57 endef
58
59 $(eval $(call BuildPackage,libvorbisidec))