1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

- Use OPTIONS helpers

- Add LICENSE
- Remove obsolete CONFLICTS: rblibtorrent was renamed to libtorrent-rasterbar which doesn't conflict with this port
This commit is contained in:
Dmitry Marakasov 2015-06-25 22:19:25 +00:00
parent 49e64cca97
commit 7824581b28
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=390607

View File

@ -9,8 +9,8 @@ MASTER_SITES= http://libtorrent.rakshasa.no/downloads/
MAINTAINER= ports@FreeBSD.org
COMMENT= BitTorrent Library written in C++
CONFLICTS= rblibtorrent-[0-9]* \
rblibtorrent-devel-[0-9]*
LICENSE= GPLv2 # or later
LICENSE_FILE= ${WRKSRC}/COPYING
USES= compiler:c++11-lang libtool pathfix pkgconfig
USE_OPENSSL= yes
@ -23,6 +23,8 @@ INSTALL_TARGET= install-strip
OPTIONS_DEFINE= KQUEUE IPV6
OPTIONS_DEFAULT= KQUEUE
KQUEUE_DESC= Use kqueue(2) support
KQUEUE_CONFIGURE_ON= --with-kqueue
IPV6_CONFIGURE_ON= --enable-ipv6
.include <bsd.port.pre.mk>
@ -39,14 +41,6 @@ CXXFLAGS+= -std=c++11
EXTRA_PATCHES+= ${FILESDIR}/extra-clang
.endif
.if ${PORT_OPTIONS:MKQUEUE}
CONFIGURE_ARGS+= --with-kqueue
.endif
.if ${PORT_OPTIONS:MIPV6}
CONFIGURE_ARGS+= --enable-ipv6
.endif
post-patch:
@${REINPLACE_CMD} -e 's|-O3|${CFLAGS}|' ${WRKSRC}/configure
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000000