File:  [cvs.NetBSD.org] / pkgsrc / net / rtorrent / Makefile
Revision 1.97: download - view: text, annotated - select for diffs
Fri Nov 1 00:53:15 2024 UTC (6 months, 2 weeks ago) by wiz
Branches: MAIN
CVS tags: HEAD
*: recursive bump for icu 76.1 shlib bump

# $NetBSD: Makefile,v 1.97 2024/11/01 00:53:15 wiz Exp $

DISTNAME=	rtorrent-0.10.0
PKGREVISION=	1
CATEGORIES=	net
MASTER_SITES=	${MASTER_SITE_GITHUB:=rakshasa/}
GITHUB_RELEASE=	v${PKGVERSION_NOREV}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://github.com/rakshasa/rtorrent
COMMENT=	Ncurses based torrent client with support for sessions
LICENSE=	gnu-gpl-v2

USE_LANGUAGES=		c c++
USE_CXX_FEATURES+=	c++11
USE_LIBTOOL=		yes
USE_TOOLS+=		gmake pkg-config
GNU_CONFIGURE=		yes

.include "../../mk/pthread.buildlink3.mk"
LDFLAGS+=	${PTHREAD_LDFLAGS}

.include "options.mk"

# See http://libtorrent.rakshasa.no/ticket/77
.include "../../mk/compiler.mk"
.if ${CC_VERSION:Mgcc-4.0.*}
CXXFLAGS+=	-fpermissive -fno-strength-reduce -fno-thread-jumps \
		-fno-inline -fforce-addr
.endif

.if ${CC_VERSION:Mgcc-*} && !empty(MACHINE_ARCH:Mi?86)
CXXFLAGS+=	-march=i486
.endif

# for backtrace()
.if (${OPSYS} == "NetBSD" || ${OPSYS} == "FreeBSD") && exists(/usr/include/execinfo.h)
LIBS+=		-lexecinfo
.endif

LIBS.SunOS+=	-lsocket

INSTALLATION_DIRS=	share/examples/rtorrent

post-install:
	${INSTALL_DATA} ${WRKSRC}/doc/rtorrent.rc \
		${DESTDIR}${PREFIX}/share/examples/rtorrent

.include "../../devel/ncurses/buildlink3.mk"
.include "../../net/libtorrent/buildlink3.mk"
.include "../../www/curl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>