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