Linuxdcpp is a port of the win32 DC++ direct connect client to POSIX-like

systems. Despite the name, it does run on other platforms beside Linux.
Linuxdcpp uses the gtk2 toolkit.

WWW: http://linuxdcpp.berlios.de/
This commit is contained in:
Jeremy Messenger 2006-07-29 17:46:11 +00:00
parent 865f26699f
commit ded61394ac
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=169055
8 changed files with 220 additions and 0 deletions

View file

@ -60,6 +60,7 @@
SUBDIR += linux-edonkey-tool-recovermet
SUBDIR += linux-jigdo
SUBDIR += linux-overnet-core
SUBDIR += linuxdcpp
SUBDIR += minder
SUBDIR += mldonkey
SUBDIR += mldonkey-core

View file

@ -0,0 +1,34 @@
# New ports collection makefile for: linuxdcpp
# Date created: 19 June 2005
# Whom: Mezz <mezz@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= linuxdcpp
PORTVERSION= 0.0.1.20060726 #0.0.1.YYYYMMDD
CATEGORIES= net-p2p
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR=mezz
MAINTAINER= mezz@FreeBSD.org
COMMENT= A port of the win32 DC++ direct connect client to POSIX-like systems
USE_GCC= 3.4
USE_XLIB= yes
USE_BZIP2= yes
USE_GNOME= libglade2
USE_SCONS= yes
SCONS_ARGS= release=1
DATADIR= ${PREFIX}/share/ldcpp
DOCSDIR= ${PREFIX}/share/doc/ldcpp
post-extract:
@${RM} ${WRKSRC}/linux/prefix.*
post-patch:
@${REINPLACE_CMD} -e 's|%%CC%%|${CC}|g ; s|%%CXX%%|${CXX}|g ; \
s|%%CXXFLAGS%%|${CXXFLAGS}|g' ${WRKSRC}/SConstruct
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
MD5 (linuxdcpp-0.0.1.20060726.tar.bz2) = 86bf306f8a9b5d81062e9f41e93476f8
SHA256 (linuxdcpp-0.0.1.20060726.tar.bz2) = c7e7ea557f48c1c7b15a1590e8aa0b5895092f074e91815adc4906a0335b3ba4
SIZE (linuxdcpp-0.0.1.20060726.tar.bz2) = 355942

View file

@ -0,0 +1,91 @@
--- SConstruct.orig Sun Jul 16 11:18:33 2006
+++ SConstruct Sun Jul 16 11:22:24 2006
@@ -38,28 +38,12 @@
context.Result(ret)
return ret
-def CheckCXXVersion(context, name, major, minor):
- context.Message('Checking for %s >= %d.%d...' % (name, major, minor))
- ret = commands.getoutput('%s -dumpversion' % name)
-
- retval = 0
- try:
- if ((string.atoi(ret[0]) == major and string.atoi(ret[2]) >= minor)
- or (string.atoi(ret[0]) > major)):
- retval = 1
- except ValueError:
- print "Oops! No C++ compiler found!"
-
- context.Result(retval)
- return retval
-
-
# Initialize the environment and configure variables
-env = Environment(ENV = os.environ)
+env = Environment(ENV = os.environ, CC = '%%CC%%', CXX = '%%CXX%%')
conf = Configure(env,
- custom_tests = {'CheckPKGConfig' : CheckPKGConfig, 'CheckPKG' : CheckPKG, 'CheckCXXVersion' : CheckCXXVersion},
+ custom_tests = {'CheckPKGConfig' : CheckPKGConfig, 'CheckPKG' : CheckPKG},
conf_dir = 'build/sconf',
log_file = 'build/sconf/config.log')
@@ -68,27 +52,6 @@
# Check for dependencies
-# This looks up the CXX enviroment variable so that people can specify
-# what g++ to use on the command line (eg. prompt:> CXX=foo scons)
-cxx = conf.env.Dictionary()['CXX']
-if not conf.CheckCXXVersion(cxx, 3, 4):
- if WhereIs('g++-3.4') != None:
- print 'Found g++-3.4'
- cxx = 'g++-3.4'
- else:
- print 'Compiler version check failed. g++ 3.4 or later is needed'
- Exit(1)
-
-# Add support for compiler caches to speed-up compilation.
-if os.popen('distcc 2> /dev/null').read():
- cxx = 'distcc ' + cxx
- print 'Enabling distcc...'
-if os.popen('ccache 2> /dev/null').read():
- cxx = 'ccache ' + cxx
- print 'Enabling ccache...'
-
-conf.env.Replace(CXX = cxx)
-
if not conf.CheckPKGConfig():
print 'pkg-config not found.'
Exit(1)
@@ -120,11 +83,6 @@
print 'Can\'t live without it, sorry'
Exit(1)
-if not conf.CheckLibWithHeader('pthread', 'pthread.h', 'c'):
- print 'Did not find the pthread library, exiting!'
- print 'Note: You might have the lib but not the headers'
- Exit(1)
-
if not conf.CheckLibWithHeader('z', 'zlib.h', 'c'):
print 'Did not find the z library (gzip/z compression)'
print 'Can\'t live without it, exiting'
@@ -138,7 +96,7 @@
Exit(1)
env = conf.Finish()
-env.Append(CXXFLAGS = ['-I.', '-D_GNU_SOURCE', '-DENABLE_BINRELOC', '-D_FILE_OFFSET_BITS=64'])
+env.Append(CXXFLAGS = ['-I.', '-D_GNU_SOURCE', '-D_FILE_OFFSET_BITS=64'])
# Parse command line parameters
@@ -150,7 +108,7 @@
release = ARGUMENTS.get('release', 0)
if int(release):
- env.Append(CXXFLAGS = '-O3')
+ env.Append(CXXFLAGS = '%%CXXFLAGS%%')
profile = ARGUMENTS.get('profile', 0)
if int(profile):

View file

@ -0,0 +1,10 @@
--- client/stdinc.h.orig Sun Jun 25 16:11:55 2006
+++ client/stdinc.h Sun Jun 25 16:12:05 2006
@@ -47,6 +47,7 @@
#else
#include <unistd.h>
+#include <stdint.h>
#endif
#include <stdio.h>

View file

@ -0,0 +1,34 @@
--- linux/SConstruct.orig Sun Jul 16 11:25:22 2006
+++ linux/SConstruct Sun Jul 16 11:25:57 2006
@@ -8,7 +8,6 @@
'hashdialog.cc',
'hub.cc',
'mainwindow.cc',
- 'prefix.cc',
'privatemessage.cc',
'publichubs.cc',
'search.cc',
--- linux/wulformanager.cc.orig Sun Jul 16 11:25:32 2006
+++ linux/wulformanager.cc Sun Jul 16 11:26:29 2006
@@ -17,7 +17,6 @@
*/
#include "wulformanager.hh"
-#include "prefix.hh"
#include "publichubs.hh"
#include "downloadqueue.hh"
#include "hub.hh"
@@ -230,13 +229,7 @@
string WulforManager::getPath()
{
-#ifdef _DATADIR
string ret = string(_DATADIR) + PATH_SEPARATOR_STR + "ldcpp";
-#else
- char *temp = br_extract_dir(SELFPATH);
- string ret = string(temp);
- free(temp);
-#endif
return ret;
}

View file

@ -0,0 +1,5 @@
Linuxdcpp is a port of the win32 DC++ direct connect client to POSIX-like
systems. Despite the name, it does run on other platforms beside Linux.
Linuxdcpp uses the GTK+2 toolkit.
WWW: http://linuxdcpp.berlios.de/

View file

@ -0,0 +1,42 @@
bin/ldcpp
%%DOCSDIR%%/Changelog.txt
%%DOCSDIR%%/Credits.txt
%%DOCSDIR%%/License.txt
%%DOCSDIR%%/Readme.txt
%%DATADIR%%/glade/downloadqueue.glade
%%DATADIR%%/glade/favoritehubs.glade
%%DATADIR%%/glade/finishedtransfers.glade
%%DATADIR%%/glade/hash.glade
%%DATADIR%%/glade/hub.glade
%%DATADIR%%/glade/mainwindow.glade
%%DATADIR%%/glade/privatemessage.glade
%%DATADIR%%/glade/publichubs.glade
%%DATADIR%%/glade/search.glade
%%DATADIR%%/glade/settingsdialog.glade
%%DATADIR%%/glade/sharebrowser.glade
%%DATADIR%%/pixmaps/FinishedDL.png
%%DATADIR%%/pixmaps/FinishedUL.png
%%DATADIR%%/pixmaps/connect.png
%%DATADIR%%/pixmaps/dc++-fw-op.png
%%DATADIR%%/pixmaps/dc++-fw.png
%%DATADIR%%/pixmaps/dc++-op.png
%%DATADIR%%/pixmaps/dc++.png
%%DATADIR%%/pixmaps/download.png
%%DATADIR%%/pixmaps/favhubs.png
%%DATADIR%%/pixmaps/hash.png
%%DATADIR%%/pixmaps/linuxdcpp-icon.png
%%DATADIR%%/pixmaps/linuxdcpp.png
%%DATADIR%%/pixmaps/normal-fw-op.png
%%DATADIR%%/pixmaps/normal-fw.png
%%DATADIR%%/pixmaps/normal-op.png
%%DATADIR%%/pixmaps/normal.png
%%DATADIR%%/pixmaps/publichubs.png
%%DATADIR%%/pixmaps/queue.png
%%DATADIR%%/pixmaps/quit.png
%%DATADIR%%/pixmaps/search.png
%%DATADIR%%/pixmaps/settings.png
%%DATADIR%%/pixmaps/upload.png
@dirrm %%DATADIR%%/pixmaps
@dirrm %%DATADIR%%/glade
@dirrm %%DATADIR%%
@dirrm %%DOCSDIR%%