[packages] zaptel: update and fix kernel module build for 2.6.34
[openwrt/svn-archive/archive.git] / libs / libsamplerate / Makefile
1 #
2 # Copyright (C) 2007-2009 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.7
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_MD5SUM:=ad093e60ec44f0a60de8e29983ddbc0f
17
18 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/libsamplerate
24 SECTION:=libs
25 CATEGORY:=Libraries
26 DEPENDS:=+libsndfile
27 TITLE:=Sample Rate Converter
28 URL:=http://www.mega-nerd.com/SRC/index.html
29 endef
30
31 define Package/libsamplerate/description
32 Secret Rabbit Code (aka libsamplerate) is a Sample Rate
33 Converter for audio.
34 endef
35
36 TARGET_CFLAGS += $(FPIC)
37
38 CONFIGURE_ARGS += \
39 --disable-fftw \
40
41 define Build/InstallDev
42 $(INSTALL_DIR) $(1)
43 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
44 endef
45
46 define Package/libsamplerate/install
47 $(INSTALL_DIR) $(1)/usr/lib
48 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsamplerate.so.* $(1)/usr/lib/
49 endef
50
51 $(eval $(call BuildPackage,libsamplerate))