Index: Makefile =================================================================== RCS file: /home/amdmi3/projects/freebsd/FreeBSD.cvs/ports/net-p2p/qbittorrent-23/Makefile,v retrieving revision 1.1 diff -u -r1.1 Makefile --- Makefile 24 Jul 2010 21:37:21 -0000 1.1 +++ Makefile 23 Nov 2010 23:26:38 -0000 @@ -7,6 +7,7 @@ PORTNAME= qbittorrent PORTVERSION= 2.3.0.rc10 +PORTREVISION= 1 CATEGORIES= net-p2p ipv6 MASTER_SITES= http://cdnetworks-us-2.dl.sourceforge.net/project/qbittorrent/qbittorrent-unstable/ @@ -25,20 +26,18 @@ CONFLICTS= qbittorrent-2.2.* -OPTIONS= NOTIFY "Enable libnotify support" on +OPTIONS= NOTIFY "Enable libnotify support" on \ + GUI "Enable GUI " on USE_QT_VER= 4 -QT_COMPONENTS= corelib gui network xml \ - moc_build qmake_build rcc_build uic_build +QT_COMPONENTS= corelib network qmake_build moc_build rcc_build QT_NONSTANDARD= yes HAS_CONFIGURE= yes CONFIGURE_ARGS= --with-libboost-inc="${LOCALBASE}/include" \ --with-libboost-lib="${LOCALBASE}/lib" INSTALLS_ICONS= yes -MAN1= qbittorrent.1 - -.include +.include .if !defined(WITHOUT_NOTIFY) LIB_DEPENDS+= notify.1:${PORTSDIR}/devel/libnotify @@ -46,6 +45,18 @@ CONFIGURE_ARGS+= --disable-libnotify .endif +.if !defined(WITHOUT_GUI) +QT_COMPONENTS+= gui xml uic_build +PLIST_SUB+= X11="" NOX11="@comment " +MAN1= qbittorrent.1 +.else +CONFIGURE_ARGS+= --disable-gui +MAN1= qbittorrent-nox.1 +PLIST_SUB+= X11="@comment " NOX11="" +.endif + +.include + BOOSTLIB_PATTERN= -e 's|\*\-mt\*||' post-patch: Index: pkg-plist =================================================================== RCS file: /home/amdmi3/projects/freebsd/FreeBSD.cvs/ports/net-p2p/qbittorrent-23/pkg-plist,v retrieving revision 1.1 diff -u -r1.1 pkg-plist --- pkg-plist 24 Jul 2010 21:37:21 -0000 1.1 +++ pkg-plist 23 Nov 2010 21:11:54 -0000 @@ -1,38 +1,39 @@ -bin/qbittorrent -share/applications/qBittorrent.desktop -share/icons/hicolor/128x128/apps/qbittorrent.png -share/icons/hicolor/16x16/apps/qbittorrent.png -share/icons/hicolor/192x192/apps/qbittorrent.png -share/icons/hicolor/22x22/apps/qbittorrent.png -share/icons/hicolor/24x24/apps/qbittorrent.png -share/icons/hicolor/32x32/apps/qbittorrent.png -share/icons/hicolor/36x36/apps/qbittorrent.png -share/icons/hicolor/48x48/apps/qbittorrent.png -share/icons/hicolor/64x64/apps/qbittorrent.png -share/icons/hicolor/72x72/apps/qbittorrent.png -share/icons/hicolor/96x96/apps/qbittorrent.png -@dirrmtry share/icons/hicolor/96x96/apps -@dirrmtry share/icons/hicolor/96x96 -@dirrmtry share/icons/hicolor/72x72/apps -@dirrmtry share/icons/hicolor/72x72 -@dirrmtry share/icons/hicolor/64x64/apps -@dirrmtry share/icons/hicolor/64x64 -@dirrmtry share/icons/hicolor/48x48/apps -@dirrmtry share/icons/hicolor/48x48 -@dirrmtry share/icons/hicolor/36x36/apps -@dirrmtry share/icons/hicolor/36x36 -@dirrmtry share/icons/hicolor/32x32/apps -@dirrmtry share/icons/hicolor/32x32 -@dirrmtry share/icons/hicolor/24x24/apps -@dirrmtry share/icons/hicolor/24x24 -@dirrmtry share/icons/hicolor/22x22/apps -@dirrmtry share/icons/hicolor/22x22 -@dirrmtry share/icons/hicolor/192x192/apps -@dirrmtry share/icons/hicolor/192x192 -@dirrmtry share/icons/hicolor/16x16/apps -@dirrmtry share/icons/hicolor/16x16 -@dirrmtry share/icons/hicolor/128x128/apps -@dirrmtry share/icons/hicolor/128x128 -@dirrmtry share/icons/hicolor -@dirrmtry share/icons -@dirrmtry share/applications +%%X11%%bin/qbittorrent +%%NOX11%%bin/qbittorrent-nox +%%X11%%share/applications/qBittorrent.desktop +%%X11%%share/icons/hicolor/128x128/apps/qbittorrent.png +%%X11%%share/icons/hicolor/16x16/apps/qbittorrent.png +%%X11%%share/icons/hicolor/192x192/apps/qbittorrent.png +%%X11%%share/icons/hicolor/22x22/apps/qbittorrent.png +%%X11%%share/icons/hicolor/24x24/apps/qbittorrent.png +%%X11%%share/icons/hicolor/32x32/apps/qbittorrent.png +%%X11%%share/icons/hicolor/36x36/apps/qbittorrent.png +%%X11%%share/icons/hicolor/48x48/apps/qbittorrent.png +%%X11%%share/icons/hicolor/64x64/apps/qbittorrent.png +%%X11%%share/icons/hicolor/72x72/apps/qbittorrent.png +%%X11%%share/icons/hicolor/96x96/apps/qbittorrent.png +%%X11%%@dirrmtry share/icons/hicolor/96x96/apps +%%X11%%@dirrmtry share/icons/hicolor/96x96 +%%X11%%@dirrmtry share/icons/hicolor/72x72/apps +%%X11%%@dirrmtry share/icons/hicolor/72x72 +%%X11%%@dirrmtry share/icons/hicolor/64x64/apps +%%X11%%@dirrmtry share/icons/hicolor/64x64 +%%X11%%@dirrmtry share/icons/hicolor/48x48/apps +%%X11%%@dirrmtry share/icons/hicolor/48x48 +%%X11%%@dirrmtry share/icons/hicolor/36x36/apps +%%X11%%@dirrmtry share/icons/hicolor/36x36 +%%X11%%@dirrmtry share/icons/hicolor/32x32/apps +%%X11%%@dirrmtry share/icons/hicolor/32x32 +%%X11%%@dirrmtry share/icons/hicolor/24x24/apps +%%X11%%@dirrmtry share/icons/hicolor/24x24 +%%X11%%@dirrmtry share/icons/hicolor/22x22/apps +%%X11%%@dirrmtry share/icons/hicolor/22x22 +%%X11%%@dirrmtry share/icons/hicolor/192x192/apps +%%X11%%@dirrmtry share/icons/hicolor/192x192 +%%X11%%@dirrmtry share/icons/hicolor/16x16/apps +%%X11%%@dirrmtry share/icons/hicolor/16x16 +%%X11%%@dirrmtry share/icons/hicolor/128x128/apps +%%X11%%@dirrmtry share/icons/hicolor/128x128 +%%X11%%@dirrmtry share/icons/hicolor +%%X11%%@dirrmtry share/icons +%%X11%%@dirrmtry share/applications