postgresql: moved to github
[packages.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:=autoreconf
19 PKG_REMOVE_FILES:=autogen.sh
20
21 PKG_INSTALL:=1
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/libsamplerate
26   SECTION:=libs
27   CATEGORY:=Libraries
28   DEPENDS:=+libsndfile
29   TITLE:=Sample Rate Converter
30   URL:=http://www.mega-nerd.com/SRC/index.html
31 endef
32
33 define Package/libsamplerate/description
34  Secret Rabbit Code (aka libsamplerate) is a Sample Rate
35  Converter for audio.
36 endef
37
38 TARGET_CFLAGS += $(FPIC)
39
40 CONFIGURE_ARGS += \
41         --disable-fftw \
42
43 define Build/InstallDev
44         $(INSTALL_DIR) $(1)
45         $(CP) $(PKG_INSTALL_DIR)/* $(1)/
46 endef
47
48 define Package/libsamplerate/install
49         $(INSTALL_DIR) $(1)/usr/lib
50         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsamplerate.so.* $(1)/usr/lib/
51 endef
52
53 $(eval $(call BuildPackage,libsamplerate))