1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-16 07:58:04 +00:00
freebsd-ports/net-p2p/qbittorrent-22/Makefile
Alejandro Pulver 9765b6dd2f - Append CONFIGURE_ARGS for ImageMagick.
PR:		ports/125577
Submitted by:	liangtai <ss2pxd1c@yahoo.co.jp>
2008-07-17 22:36:27 +00:00

52 lines
1.3 KiB
Makefile

# New ports collection makefile for: qbittorrent
# Date created: 2007-04-01
# Whom: alepulver
#
# $FreeBSD$
#
PORTNAME= qbittorrent
DISTVERSION= 1.0.0
CATEGORIES= net-p2p
MASTER_SITES= SF
MAINTAINER= alepulver@FreeBSD.org
COMMENT= Bittorrent client written in C++ / Qt4 using libtorrent
LIB_DEPENDS= ccext2-1.6.0:${PORTSDIR}/devel/commoncpp \
curl.4:${PORTSDIR}/ftp/curl \
torrent.1:${PORTSDIR}/net-p2p/rblibtorrent
USE_PYTHON= 2.3+
USE_QT_VER= 4
QT_COMPONENTS= qmake_build uic_build moc_build rcc_build gui network xml
QT_NONSTANDARD= yes
INSTALLS_ICONS= yes
HAS_CONFIGURE= yes
CONFIGURE_TARGET= #
CONFIGURE_ARGS= --with-libtorrent-inc="${LOCALBASE}/include" \
--with-libtorrent-lib="${LOCALBASE}/lib"
CONFIGURE_ENV= QMAKESPEC="${QMAKESPEC}"
MAKE_ENV= QMAKESPEC="${QMAKESPEC}"
OPTIONS= IMAGEMAGICK "Enable libmagick++ support" off
MAN1= qbittorrent.1
MANCOMPRESSED= yes
.include <bsd.port.pre.mk>
.if defined(WITH_IMAGEMAGICK)
LIB_DEPENDS+= MagickWand.1:${PORTSDIR}/graphics/ImageMagick
CONFIGURE_ARGS+=--with-libmagick-inc=${LOCALBASE}/include/ImageMagick
.else
CONFIGURE_ARGS+=--disable-libmagick
.endif
post-patch:
@${REINPLACE_CMD} -e 's|bin/qmake|bin/${QMAKE:T}|' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|$$$$PREFIX/share/man|${MANPREFIX}/man|' \
${WRKSRC}/src/src.pro
.include <bsd.port.post.mk>