summaryrefslogtreecommitdiffstats
path: root/net/xmule
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2004-04-29 02:48:07 +0000
committerlioux <lioux@FreeBSD.org>2004-04-29 02:48:07 +0000
commitceafa4c1a5d9769d04e564e80b3a0520ecf0aba5 (patch)
treeaa84532d995cbe8452215c8107949ba0500ddee2 /net/xmule
parentab5e4dedc23fb85b5883748425d88123c237c3fa (diff)
downloadFreeBSD-ports-ceafa4c1a5d9769d04e564e80b3a0520ecf0aba5.zip
FreeBSD-ports-ceafa4c1a5d9769d04e564e80b3a0520ecf0aba5.tar.gz
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/xmule')
-rw-r--r--net/xmule/Makefile14
-rw-r--r--net/xmule/distinfo4
-rw-r--r--net/xmule/files/patch-Preferences.cpp11
-rw-r--r--net/xmule/files/patch-src::otherfunctions.cpp11
4 files changed, 13 insertions, 27 deletions
diff --git a/net/xmule/Makefile b/net/xmule/Makefile
index c14f1e5..8b0f2ca 100644
--- a/net/xmule/Makefile
+++ b/net/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/xmule/distinfo b/net/xmule/distinfo
index 7db2062..3ab85ca 100644
--- a/net/xmule/distinfo
+++ b/net/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/xmule/files/patch-Preferences.cpp b/net/xmule/files/patch-Preferences.cpp
deleted file mode 100644
index 5498ca2..0000000
--- a/net/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/xmule/files/patch-src::otherfunctions.cpp b/net/xmule/files/patch-src::otherfunctions.cpp
deleted file mode 100644
index ce97442..0000000
--- a/net/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);
- }
-
OpenPOWER on IntegriCloud