freebsd-ports/net-p2p/qbittorrent/Makefile

61 lines
1.4 KiB
Makefile

# Created by: Doug Barton <dougb@FreeBSD.org>
# $FreeBSD$
PORTNAME= qbittorrent
PORTVERSION= 3.0.11
PORTREVISION?= 0
CATEGORIES= net-p2p ipv6
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}/
MAINTAINER= nemysis@FreeBSD.org
COMMENT?= Bittorrent client using Qt4 and libtorrent-rasterbar
LICENSE= GPLv2
# ABI versions specified on purpose for libtorrent-rasterbar
LIB_DEPENDS= libtorrent-rasterbar.so:${PORTSDIR}/net-p2p/libtorrent-rasterbar-16 \
libexecinfo.so:${PORTSDIR}/devel/libexecinfo \
USES= pkgconfig
HAS_CONFIGURE= yes
USE_QT4= corelib network qmake_build moc_build rcc_build
QT_NONSTANDARD= yes
MAN1?= qbittorrent.1
.if !defined(QB_NOX_SLAVE)
LIB_DEPENDS+= libGeoIP.so:${PORTSDIR}/net/GeoIP
USE_QT4+= gui xml uic_build
INSTALLS_ICONS= yes
OPTIONS_DEFINE= DBUS
.else
CONFIGURE_ARGS+= --disable-gui
.endif
PORTDOCS= AUTHORS Changelog README TODO
OPTIONS_DEFINE= DOCS DBUS
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDBUS}
USE_QT4+= dbus
.else
CONFIGURE_ARGS+= --disable-qt-dbus
.endif
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif
.if !defined(QB_NOX_SLAVE)
@${STRIP_CMD} ${PREFIX}/bin/qbittorrent
.else
@${STRIP_CMD} ${PREFIX}/bin/qbittorrent-nox
${INSTALL_MAN} ${WRKSRC}/doc/qbittorrent-nox.1 ${MAN1PREFIX}/man/man1
.endif
.include <bsd.port.mk>