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