mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
- Update it to the lastest version of CVS, at 2007-02-04 in changelog. See in
the changelog for details: http://tinyurl.com/b3myl - Remove STRIP= from WITH_DEBUG, it's in bsd.port.mk now. - Remove IGNORE on FreeBSD 4.x, it's no longer need. Reviewed by: bland (iconv patch)
This commit is contained in:
parent
2406aa4328
commit
f53943b6c7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=184406
4 changed files with 47 additions and 36 deletions
|
@ -6,7 +6,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
PORTNAME= linuxdcpp
|
PORTNAME= linuxdcpp
|
||||||
PORTVERSION= 0.0.1.20070104 #0.0.1.YYYYMMDD
|
PORTVERSION= 0.0.1.20070204 #0.0.1.YYYYMMDD
|
||||||
CATEGORIES= net-p2p
|
CATEGORIES= net-p2p
|
||||||
MASTER_SITES= ${MASTER_SITE_LOCAL} \
|
MASTER_SITES= ${MASTER_SITE_LOCAL} \
|
||||||
http://people.freebsd.org/~mezz/distfiles/
|
http://people.freebsd.org/~mezz/distfiles/
|
||||||
|
@ -18,24 +18,19 @@ COMMENT= A port of the win32 DC++ direct connect client to POSIX-like systems
|
||||||
USE_XLIB= yes
|
USE_XLIB= yes
|
||||||
USE_BZIP2= yes
|
USE_BZIP2= yes
|
||||||
USE_GNOME= libglade2
|
USE_GNOME= libglade2
|
||||||
|
USE_ICONV= yes
|
||||||
USE_SCONS= yes
|
USE_SCONS= yes
|
||||||
USE_OPENSSL= yes
|
USE_OPENSSL= yes
|
||||||
|
|
||||||
.if defined(WITH_DEBUG)
|
.if defined(WITH_DEBUG)
|
||||||
SCONS_ARGS= debug=1
|
SCONS_ARGS= debug=1
|
||||||
STRIP=
|
|
||||||
.else
|
.else
|
||||||
SCONS_ARGS= release=1
|
SCONS_ARGS= release=1
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.include <bsd.port.pre.mk>
|
|
||||||
|
|
||||||
.if ${OSVERSION} < 500000
|
|
||||||
IGNORE= does not compile on FreeBSD 4.x, due to lack of wide character in libc
|
|
||||||
.endif
|
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
@${REINPLACE_CMD} -e 's|%%CC%%|${CC}|g ; s|%%CXX%%|${CXX}|g ; \
|
@${REINPLACE_CMD} -e 's|%%CC%%|${CC}|g ; s|%%CXX%%|${CXX}|g ; \
|
||||||
s|%%CXXFLAGS%%|${CXXFLAGS}|g' ${WRKSRC}/SConstruct
|
s|%%CXXFLAGS%%|${CXXFLAGS}|g ; s|%%LOCALBASE%%|${LOCALBASE}|g' \
|
||||||
|
${WRKSRC}/SConstruct
|
||||||
|
|
||||||
.include <bsd.port.post.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
MD5 (linuxdcpp-0.0.1.20070104.tar.bz2) = 53746052bdfaade59116e0ad6b30c592
|
MD5 (linuxdcpp-0.0.1.20070204.tar.bz2) = f3ad092a5757fd2e59a99eadfb1e9ad2
|
||||||
SHA256 (linuxdcpp-0.0.1.20070104.tar.bz2) = 5701ced266cf2ae13e165ccfcfab058b96bfe7c79c9878aa696458d0005d2c00
|
SHA256 (linuxdcpp-0.0.1.20070204.tar.bz2) = 56f76b7f3fd69bf30737b400aa64a1647fb0caedd96cbca80e692c46bcca5304
|
||||||
SIZE (linuxdcpp-0.0.1.20070104.tar.bz2) = 347597
|
SIZE (linuxdcpp-0.0.1.20070204.tar.bz2) = 349400
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
--- SConstruct.orig Mon Jan 1 12:17:39 2007
|
--- SConstruct.orig Mon Feb 5 01:15:08 2007
|
||||||
+++ SConstruct Mon Jan 1 12:19:12 2007
|
+++ SConstruct Mon Feb 5 01:17:03 2007
|
||||||
@@ -62,7 +62,7 @@
|
@@ -62,7 +62,7 @@
|
||||||
# Initialization
|
# Initialization
|
||||||
# ----------------------------------------------------------------------
|
# ----------------------------------------------------------------------
|
||||||
|
@ -9,29 +9,34 @@
|
||||||
|
|
||||||
conf = Configure(env,
|
conf = Configure(env,
|
||||||
custom_tests =
|
custom_tests =
|
||||||
@@ -128,11 +128,6 @@
|
@@ -130,11 +130,6 @@
|
||||||
print '\tHeader file unistd.h not found'
|
print '\tHeader file unistd.h not found'
|
||||||
Exit(1)
|
Exit(1)
|
||||||
|
|
||||||
-if not conf.CheckLibWithHeader('pthread', 'pthread.h', 'c'):
|
- if not conf.CheckLibWithHeader('pthread', 'pthread.h', 'c'):
|
||||||
- print '\tpthread library not found'
|
- print '\tpthread library not found'
|
||||||
- print '\tNote: You might have the lib but not the headers'
|
- print '\tNote: You might have the lib but not the headers'
|
||||||
- Exit(1)
|
- Exit(1)
|
||||||
-
|
-
|
||||||
if not conf.CheckLibWithHeader('z', 'zlib.h', 'c'):
|
if not conf.CheckLibWithHeader('z', 'zlib.h', 'c'):
|
||||||
print '\tz library (gzip/z compression) not found'
|
print '\tz library (gzip/z compression) not found'
|
||||||
print '\tNote: You might have the lib but not the headers'
|
print '\tNote: You might have the lib but not the headers'
|
||||||
@@ -159,11 +154,11 @@
|
@@ -157,15 +152,15 @@
|
||||||
env.Append(LINKFLAGS = ['-Wl,--as-needed'])
|
# Compile and link flags
|
||||||
|
# ----------------------------------------------------------------------
|
||||||
|
|
||||||
if env.has_key('debug') and env['debug']:
|
- env.Append(CXXFLAGS = Split('-I. -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64'))
|
||||||
- env.Append(CXXFLAGS = Split('-g -ggdb -D_DEBUG -Wall'))
|
+ env.Append(CXXFLAGS = Split('-I. -I%%LOCALBASE%%/include -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64'))
|
||||||
+ env.Append(CXXFLAGS = Split('%%CXXFLAGS%% -g -ggdb -D_DEBUG -Wall'))
|
env.Append(LINKFLAGS = ['-Wl,--as-needed'])
|
||||||
env.Append(LINKFLAGS = Split('-g -ggdb -Wall'))
|
|
||||||
|
|
||||||
if env.has_key('release') and env['release']:
|
if env.has_key('debug') and env['debug']:
|
||||||
- env.Append(CXXFLAGS = '-O3')
|
- env.Append(CXXFLAGS = Split('-g -ggdb -D_DEBUG -Wall'))
|
||||||
+ env.Append(CXXFLAGS = '%%CXXFLAGS%%')
|
+ env.Append(CXXFLAGS = Split('%%CXXFLAGS%% -g -ggdb -D_DEBUG -Wall'))
|
||||||
|
env.Append(LINKFLAGS = Split('-g -ggdb -Wall'))
|
||||||
|
|
||||||
if env.has_key('profile') and env['profile']:
|
if env.has_key('release') and env['release']:
|
||||||
env.Append(CXXFLAGS = '-pg')
|
- env.Append(CXXFLAGS = '-O3')
|
||||||
|
+ env.Append(CXXFLAGS = '%%CXXFLAGS%%')
|
||||||
|
|
||||||
|
if env.has_key('profile') and env['profile']:
|
||||||
|
env.Append(CXXFLAGS = '-pg')
|
||||||
|
|
11
net-p2p/linuxdcpp/files/patch-client_Text.cpp
Normal file
11
net-p2p/linuxdcpp/files/patch-client_Text.cpp
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- client/Text.cpp.orig Mon Feb 5 17:59:13 2007
|
||||||
|
+++ client/Text.cpp Mon Feb 5 17:59:21 2007
|
||||||
|
@@ -309,7 +309,7 @@
|
||||||
|
char *outbuf = (char *)tmp.data();
|
||||||
|
|
||||||
|
while(inleft > 0) {
|
||||||
|
- rv = iconv(cd, (char **)&inbuf, &inleft, &outbuf, &outleft);
|
||||||
|
+ rv = iconv(cd, &inbuf, &inleft, &outbuf, &outleft);
|
||||||
|
if(rv == (size_t)-1) {
|
||||||
|
size_t used = outbuf - tmp.data();
|
||||||
|
if(errno == E2BIG) {
|
Loading…
Add table
Reference in a new issue