packages/net/ctorrent/Makefile
florian 2cc3051d46 Update ctorrent to dnh3 (#1587)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@6953 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-04-15 14:08:01 +00:00

58 lines
1.4 KiB
Makefile

#
# Copyright (C) 2006 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# $Id$
include $(TOPDIR)/rules.mk
PKG_NAME:=ctorrent
PKG_VERSION:=1.3.4-dnh3
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.rahul.net/dholmes/ctorrent/
PKG_MD5SUM:=ebed47837b071ca35b78bc26f2229c03
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-dnh3
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
define Package/ctorrent
SECTION:=net
CATEGORY:=Network
DEPENDS:=+libopenssl +uclibcxx
TITLE:=console-based BitTorrent client
DESCRIPTION:=\
CTorrent is a BitTorrent client written in the C programming language, known to \\\
be a very robust and mature programming language, which produces fast and \\\
optimized application.
URL:=http://www.rahul.net/dholmes/ctorrent/
endef
define Build/Configure
$(call Build/Configure/Default, \
, \
CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/openssl" \
CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++" \
LIBS="-nodefaultlibs -lcrypto -luClibc++ -lm -lc -lgcc" \
)
endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef
define Package/ctorrent/install
$(INSTALL_DIR) $(1)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/ctorrent $(1)/usr/bin/
endef
$(eval $(call BuildPackage,ctorrent))