[packages] net-snmp: Enable ipv6 support if defined globally
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libsamplerate
11 PKG_VERSION:=0.1.3
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.mega-nerd.com/SRC/
16 PKG_MD5SUM:=3f91af22a6c4135485594d0d2c91d45d
17
18 PKG_FIXUP = libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/libsamplerate
23 SECTION:=libs
24 CATEGORY:=Libraries
25 DEPENDS:=+libsndfile
26 TITLE:=Sample Rate Converter
27 URL:=http://www.mega-nerd.com/SRC/index.html
28 endef
29
30 define Package/libsamplerate/description
31 Secret Rabbit Code (aka libsamplerate) is a Sample Rate
32 Converter for audio.
33 endef
34
35 TARGET_CFLAGS += $(FPIC)
36
37 CONFIGURE_ARGS += \
38 --disable-fftw \
39
40 define Build/Compile
41 $(MAKE) -C $(PKG_BUILD_DIR) \
42 DESTDIR="$(PKG_INSTALL_DIR)" \
43 all install
44 endef
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))