2010-11-17 13:44:25 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2015-10-14 16:56:59 +02:00
|
|
|
PORTREVISION= 2
|
2010-11-17 13:44:25 +01:00
|
|
|
PKGNAMESUFFIX= -qt4
|
|
|
|
|
2011-07-27 23:16:53 +02:00
|
|
|
MAINTAINER= crees@FreeBSD.org
|
2013-03-02 14:48:31 +01:00
|
|
|
COMMENT= Fast and lightweight QT4 BitTorrent client
|
2010-11-17 13:44:25 +01:00
|
|
|
|
|
|
|
LIB_DEPENDS= ${GEN_LIB_DEPENDS}
|
|
|
|
RUN_DEPENDS= ${GEN_RUN_DEPENDS}
|
|
|
|
|
|
|
|
DESCR= ${.CURDIR}/pkg-descr
|
|
|
|
MASTERDIR= ${.CURDIR}/../transmission-cli
|
|
|
|
PLIST= ${.CURDIR}/pkg-plist
|
|
|
|
SLAVEPORT= qt4
|
|
|
|
|
|
|
|
QT_NONSTANDARD= yes
|
2012-06-06 08:44:37 +02:00
|
|
|
USE_QT4= moc_build qmake_build rcc_build uic_build gui dbus network
|
2013-12-29 18:08:28 +01:00
|
|
|
USES= desktop-file-utils
|
2010-11-17 13:44:25 +01:00
|
|
|
|
|
|
|
EXTRA_CONF_ARGS=--disable-cli \
|
|
|
|
--disable-daemon \
|
2011-12-11 13:26:57 +01:00
|
|
|
--without-gtk \
|
2010-11-17 13:44:25 +01:00
|
|
|
--disable-mac \
|
|
|
|
--disable-nls
|
|
|
|
|
|
|
|
post-patch: general-patch
|
|
|
|
@${REINPLACE_CMD} -e 's|/share/man|/man|g ; /PKGCONFIG/s| openssl||g' \
|
|
|
|
${WRKSRC}/qt/qtr.pro
|
2014-08-21 15:19:31 +02:00
|
|
|
@${ECHO_CMD} 'LIBS += -lcrypto' >> ${WRKSRC}/qt/qtr.pro
|
2010-11-17 13:44:25 +01:00
|
|
|
|
|
|
|
post-build:
|
2014-08-21 15:19:31 +02:00
|
|
|
@(cd ${WRKSRC}/qt && ${QMAKE} ${QMAKE_ARGS} qtr.pro && ${MAKE_CMD})
|
2010-11-17 13:44:25 +01:00
|
|
|
|
|
|
|
do-install:
|
2014-08-21 15:19:31 +02:00
|
|
|
@(cd ${WRKSRC}/qt && \
|
|
|
|
${SETENV} INSTALL_ROOT=${STAGEDIR}${PREFIX} ${MAKE_CMD} install)
|
2010-11-17 13:44:25 +01:00
|
|
|
|
|
|
|
post-install: general-install
|
2014-04-01 19:28:32 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2013-12-29 18:08:28 +01:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/qt/README.txt \
|
|
|
|
${STAGEDIR}${DOCSDIR}/README-qt4
|
2010-11-17 13:44:25 +01:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/qt/transmission-qt.desktop \
|
2013-12-29 18:08:28 +01:00
|
|
|
${STAGEDIR}${PREFIX}/share/applications/
|
2010-11-17 13:44:25 +01:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/qt/icons/transmission.png \
|
2013-12-29 18:08:28 +01:00
|
|
|
${STAGEDIR}${PREFIX}/share/pixmaps/transmission-qt.png
|
2010-11-17 13:44:25 +01:00
|
|
|
|
|
|
|
.include "${MASTERDIR}/Makefile"
|