diff options
author | wbx <wbx@hydrogenium.(none)> | 2009-05-17 14:41:34 +0200 |
---|---|---|
committer | wbx <wbx@hydrogenium.(none)> | 2009-05-17 14:41:34 +0200 |
commit | 219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch) | |
tree | b9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/ctorrent |
Initial import
Diffstat (limited to 'package/ctorrent')
-rw-r--r-- | package/ctorrent/Config.in | 29 | ||||
-rwxr-xr-x | package/ctorrent/Makefile | 36 | ||||
-rw-r--r-- | package/ctorrent/ipkg/ctorrent.control | 4 | ||||
-rw-r--r-- | package/ctorrent/patches/patch-btcontent_cpp | 16 | ||||
-rw-r--r-- | package/ctorrent/patches/patch-btfiles_cpp | 16 |
5 files changed, 101 insertions, 0 deletions
diff --git a/package/ctorrent/Config.in b/package/ctorrent/Config.in new file mode 100644 index 000000000..169546625 --- /dev/null +++ b/package/ctorrent/Config.in @@ -0,0 +1,29 @@ +config ADK_PACKAGE_CTORRENT + prompt "ctorrent.......................... console-based BitTorrent client" + tristate + default n + depends on ADK_CXX + help + 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. + + http://www.rahul.net/dholmes/ctorrent/ + +choice +prompt "C++ library to use" +depends on ADK_PACKAGE_CTORRENT +default ADK_COMPILE_CTORRENT_WITH_STDCXX if ADK_TARGET_LIB_GLIBC +default ADK_COMPILE_CTORRENT_WITH_UCLIBCXX if ADK_TARGET_LIB_UCLIBC + +config ADK_COMPILE_CTORRENT_WITH_STDCXX + bool "Standard C++ library" + select ADK_PACKAGE_LIBSTDCXX + help + +config ADK_COMPILE_CTORRENT_WITH_UCLIBCXX + bool "Embedded uClibc++ library" + select ADK_PACKAGE_UCLIBCXX + help + +endchoice diff --git a/package/ctorrent/Makefile b/package/ctorrent/Makefile new file mode 100755 index 000000000..964ae555a --- /dev/null +++ b/package/ctorrent/Makefile @@ -0,0 +1,36 @@ +# $Id$ +#- +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include ${TOPDIR}/rules.mk + +PKG_NAME:= ctorrent +PKG_VERSION:= 1.3.4-dnh2 +PKG_RELEASE:= 2 +PKG_MD5SUM:= 6635e2d0d0ee21faeb85d95cd93c137b +MASTER_SITES:= http://www.rahul.net/dholmes/ctorrent/ +WRKDIST= ${WRKDIR}/${PKG_NAME}-dnh2 +ifeq ($(ADK_COMPILE_CTORRENT_WITH_UCLIBCXX),y) +PKG_DEPEND:= uclibc++ +else +PKG_DEPEND:= libstdcxx +endif + +include ${TOPDIR}/mk/package.mk + +$(eval $(call PKG_template,CTORRENT,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${ARCH},${PKG_DEPEND})) + +ifeq ($(ADK_COMPILE_CTORRENT_WITH_UCLIBCXX),y) +TCXXFLAGS+= -fno-builtin -fno-rtti -nostdinc++ +TLDFLAGS+= -lgcc_s -luClibc++ -lc -lm -nodefaultlibs +endif +CONFIGURE_STYLE= gnu +BUILD_STYLE= auto +INSTALL_STYLE= auto + +post-install: + ${INSTALL_DIR} ${IDIR_CTORRENT} + ${CP} ${WRKINST}/* ${IDIR_CTORRENT}/ + +include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/ctorrent/ipkg/ctorrent.control b/package/ctorrent/ipkg/ctorrent.control new file mode 100644 index 000000000..0b7d1d59e --- /dev/null +++ b/package/ctorrent/ipkg/ctorrent.control @@ -0,0 +1,4 @@ +Package: ctorrent +Priority: optional +Section: net +Description: console-based BitTorrent client diff --git a/package/ctorrent/patches/patch-btcontent_cpp b/package/ctorrent/patches/patch-btcontent_cpp new file mode 100644 index 000000000..e402465f8 --- /dev/null +++ b/package/ctorrent/patches/patch-btcontent_cpp @@ -0,0 +1,16 @@ +$Id$ +--- ctorrent-dnh2.orig/btcontent.cpp 2006-01-02 03:40:49.000000000 +0100 ++++ ctorrent-dnh2/btcontent.cpp 2007-01-22 23:43:50.000000000 +0100 +@@ -9,12 +9,8 @@ + #else + #include <unistd.h> + #include <sys/param.h> +-#if defined(HAVE_LIBCRYPT) || defined(HAVE_LIBMD) || defined(HAVE_LIBCRYPTO) +-#include <sha.h> +-#elif defined(HAVE_LIBSSL) + #include <openssl/sha.h> + #endif +-#endif + + #include <time.h> + #include <sys/stat.h> diff --git a/package/ctorrent/patches/patch-btfiles_cpp b/package/ctorrent/patches/patch-btfiles_cpp new file mode 100644 index 000000000..e390083bb --- /dev/null +++ b/package/ctorrent/patches/patch-btfiles_cpp @@ -0,0 +1,16 @@ +$Id$ +--- ctorrent-dnh2.orig/btfiles.cpp 2006-01-02 03:41:21.000000000 +0100 ++++ ctorrent-dnh2/btfiles.cpp 2007-01-22 23:46:13.000000000 +0100 +@@ -8,12 +8,8 @@ + #include <unistd.h> + #include <dirent.h> + #include <sys/param.h> +-#if defined(HAVE_LIBCRYPT) || defined(HAVE_LIBMD) || defined(HAVE_LIBCRYPTO) +-#include <sha.h> +-#elif defined(HAVE_LIBSSL) + #include <openssl/sha.h> + #endif +-#endif + + #include <time.h> + #include <sys/stat.h> |