Edit

IABSD.fr/ports/net/rtorrent/Makefile

Branch :

  • Show log

    Commit

  • Author : jca
    Date : 2026-08-20 12:20:51
    Hash : 6ddbbbba
    Message : rtorrent: add default fallback cache line size This type of hard failure is just dumb as it forced many patches for both Linux and non-Linux systems out there. Fix the build on riscv64 and most probably on mips64, sparc64 etc

  • net/rtorrent/Makefile
  • COMMENT =		ncurses BitTorrent client based on libTorrent
    
    V =			0.16.20
    EPOCH =			0
    REVISION =		0
    DISTNAME =		rtorrent-$V
    CATEGORIES =		net
    
    HOMEPAGE =		https://rakshasa.github.io/rtorrent/
    
    # GPLv2+
    PERMIT_PACKAGE =	Yes
    
    WANTLIB += ${COMPILER_LIBCXX}
    WANTLIB += c crypto curl curses execinfo m nghttp2 nghttp3 ngtcp2
    WANTLIB += ngtcp2_crypto_libressl ssl torrent z
    
    COMPILER =		base-clang ports-gcc
    
    SITES =			https://github.com/rakshasa/rtorrent/releases/download/v$V/
    
    LIB_DEPENDS =		net/libtorrent \
    			net/curl
    TEST_DEPENDS =		devel/cppunit
    
    CONFIGURE_STYLE =	autoconf
    AUTOCONF_VERSION =	2.72
    CONFIGURE_ENV +=	LDFLAGS=-pthread
    CONFIGURE_ARGS =	--disable-debug
    
    DEBUG_PACKAGES =	${BUILD_PACKAGES}
    
    # silence build log spam
    CXXFLAGS +=		-Wno-deprecated-declarations \
    			-Wno-exceptions
    
    post-install:
    	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/rtorrent
    	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/rtorrent
    	${INSTALL_DATA} ${WRKSRC}/doc/rtorrent.rc \
    		${PREFIX}/share/examples/rtorrent/rtorrent.rc
    
    .include <bsd.port.mk>