079af96d48c353daf08c7253febc46ab0c63b1ed
[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:=1
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:=9cdec0bf6663d7c9e615dd556a2f115efccded884fe52c8dd18b42120781bed0
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 also has libogg built-in. It is suitable as a replacement for
39 libvorbis and libogg in tremor-aware applications.
40 Tremor is a decoder only.
41 endef
42
43 TARGET_CFLAGS += $(FPIC)
44 CONFIGURE_ARGS += --enable-shared --enable-static
45
46 define Build/InstallDev
47 $(INSTALL_DIR) $(1)/usr/include
48 $(CP) $(PKG_INSTALL_DIR)/usr/include/tremor $(1)/usr/include/
49 $(INSTALL_DIR) $(1)/usr/lib
50 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libvorbisidec.{a,so*} $(1)/usr/lib/
51 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
52 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
53 endef
54
55 define Package/libvorbisidec/install
56 $(INSTALL_DIR) $(1)/usr/lib
57 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libvorbisidec.so.* $(1)/usr/lib/
58 endef
59
60 $(eval $(call BuildPackage,libvorbisidec))