freebsd-ports/net-p2p/qbittorrent-22/Makefile
Doug Barton f43e33bcd6 Make net/GeoIP into a proper library depependency for both ports.
Tune up the comment for qbittorrent, but no PORTREVISION bump since GeoIP
was already a dependency.

Bump PORTREVISION for libtorrent, and add some more configure args both
to cement the GeoIP option and also to assert the defaults on other options.
The wacky post-configure kludge stays for now until I can have more time to
unravel the current asio-related auto* tangle that makes it necessary.
2010-02-12 08:16:53 +00:00

52 lines
1.3 KiB
Makefile

# New ports collection makefile for: qbittorrent
# Date created: 2007-04-01
# Whom: alepulver
#
# $FreeBSD$
#
PORTNAME= qbittorrent
PORTVERSION= 2.1.5
CATEGORIES= net-p2p ipv6
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER= dougb@FreeBSD.org
COMMENT= Bittorrent client using Qt4 and libtorrent-rasterbar
LIB_DEPENDS= execinfo.1:${PORTSDIR}/devel/libexecinfo \
GeoIP.5:${PORTSDIR}/net/GeoIP \
torrent-rasterbar.5:${PORTSDIR}/net-p2p/rblibtorrent-devel
MAKE_JOBS_SAFE= yes
OPTIONS= NOTIFY "Enable libnotify support" on
USE_QT_VER= 4
QT_COMPONENTS= corelib gui network xml \
moc_build qmake_build rcc_build uic_build
QT_NONSTANDARD= yes
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --with-libboost-inc="${LOCALBASE}/include"
INSTALLS_ICONS= yes
MAN1= qbittorrent.1
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_NOTIFY)
LIB_DEPENDS+= notify.1:${PORTSDIR}/devel/libnotify
.else
CONFIGURE_ARGS+= --disable-libnotify
.endif
post-patch:
@${REINPLACE_CMD} -e 's|$$$$PREFIX/share/man|${MANPREFIX}/man|' \
${WRKSRC}/src/src.pro
@${ECHO_CMD} "LIBS+= -lexecinfo" >> ${WRKSRC}/src/src.pro
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
${WRKSRC}/configure
post-install:
@${STRIP_CMD} ${PREFIX}/bin/qbittorrent
.include <bsd.port.post.mk>