massive Makefile cleanup, add missing 'svn:keywords' property
[packages.git] / net / ctorrent / Makefile
1 #
2 # Copyright (C) 2006 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:=ctorrent
12 PKG_VERSION:=1.3.4-dnh2
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.rahul.net/dholmes/ctorrent/
17 PKG_MD5SUM:=6635e2d0d0ee21faeb85d95cd93c137b
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-dnh2
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/ctorrent
26   SECTION:=net
27   CATEGORY:=Network
28   DEPENDS:=+libopenssl +uclibcxx
29   TITLE:=console-based BitTorrent client
30   DESCRIPTION:=\
31         CTorrent is a BitTorrent client written in the C programming language, known to \\\
32         be a very robust and mature programming language, which produces fast and \\\
33         optimized application.
34   URL:=http://www.rahul.net/dholmes/ctorrent/
35 endef
36    
37 define Build/Configure
38         $(call Build/Configure/Default, \
39                 , \
40                 CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/openssl" \
41                 CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++" \
42                 LIBS="-nodefaultlibs -lcrypto -luClibc++ -lm -lc -lgcc" \
43         )
44 endef
45
46 define Build/Compile    
47         $(MAKE) -C $(PKG_BUILD_DIR) \
48                 DESTDIR="$(PKG_INSTALL_DIR)" \
49                 all install
50 endef
51         
52 define Package/ctorrent/install 
53         install -d -m0755 $(1)/usr/bin
54         $(CP) $(PKG_INSTALL_DIR)/usr/bin/ctorrent $(1)/usr/bin/
55 endef
56
57 $(eval $(call BuildPackage,ctorrent))