Merge pull request #313 from salzmdan/master
[feed/packages.git] / libs / libvorbisidec / Makefile
1 #
2 # Copyright (C) 2006-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:=libvorbisidec
11 PKG_VERSION:=1.0.2+svn18153
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
15 PKG_SOURCE_URL:=http://ftp.de.debian.org/debian/pool/main/libv/libvorbisidec/
16 PKG_MD5SUM:=4190859414c5d6760e316b5cf00fe7c5
17 PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
18
19 PKG_LICENSE:=BSD-3-Clause
20 PKG_LICENSE_FILES:=COPYING
21
22 PKG_FIXUP:=autoreconf
23 PKG_INSTALL:=1
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/libvorbisidec
28 SECTION:=libs
29 CATEGORY:=Libraries
30 TITLE:=A fixed-point Ogg/Vorbis decoder library
31 DEPENDS:= +libogg
32 URL:=http://wiki.xiph.org/index.php/Tremor
33 endef
34
35 define Package/libvorbisidec/description
36 libvorbisidec is "tremor", a fixed-point implementation of libvorbis.
37 It also has libogg built-in. It is suitable as a replacement for
38 libvorbis and libogg 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 endef
51
52 define Package/libvorbisidec/install
53 $(INSTALL_DIR) $(1)/usr/lib
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libvorbisidec.so.* $(1)/usr/lib/
55 endef
56
57 $(eval $(call BuildPackage,libvorbisidec))