unixodbc: moved to github
[packages.git] / libs / libogg / Makefile
1 #
2 # Copyright (C) 2008-2013 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:=libogg
11 PKG_VERSION:=1.3.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
15 PKG_SOURCE_URL:=http://downloads.xiph.org/releases/ogg/
16 PKG_MD5SUM:=ca25d8da0ddfc8c6cbbf78d847a209fe
17
18 PKG_LICENSE:=BSD-3c
19 PKG_LICENSE_FILES:=COPYING
20
21 PKG_FIXUP:=autoreconf
22
23 PKG_INSTALL:=1
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/libogg
28   SECTION:=libs
29   CATEGORY:=Libraries
30   TITLE:=libogg
31   URL:=http://xiph.org/ogg/
32 endef
33
34 define Package/libogg/description
35 Ogg project codecs use the Ogg bitstream format to arrange the raw,
36 compressed bitstream into a more robust, useful form.  For example,
37 the Ogg bitstream makes seeking, time stamping and error recovery
38 possible, as well as mixing several sepearate, concurrent media
39 streams into a single physical bitstream.
40 endef
41
42 define Build/InstallDev
43         $(INSTALL_DIR) $(1)/usr/include/ogg/
44         $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/ogg/* $(1)/usr/include/ogg/
45         $(INSTALL_DIR) $(1)/usr/lib/
46         $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} $(1)/usr/lib/
47         $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
48         $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
49         $(INSTALL_DIR) $(1)/usr/share/aclocal/
50         $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/* $(1)/usr/share/aclocal/
51 endef
52
53 define Package/libogg/install
54         $(INSTALL_DIR) $(1)/usr/lib/
55         $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so.* $(1)/usr/lib/
56 endef
57
58 $(eval $(call BuildPackage,libogg))