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