Merge pull request #4940 from diizzyy/patch-95
[feed/packages.git] / libs / libvorbisidec / Makefile
1 #
2 # Copyright (C) 2006-2016 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:=libvorbisidec
11 PKG_REV:=20150104
12 PKG_VERSION:=1.0.3-$(PKG_REV)
13 PKG_RELEASE:=1
14
15 PKG_SOURCE_PROTO:=git
16 PKG_SOURCE_URL:=https://git.xiph.org/tremor.git
17 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
18 PKG_SOURCE_VERSION:=b56ffce0c0773ec5ca04c466bc00b1bbcaf65aef
19 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
20 PKG_MIRROR_HASH:=45a3ae74fffa32a9e0255132ec2cc4d5413af32699562a89278bc0e561bfbed7
21
22 PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
23
24 PKG_LICENSE:=BSD-3-Clause
25 PKG_LICENSE_FILES:=COPYING
26
27 PKG_FIXUP:=autoreconf
28 PKG_INSTALL:=1
29 PKG_USE_MIPS16:=0
30
31 include $(INCLUDE_DIR)/package.mk
32
33 define Package/libvorbisidec
34 SECTION:=libs
35 CATEGORY:=Libraries
36 TITLE:=A fixed-point Ogg/Vorbis decoder library
37 DEPENDS:= +libogg
38 URL:=http://wiki.xiph.org/index.php/Tremor
39 endef
40
41 define Package/libvorbisidec/description
42 libvorbisidec is "tremor", a fixed-point implementation of libvorbis.
43 It also has libogg built-in. It is suitable as a replacement for
44 libvorbis and libogg in tremor-aware applications.
45 Tremor is a decoder only.
46 endef
47
48 TARGET_CFLAGS += $(FPIC)
49 CONFIGURE_ARGS += --enable-shared --enable-static
50
51 define Build/InstallDev
52 $(INSTALL_DIR) $(1)/usr/include
53 $(CP) $(PKG_INSTALL_DIR)/usr/include/tremor $(1)/usr/include/
54 $(INSTALL_DIR) $(1)/usr/lib
55 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libvorbisidec.{a,so*} $(1)/usr/lib/
56 endef
57
58 define Package/libvorbisidec/install
59 $(INSTALL_DIR) $(1)/usr/lib
60 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libvorbisidec.so.* $(1)/usr/lib/
61 endef
62
63 $(eval $(call BuildPackage,libvorbisidec))