update tor to 0.1.2.17 (3 major bugfixes), mode description to a separate definition...
[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 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/streamripper
25 SECTION:=multimedia
26 CATEGORY:=Multimedia
27 DEPENDS:=+libmad
28 TITLE:=streamripper
29 DESCRIPTION:=\
30 Streamripper is an Open Source application that lets you record streaming mp3 to your hard drive.
31 URL:=http://streamripper.sourceforge.net/
32 endef
33
34
35 EXTRA_CFLAGS += -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include
36 define Build/Configure
37 $(call Build/Configure/Default, \
38 --without-ogg \
39 --with-included-argv \
40 --without-libiconv-prefix \
41 --with-included-tre \
42 --with-gnu-ld \
43 )
44 endef
45
46 define Build/Compile
47 $(call Build/Compile/Default,\
48 DESTDIR="$(PKG_INSTALL_DIR)" \
49 all install \
50 )
51 endef
52
53 define Package/streamripper/install
54 $(INSTALL_DIR) $(1)/usr/bin
55 $(CP) $(PKG_INSTALL_DIR)/usr/bin/streamripper $(1)/usr/bin/
56 $(CP) $(PKG_INSTALL_DIR)/usr/bin/agrep $(1)/usr/bin/
57 $(INSTALL_DIR) $(1)/usr/lib
58 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtre.so* $(1)/usr/lib/
59 endef
60
61 $(eval $(call BuildPackage,streamripper))