Add Qt4 client and no_qt flavor. Only applicable to GCC4 archs.

This commit is contained in:
naddy 2010-10-25 20:28:04 +00:00
parent 9f42d17af7
commit cd95115e56
4 changed files with 52 additions and 2 deletions

View File

@ -1,12 +1,14 @@
# $OpenBSD: Makefile,v 1.59 2010/10/24 21:30:02 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.60 2010/10/25 20:28:04 naddy Exp $
COMMENT-main= lightweight BitTorrent command line and daemon client
COMMENT-gtk= lightweight BitTorrent client with GTK+ interface
COMMENT-qt= lightweight BitTorrent client with Qt interface
VER= 2.11
DISTNAME= transmission-${VER}
PKGNAME-main= transmission-${VER}
PKGNAME-gtk= transmission-gtk-${VER}
PKGNAME-qt= transmission-qt-${VER}
CATEGORIES= net
HOMEPAGE= http://www.transmissionbt.com/
@ -21,7 +23,7 @@ PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://mirrors.m0k.org/transmission/files/
EXTRACT_SUFX= .tar.bz2
PSEUDO_FLAVORS= no_gtk
PSEUDO_FLAVORS= no_gtk no_qt
FLAVOR?=
MULTI_PACKAGES= -main
@ -71,4 +73,23 @@ RUN_DEPENDS-gtk=:${PKGNAME-main}:net/transmission,-main \
:gamin-*:sysutils/gamin,-server,no_python
.endif
.include <bsd.own.mk>
.if ${COMPILER_VERSION:L:Mgcc4*} && !${FLAVOR:L:Mno_qt}
MULTI_PACKAGES+=-qt
LIB_DEPENDS+= ::x11/qt4
WANTLIB-qt= ${WANTLIB} QtCore QtDBus QtGui QtNetwork QtXml \
dbus-1 expat fontconfig freetype stdc++
RUN_DEPENDS-qt= :${PKGNAME-main}:net/transmission,-main
USE_X11= Yes
post-build:
cd ${WRKSRC}/qt; qmake4 qtr.pro; make ${MAKE_FLAGS}
post-install:
cd ${WRKSRC}/qt; make ${MAKE_FLAGS} install INSTALL_ROOT=${PREFIX} \
INSTALL_FILE="${INSTALL_DATA}" \
INSTALL_PROGRAM="${INSTALL_PROGRAM}"
.endif
.include <bsd.port.mk>

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-qt_qtr_pro,v 1.1 2010/10/25 20:28:05 naddy Exp $
--- qt/qtr.pro.orig Sun Oct 17 02:14:40 2010
+++ qt/qtr.pro Mon Oct 18 20:10:19 2010
@@ -8,7 +8,7 @@ target.path = /bin
INSTALLS += target
unix: INSTALLS += man
-man.path = /share/man/man1/
+man.path = /man/man1/
man.files = transmission-qt.1
CONFIG += qt qdbus thread debug link_pkgconfig
@@ -21,7 +21,7 @@ LIBS += $${TRANSMISSION_TOP}/libtransmission/libtransm
LIBS += $${TRANSMISSION_TOP}/third-party/dht/libdht.a
LIBS += $${TRANSMISSION_TOP}/third-party/miniupnp/libminiupnp.a
LIBS += $${TRANSMISSION_TOP}/third-party/libnatpmp/libnatpmp.a
-unix: LIBS += -levent
+unix: LIBS += -leventextra -levent
win32:DEFINES += QT_DBUS
win32:LIBS += -levent -lws2_32 -lintl
win32:LIBS += -lidn -liconv -lwldap32 -liphlpapi

View File

@ -0,0 +1,5 @@
Transmission is a free, lightweight BitTorrent client. It features
a simple, intuitive interface on top on an efficient, cross-platform
back-end.
This is the Qt graphical interface client.

View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PLIST-qt,v 1.1 2010/10/25 20:28:05 naddy Exp $
@bin bin/transmission-qt
@man man/man1/transmission-qt.1