[packages] wxbase: update to v2.8.10, cleanup
[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_FIXUP:=libtool
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/libvorbis
24 SECTION:=libs
25 CATEGORY:=Libraries
26 TITLE:=libvorbis
27 URL:=http://xiph.org/vorbis/
28 DEPENDS:=+libogg
29 endef
30
31 define Package/libvorbis/description
32 Vorbis is a general purpose audio and music encoding format
33 contemporary to MPEG-4's AAC and TwinVQ, the next generation beyond
34 MPEG audio layer 3. Unlike the MPEG sponsored formats (and other
35 proprietary formats such as RealAudio G2 and Windows' flavor of the
36 month), the Vorbis CODEC specification belongs to the public domain.
37 All the technical details are published and documented, and any
38 software entity may make full use of the format without license
39 fee, royalty or patent concerns.
40 endef
41
42 CONFIGURE_ARGS+= \
43 --disable-oggtest \
44
45 define Build/InstallDev
46 $(INSTALL_DIR) $(1)/usr/include/vorbis/
47 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/vorbis/* $(1)/usr/include/vorbis/
48 $(INSTALL_DIR) $(1)/usr/lib/
49 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} $(1)/usr/lib/
50 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
51 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
52 $(INSTALL_DIR) $(1)/usr/share/aclocal/
53 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/* $(1)/usr/share/aclocal/
54 endef
55
56 define Package/libvorbis/install
57 $(INSTALL_DIR) $(1)/usr/lib/
58 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so.* $(1)/usr/lib/
59 endef
60
61 $(eval $(call BuildPackage,libvorbis))