treewide: refresh hashes after move to use ZSTD as default
[feed/packages.git] / libs / libvorbisidec / Makefile
1 #
2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
4 #
5
6 include $(TOPDIR)/rules.mk
7
8 PKG_NAME:=libvorbisidec
9 PKG_REV:=20180319
10 PKG_VERSION:=1.0.3-$(PKG_REV)
11 PKG_RELEASE:=2
12
13 PKG_SOURCE_PROTO:=git
14 PKG_SOURCE_URL:=https://gitlab.xiph.org/xiph/tremor.git
15 PKG_SOURCE_VERSION:=7c30a66346199f3f09017a09567c6c8a3a0eedc8
16 PKG_MIRROR_HASH:=82aa52d3f1920e06834800d2c191530ce0ddc8a1f61986be4faea56d70cbb517
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_FLAGS:=no-mips16
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/libvorbisidec
29 SECTION:=libs
30 CATEGORY:=Libraries
31 TITLE:=A fixed-point Ogg/Vorbis decoder library
32 DEPENDS:= +libogg
33 URL:=http://wiki.xiph.org/index.php/Tremor
34 endef
35
36 define Package/libvorbisidec/description
37 libvorbisidec is "tremor", a fixed-point implementation of libvorbis.
38 It is suitable as a replacement for libvorbis in tremor-aware applications.
39 Tremor is a decoder only.
40 endef
41
42 TARGET_CFLAGS += $(FPIC)
43 CONFIGURE_ARGS += --enable-shared --enable-static
44
45 define Build/InstallDev
46 $(INSTALL_DIR) $(1)/usr/include
47 $(CP) $(PKG_INSTALL_DIR)/usr/include/tremor $(1)/usr/include/
48 $(INSTALL_DIR) $(1)/usr/lib
49 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libvorbisidec.{a,so*} $(1)/usr/lib/
50 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
51 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
52 endef
53
54 define Package/libvorbisidec/install
55 $(INSTALL_DIR) $(1)/usr/lib
56 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libvorbisidec.so.* $(1)/usr/lib/
57 endef
58
59 $(eval $(call BuildPackage,libvorbisidec))