nuke $Id$ in /packages as well
[openwrt/svn-archive/archive.git] / libs / libvorbis / Makefile
1 #
2 # Copyright (C) 2008 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:=libvorbis
11 PKG_VERSION:=1.2.0
12 PKG_RELEASE:=2
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_SOURCE_URL:=http://downloads.xiph.org/releases/vorbis/
15 PKG_MD5SUM:=478646358c49f34aedcce58948793619
16 PKG_FIXUP:=libtool
17
18 include $(INCLUDE_DIR)/package.mk
19
20 PKG_INSTALL=1
21
22 define Package/libvorbis
23 SECTION:=libs
24 CATEGORY:=Libraries
25 TITLE:=libvorbis
26 URL:=http://xiph.org/vorbis/
27 DEPENDS:=+libogg
28 endef
29
30 define Package/libvorbis/description
31 Vorbis is a general purpose audio and music encoding format
32 contemporary to MPEG-4's AAC and TwinVQ, the next generation beyond
33 MPEG audio layer 3. Unlike the MPEG sponsored formats (and other
34 proprietary formats such as RealAudio G2 and Windows' flavor of the
35 month), the Vorbis CODEC specification belongs to the public domain.
36 All the technical details are published and documented, and any
37 software entity may make full use of the format without license
38 fee, royalty or patent concerns.
39 endef
40
41 define Build/Configure
42 $(call Build/Configure/Default, \
43 --disable-oggtest \
44 )
45 endef
46
47 define Build/InstallDev
48 $(INSTALL_DIR) $(1)/usr/include/vorbis/
49 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/vorbis/* $(1)/usr/include/vorbis/
50 $(INSTALL_DIR) $(1)/usr/lib/
51 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} $(1)/usr/lib/
52 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
53 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
54 $(INSTALL_DIR) $(1)/usr/share/aclocal/
55 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/* $(1)/usr/share/aclocal/
56 endef
57
58 define Package/libvorbis/install
59 $(INSTALL_DIR) $(1)/usr/lib/
60 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
61 endef
62
63 $(eval $(call BuildPackage,libvorbis))