67c67dc5ab4956a0ced99759c976955fc2053312
[feed/packages.git] / libs / libsamplerate / Makefile
1 #
2 # Copyright (C) 2007-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:=libsamplerate
11 PKG_VERSION:=0.1.9
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.mega-nerd.com/SRC/
16 PKG_HASH:=0a7eb168e2f21353fb6d84da152e4512126f7dc48ccb0be80578c565413444c1
17
18 PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
19
20 PKG_LICENSE:=GPL-2.0
21 PKG_LICENSE_FILES:=COPYING
22 PKG_CPE_ID:=cpe:/a:libsamplerate_project:libsamplerate
23
24 PKG_INSTALL:=1
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/libsamplerate
29 SECTION:=libs
30 CATEGORY:=Libraries
31 DEPENDS:=+libsndfile
32 TITLE:=Sample Rate Converter
33 URL:=http://www.mega-nerd.com/SRC/index.html
34 endef
35
36 define Package/libsamplerate/description
37 Secret Rabbit Code (aka libsamplerate) is a Sample Rate
38 Converter for audio.
39 endef
40
41 TARGET_CFLAGS += $(FPIC)
42
43 CONFIGURE_ARGS += \
44 --disable-fftw \
45
46 define Build/InstallDev
47 $(INSTALL_DIR) $(1)
48 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
49 endef
50
51 define Package/libsamplerate/install
52 $(INSTALL_DIR) $(1)/usr/lib
53 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsamplerate.so.* $(1)/usr/lib/
54 endef
55
56 $(eval $(call BuildPackage,libsamplerate))