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