69dc26e02a280c220804241542affe44f1f9c51d
[packages.git] / sound / streamripper / Makefile
1 #
2 # Copyright (C) 2007-2010 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:=streamripper
11 PKG_VERSION:=1.62.0
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
16 PKG_MD5SUM:=1a8353af3c36d56f2d8ee8552f632071
17
18 PKG_FIXUP:=libtool
19 PKG_LIBTOOL_PATHS:=. tre-0.7.2
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/streamripper
24   SECTION:=multimedia
25   CATEGORY:=Multimedia
26   DEPENDS:=+libmad +libfaad2
27   TITLE:=streamripper
28   URL:=http://streamripper.sourceforge.net/
29 endef
30
31 define Package/streamripper/description
32         Streamripper is an Open Source application that lets you record streaming mp3 to your hard drive.
33 endef
34
35
36 EXTRA_CFLAGS += $(TARGET_CPPFLAGS)
37
38 define Build/Configure
39         $(call Build/Configure/Default, \
40                 --without-ogg \
41                 --with-included-argv \
42                 --without-libiconv-prefix \
43                 --with-included-tre \
44                 --with-gnu-ld \
45         )
46 endef
47
48 define Build/Compile
49         $(call Build/Compile/Default,\
50                DESTDIR="$(PKG_INSTALL_DIR)" \
51                all install \
52         )
53 endef
54
55 define Package/streamripper/install
56         $(INSTALL_DIR) $(1)/usr/bin
57         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/streamripper $(1)/usr/bin/
58         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/agrep $(1)/usr/bin/
59         $(INSTALL_DIR) $(1)/usr/lib
60         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtre.so* $(1)/usr/lib/
61 endef
62
63 $(eval $(call BuildPackage,streamripper))