use shipped configure script, disable execinfo, bump major, less build spam

No need for autoconf, both have scripts generated with 2.72 already.

libtorrent has no mention of libexecinfo, rtorrent expects it via LDFLAGS,
but does not require it;  both pick it up by default during configure.
I just disabled it since it seems fine without.

check_sym reports symbol removal and struct size changes.

-Wall is on by default and cannot be disabled, yet the code base is full of
offending stuff, so silence the two noisy warnings preventing walls of text.

Feedback? OK?

Index: net/rtorrent/Makefile
===================================================================
RCS file: /cvs/ports/net/rtorrent/Makefile,v
diff -u -p -r1.72 Makefile
--- net/rtorrent/Makefile       17 Apr 2025 08:19:47 -0000      1.72
+++ net/rtorrent/Makefile       22 Apr 2025 21:31:58 -0000
@@ -1,6 +1,7 @@
 COMMENT=               ncurses BitTorrent client based on libTorrent
 
 DISTNAME=              rtorrent-0.10.0
+REVISION=              0
 EPOCH=                 0
 CATEGORIES=            net
 
@@ -9,26 +10,29 @@ HOMEPAGE=            https://rakshasa.github.io/rt
 # GPLv2+
 PERMIT_PACKAGE=        Yes
 
-WANTLIB += ${COMPILER_LIBCXX} c crypto curl curses m nghttp2 pthread
-WANTLIB += ssl torrent>=21 z
+WANTLIB += ${COMPILER_LIBCXX} c cppunit curl curses m
+WANTLIB += torrent
 
 COMPILER =             base-clang ports-gcc
 
 SITES=                 https://github.com/rakshasa/rtorrent-archive/raw/master/
 
-BUILD_DEPENDS=         devel/cppunit
-LIB_DEPENDS=           net/libtorrent>=0.13.4 \
+LIB_DEPENDS =          devel/cppunit \
+                       net/libtorrent>=0.13.4 \
                        net/curl
 
-CONFIGURE_STYLE=       autoconf
-AUTOCONF_VERSION=      2.71
-CONFIGURE_ENV +=       LDFLAGS="-pthread -lexecinfo"
-CONFIGURE_ARGS=                --disable-debug
+CONFIGURE_STYLE =      gnu
+CONFIGURE_ENV +=       LDFLAGS=-pthread
+CONFIGURE_ARGS =       --disable-debug \
+                       --disable-execinfo
 
 DEBUG_PACKAGES =       ${BUILD_PACKAGES}
 
 # uses std::bind2nd which was removed in c++17
 CXXFLAGS +=            -std=c++14
+# silence build log spam
+CXXFLAGS +=            -Wno-deprecated-declarations \
+                       -Wno-exceptions
 
 post-install:
        ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/rtorrent
Index: net/libtorrent/Makefile
===================================================================
RCS file: /cvs/ports/net/libtorrent/Makefile,v
diff -u -p -r1.66 Makefile
--- net/libtorrent/Makefile     17 Apr 2025 08:19:08 -0000      1.66
+++ net/libtorrent/Makefile     22 Apr 2025 21:28:24 -0000
@@ -7,6 +7,7 @@ BROKEN-sh =             undefined references to __s
 NOT_FOR_ARCHS=         ${GCC3_ARCHS}
 
 DISTNAME=              libtorrent-0.14.0
+REVISION=              0
 EPOCH=                 0
 SHARED_LIBS +=         torrent 22.1    # .18.0
 CATEGORIES=            net devel
@@ -24,15 +25,19 @@ COMPILER =          base-clang ports-gcc base-gc
 
 LIB_DEPENDS=           devel/cppunit
 
-CONFIGURE_STYLE=       autoconf
-AUTOCONF_VERSION=      2.71
-CONFIGURE_ARGS=                --enable-static \
-                       --with-kqueue \
-                       --without-epoll \
+CONFIGURE_STYLE =      gnu
+CONFIGURE_ARGS =       --disable-debug \
+                       --disable-execinfo \
                        --disable-instrumentation \
                        --disable-mincore \
-                       --disable-debug
+                       --enable-static \
+                       --with-kqueue \
+                       --without-epoll
 
 DEBUG_PACKAGES =       ${BUILD_PACKAGES}
+
+# silence build log spam
+CXXFLAGS +=            -Wno-deprecated-declarations \
+                       -Wno-exceptions
 
 .include <bsd.port.mk>

Reply via email to