diff options
author | mezz <mezz@FreeBSD.org> | 2006-07-30 01:46:11 +0800 |
---|---|---|
committer | mezz <mezz@FreeBSD.org> | 2006-07-30 01:46:11 +0800 |
commit | 41f556a437b9ea2c14ceac25640330289c055ad3 (patch) | |
tree | 1a82fe5fd1e6daa525e5f89ac8f3e39130c6e39c /net-p2p/linuxdcpp | |
parent | 1ca38343fd53eb50657f653eff90d1620c08e9f4 (diff) | |
download | freebsd-ports-gnome-41f556a437b9ea2c14ceac25640330289c055ad3.tar.gz freebsd-ports-gnome-41f556a437b9ea2c14ceac25640330289c055ad3.tar.zst freebsd-ports-gnome-41f556a437b9ea2c14ceac25640330289c055ad3.zip |
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/
Diffstat (limited to 'net-p2p/linuxdcpp')
-rw-r--r-- | net-p2p/linuxdcpp/Makefile | 34 | ||||
-rw-r--r-- | net-p2p/linuxdcpp/distinfo | 3 | ||||
-rw-r--r-- | net-p2p/linuxdcpp/files/patch-SConstruct | 91 | ||||
-rw-r--r-- | net-p2p/linuxdcpp/files/patch-client_stdinc.h | 10 | ||||
-rw-r--r-- | net-p2p/linuxdcpp/files/patch-disable_binreloc | 34 | ||||
-rw-r--r-- | net-p2p/linuxdcpp/pkg-descr | 5 | ||||
-rw-r--r-- | net-p2p/linuxdcpp/pkg-plist | 42 |
7 files changed, 219 insertions, 0 deletions
diff --git a/net-p2p/linuxdcpp/Makefile b/net-p2p/linuxdcpp/Makefile new file mode 100644 index 000000000000..1cdf4340a100 --- /dev/null +++ b/net-p2p/linuxdcpp/Makefile @@ -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> diff --git a/net-p2p/linuxdcpp/distinfo b/net-p2p/linuxdcpp/distinfo new file mode 100644 index 000000000000..2e6dd8ddb143 --- /dev/null +++ b/net-p2p/linuxdcpp/distinfo @@ -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 diff --git a/net-p2p/linuxdcpp/files/patch-SConstruct b/net-p2p/linuxdcpp/files/patch-SConstruct new file mode 100644 index 000000000000..e62cfef80ee5 --- /dev/null +++ b/net-p2p/linuxdcpp/files/patch-SConstruct @@ -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): diff --git a/net-p2p/linuxdcpp/files/patch-client_stdinc.h b/net-p2p/linuxdcpp/files/patch-client_stdinc.h new file mode 100644 index 000000000000..23fa2ef705c0 --- /dev/null +++ b/net-p2p/linuxdcpp/files/patch-client_stdinc.h @@ -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> diff --git a/net-p2p/linuxdcpp/files/patch-disable_binreloc b/net-p2p/linuxdcpp/files/patch-disable_binreloc new file mode 100644 index 000000000000..8e4efac42fab --- /dev/null +++ b/net-p2p/linuxdcpp/files/patch-disable_binreloc @@ -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; + } + diff --git a/net-p2p/linuxdcpp/pkg-descr b/net-p2p/linuxdcpp/pkg-descr new file mode 100644 index 000000000000..f0605ca4cdcb --- /dev/null +++ b/net-p2p/linuxdcpp/pkg-descr @@ -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/ diff --git a/net-p2p/linuxdcpp/pkg-plist b/net-p2p/linuxdcpp/pkg-plist new file mode 100644 index 000000000000..5b10889b3957 --- /dev/null +++ b/net-p2p/linuxdcpp/pkg-plist @@ -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%% |