e3bda16d356037b51f4a378e238569328040e31b
[openwrt/svn-archive/archive.git] / libs / libsamplerate / Makefile
1 #
2 # Copyright (C) 2007-2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=libsamplerate
12 PKG_VERSION:=0.1.3
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.mega-nerd.com/SRC/
17 PKG_MD5SUM:=3f91af22a6c4135485594d0d2c91d45d
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 PKG_FIXUP = libtool
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/libsamplerate
27 SECTION:=libs
28 CATEGORY:=Libraries
29 DEPENDS:=+libsndfile
30 TITLE:=Sample Rate Converter
31 URL:=http://www.mega-nerd.com/SRC/index.html
32 endef
33
34 define Package/libsamplerate/description
35 Secret Rabbit Code (aka libsamplerate) is a Sample Rate
36 Converter for audio
37 endef
38
39 CONFIGURE_ARGS += \
40 --disable-fftw \
41
42 define Build/Compile
43 $(MAKE) -C $(PKG_BUILD_DIR) \
44 DESTDIR="$(PKG_INSTALL_DIR)" \
45 all install
46 endef
47
48 define Build/InstallDev
49 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
50 endef
51
52 define Package/libsamplerate/install
53 $(INSTALL_DIR) $(1)/usr/bin
54 $(CP) $(PKG_INSTALL_DIR)/usr/* $(1)/usr/bin/
55 $(INSTALL_DIR) $(1)/usr/lib
56 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsamplerate.* $(1)/usr/lib/
57 endef
58
59 $(eval $(call BuildPackage,libsamplerate))