aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p/xmule
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2004-04-29 10:48:07 +0800
committerlioux <lioux@FreeBSD.org>2004-04-29 10:48:07 +0800
commitceafa4c1a5d9769d04e564e80b3a0520ecf0aba5 (patch)
treeaa84532d995cbe8452215c8107949ba0500ddee2 /net-p2p/xmule
parentab5e4dedc23fb85b5883748425d88123c237c3fa (diff)
downloadfreebsd-ports-gnome-ceafa4c1a5d9769d04e564e80b3a0520ecf0aba5.tar.gz
freebsd-ports-gnome-ceafa4c1a5d9769d04e564e80b3a0520ecf0aba5.tar.zst
freebsd-ports-gnome-ceafa4c1a5d9769d04e564e80b3a0520ecf0aba5.zip
o Update to 1.8.2
o Remove BROKEN since this version no longer SIGSEVs during initial trials o Uphold C{C,XX}
Diffstat (limited to 'net-p2p/xmule')
-rw-r--r--net-p2p/xmule/Makefile14
-rw-r--r--net-p2p/xmule/distinfo4
-rw-r--r--net-p2p/xmule/files/patch-Preferences.cpp11
-rw-r--r--net-p2p/xmule/files/patch-src::otherfunctions.cpp11
4 files changed, 13 insertions, 27 deletions
diff --git a/net-p2p/xmule/Makefile b/net-p2p/xmule/Makefile
index c14f1e59bef2..8b0f2caa1425 100644
--- a/net-p2p/xmule/Makefile
+++ b/net-p2p/xmule/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= xmule
-PORTVERSION= 1.8.1
+PORTVERSION= 1.8.2
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= xmule
@@ -18,8 +18,6 @@ LIB_DEPENDS= expat.5:${PORTSDIR}/textproc/expat2 \
wx_gtk2-2.4.0:${PORTSDIR}/x11-toolkits/wxgtk2
RUN_DEPENDS= wget:${PORTSDIR}/ftp/wget
-BROKEN= SIGSEGVs too easily. Help to fix it is highly appreciated
-
USE_GETTEXT= yes
USE_X_PREFIX= yes
USE_BZIP2= yes
@@ -37,12 +35,16 @@ CONFIGURE_ARGS= --without-included-gettext \
--with-wx-config=${WX_CONFIG}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} ${PTHREAD_CFLAGS}" \
LDFLAGS="${LDFLAGS} ${PTHREAD_LIBS}"
+MAKE_ENV= CC="${CC}" CXX="${CXX}"
# for debugging purposes
STRIP=
WX_CONFIG?= ${X11BASE}/bin/wxgtk2-2.4-config
+FILES_ATOLL_PATCH= src/Preferences.cpp \
+ src/otherfunctions.cpp
+
post-patch:
# it works for FreeBSD as well
@${REINPLACE_CMD} -E \
@@ -59,6 +61,12 @@ post-patch:
@${REINPLACE_CMD} -E \
-e 's|cp -p|${INSTALL_DATA}|' \
${WRKSRC}/po/Makefile.in.in
+# use correct FreeBSD atoll() prototype
+.for file in ${FILES_ATOLL_PATCH}
+ @${REINPLACE_CMD} -E \
+ -e 's|atoll[[:space:]]*\([[:space:]]*char|atoll(const char|' \
+ ${WRKSRC}/${file}
+.endfor
pre-configure:
@${FIND} ${WRKSRC} -type f -name "Makefile.in" | \
diff --git a/net-p2p/xmule/distinfo b/net-p2p/xmule/distinfo
index 7db20629c8ac..3ab85ca13aea 100644
--- a/net-p2p/xmule/distinfo
+++ b/net-p2p/xmule/distinfo
@@ -1,2 +1,2 @@
-MD5 (xmule-1.8.1.tar.bz2) = 7b385558338e4823cbc971456cd075fe
-SIZE (xmule-1.8.1.tar.bz2) = 1166348
+MD5 (xmule-1.8.2.tar.bz2) = 4d87272ba1a224e78a9368986bb4510e
+SIZE (xmule-1.8.2.tar.bz2) = 1177837
diff --git a/net-p2p/xmule/files/patch-Preferences.cpp b/net-p2p/xmule/files/patch-Preferences.cpp
deleted file mode 100644
index 5498ca235889..000000000000
--- a/net-p2p/xmule/files/patch-Preferences.cpp
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/Preferences.cpp.orig Tue Sep 9 00:56:24 2003
-+++ src/Preferences.cpp Tue Sep 9 00:56:21 2003
-@@ -60,7 +60,7 @@
- #endif
-
- #ifdef __FreeBSD__
--extern long long atoll(char *s);
-+extern long long atoll(const char *s);
- #endif /* __FreeBSD__ */
-
- /// new implementation
diff --git a/net-p2p/xmule/files/patch-src::otherfunctions.cpp b/net-p2p/xmule/files/patch-src::otherfunctions.cpp
deleted file mode 100644
index ce9744278b99..000000000000
--- a/net-p2p/xmule/files/patch-src::otherfunctions.cpp
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/otherfunctions.cpp.orig Mon Apr 5 19:58:46 2004
-+++ src/otherfunctions.cpp Mon Apr 5 19:59:45 2004
-@@ -662,7 +662,7 @@
- }
-
- #ifdef __FreeBSD__
--long long atoll(char * s) {
-+long long atoll(const char * s) {
- return strtoll(s, (char **) NULL, 10);
- }
-