Move curl from packages to trunk, opkg depends on it
[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:=2
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_FIXUP = libtool
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 CONFIGURE_ARGS += \
37 --disable-fftw \
38
39 define Build/Compile
40 $(MAKE) -C $(PKG_BUILD_DIR) \
41 DESTDIR="$(PKG_INSTALL_DIR)" \
42 all install
43 endef
44
45 define Build/InstallDev
46 $(INSTALL_DIR) $(1)
47 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
48 endef
49
50 define Package/libsamplerate/install
51 $(INSTALL_DIR) $(1)/usr/lib
52 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsamplerate.so.* $(1)/usr/lib/
53 endef
54
55 $(eval $(call BuildPackage,libsamplerate))