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