From owner-svn-ports-all@FreeBSD.ORG Wed Mar 12 15:14:37 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 84A0FC1C; Wed, 12 Mar 2014 15:14:37 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 70D9893E; Wed, 12 Mar 2014 15:14:37 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s2CFEbMK058503; Wed, 12 Mar 2014 15:14:37 GMT (envelope-from swills@svn.freebsd.org) Received: (from swills@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s2CFEaZn058500; Wed, 12 Mar 2014 15:14:36 GMT (envelope-from swills@svn.freebsd.org) Message-Id: <201403121514.s2CFEaZn058500@svn.freebsd.org> From: Steve Wills Date: Wed, 12 Mar 2014 15:14:36 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r347981 - in head/net/tigervnc: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Mar 2014 15:14:37 -0000 Author: swills Date: Wed Mar 12 15:14:36 2014 New Revision: 347981 URL: http://svnweb.freebsd.org/changeset/ports/347981 QAT: https://qat.redports.org/buildarchive/r347981/ Log: - Fix disabling VIEWER option didn't work (obtained from upstream [1]) - Add missing dependency on ImageMagick required to generate icons during the build and use these icons for DESKTOP_ENTRIES - Fix paths in CONFIGURE_ARGS which refer files from other ports - Support stage - Bump PORTREVISION for package change PR: ports/187007 Submitted by: Koichiro IWAO (maintainer) Obtained from: http://sourceforge.net/p/tigervnc/code/5161/ [1] Added: head/net/tigervnc/files/patch-vncviewer-always-built (contents, props changed) Modified: head/net/tigervnc/Makefile head/net/tigervnc/pkg-plist Modified: head/net/tigervnc/Makefile ============================================================================== --- head/net/tigervnc/Makefile Wed Mar 12 15:01:49 2014 (r347980) +++ head/net/tigervnc/Makefile Wed Mar 12 15:14:36 2014 (r347981) @@ -3,7 +3,7 @@ PORTNAME= tigervnc PORTVERSION= 1.3.0 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= net x11-servers MASTER_SITES= SF:tigervnc MASTER_SITE_SUBDIR= ${PORTNAME}/${PORTNAME}/${PORTVERSION}/:tigervnc @@ -38,11 +38,6 @@ USE_XORG+= bigreqsproto compositeproto d scrnsaverproto videoproto xau xdmcp xext xkbfile xcmiscproto xextproto \ xfont xproto xrandr xtrans xtst xorg-macros -MAN1+= vncpasswd.1 \ - x0vncserver.1 \ - vncserver.1 \ - vncconfig.1 \ - Xvnc.1 CFLAGS+= -fPIC OPTIONS_DEFINE= GNUTLS NLS PAM VIEWER HPJPG @@ -50,10 +45,9 @@ OPTIONS_DEFAULT= GNUTLS NLS PAM VIEWER VIEWER_DESC= Build vncviewer HPJPG_DESC= Build with High-Performance JPEG support -NO_STAGE= yes .include -CMAKE_ARGS= -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=${PREFIX} +CMAKE_ARGS= -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=${STAGE}${PREFIX} .if ${PORT_OPTIONS:MGNUTLS} LIB_DEPENDS+= libtasn1.so:${PORTSDIR}/security/libtasn1 \ @@ -82,17 +76,18 @@ CMAKE_ARGS+= -DENABLE_PAM=0 .endif .if ${PORT_OPTIONS:MVIEWER} -CMAKE_ARGS+= -DENABLE_VIEWER=1 +CMAKE_ARGS+= -DBUILD_VIEWER=1 LIB_DEPENDS+= libpng15.so:${PORTSDIR}/graphics/png \ libfltk.so:${PORTSDIR}/x11-toolkits/fltk +# ImageMagick is required to generate icons during build process +BUILD_DEPENDS+= ${LOCALBASE}/bin/convert:${PORTSDIR}/graphics/ImageMagick USE_XORG+= xcursor xfixes xft xinerama -MAN1+= vncviewer.1 PLIST_SUB+= VIEWER="" INSTALLS_ICONS= yes DESKTOP_ENTRIES= "TigerVNC viewer" "Connect to VNC server and display remote desktop" \ - "${PREFIX}/share/icons/hicolor/scalable/apps/${PORTNAME}.svg" \ - "vncviewer" "Network;" false + "${PORTNAME}" "vncviewer" "Network;" false .else +CMAKE_ARGS+= -DBUILD_VIEWER=0 PLIST_SUB+= VIEWER="@comment " .endif @@ -111,16 +106,15 @@ CONFIGURE_ARGS+= \ --disable-dmx --disable-xwin --disable-xephyr --disable-kdrive \ --disable-config-dbus --disable-config-hal \ --disable-dri2 --enable-install-libxf86config --enable-glx \ - --with-default-font-path="catalogue:${PREFIX}/share/fonts,built-ins" \ - --with-xkb-path=${PREFIX}/share/X11/xkb \ - --with-xkb-output=/var/lib/xkb \ - --with-xkb-bin-directory=${PREFIX}/bin \ - --with-serverconfig-path=${PREFIX}/lib/X11 \ + --with-default-font-path="catalogue:${LOCALBASE}/share/fonts,built-ins" \ + --with-xkb-path=${LOCALBASE}/share/X11/xkb \ + --with-xkb-bin-directory=${LOCALBASE}/bin \ + --with-serverconfig-path=${LOCALBASE}/lib/X11 \ --disable-selective-werror .ifdef WITH_NEW_XORG -CONFIGURE_ARGS+= --with-fontrootdir=${PREFIX}/share/fonts +CONFIGURE_ARGS+= --with-fontrootdir=${LOCALBASE}/share/fonts .else -CONFIGURE_ARGS+= --with-fontdir=${PREFIX}/share/fonts +CONFIGURE_ARGS+= --with-fontdir=${LOCALBASE}/share/fonts .endif .include @@ -156,9 +150,5 @@ post-build: post-install: @cd ${WRKSRC}/unix/xserver/hw/vnc/ && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_ARGS} install -.if ${PORT_OPTIONS:MVIEWER} - @${MKDIR} ${PREFIX}/share/icons/hicolor/scalable/apps/ - @cd ${WRKSRC}/media/ && ${INSTALL_DATA} icons/tigervnc.svg ${PREFIX}/share/icons/hicolor/scalable/apps/ -.endif .include Added: head/net/tigervnc/files/patch-vncviewer-always-built ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/tigervnc/files/patch-vncviewer-always-built Wed Mar 12 15:14:36 2014 (r347981) @@ -0,0 +1,19 @@ +Index: CMakeLists.txt +=================================================================== +--- CMakeLists.txt (revision 5159) ++++ CMakeLists.txt (working copy) +@@ -390,9 +390,12 @@ + add_subdirectory(po) + endif() + +-add_subdirectory(vncviewer) ++option(BUILD_VIEWER "Build TigerVNC viewer" ON) ++if(BUILD_VIEWER) ++ add_subdirectory(vncviewer) ++ add_subdirectory(media) ++endif() + +-add_subdirectory(media) + + include(cmake/BuildPackages.cmake) + Modified: head/net/tigervnc/pkg-plist ============================================================================== --- head/net/tigervnc/pkg-plist Wed Mar 12 15:01:49 2014 (r347980) +++ head/net/tigervnc/pkg-plist Wed Mar 12 15:14:36 2014 (r347981) @@ -3,23 +3,43 @@ bin/vncconfig bin/vncpasswd bin/vncserver %%VIEWER%%bin/vncviewer -%%VIEWER%%share/icons/hicolor/scalable/apps/tigervnc.svg bin/x0vncserver lib/xorg/modules/extensions/libvnc.la lib/xorg/modules/extensions/libvnc.so +man/man1/vncpasswd.1.gz +man/man1/x0vncserver.1.gz +man/man1/vncserver.1.gz +man/man1/vncconfig.1.gz +man/man1/Xvnc.1.gz +%%VIEWER%%man/man1/vncviewer.1.gz %%NLS%%share/locale/de/LC_MESSAGES/tigervnc.mo %%NLS%%share/locale/fr/LC_MESSAGES/tigervnc.mo %%NLS%%share/locale/pl/LC_MESSAGES/tigervnc.mo %%NLS%%share/locale/ru/LC_MESSAGES/tigervnc.mo %%NLS%%share/locale/sk/LC_MESSAGES/tigervnc.mo %%NLS%%share/locale/sv/LC_MESSAGES/tigervnc.mo -%%DOCSDIR%%/README.txt -%%DOCSDIR%%/LICENCE.TXT -@dirrm %%DOCSDIR%% -@unexec %D/%%DOCSDIR%% 2>/dev/null || true +%%PORTDOCS%%%%DOCSDIR%%/README.txt +%%PORTDOCS%%%%DOCSDIR%%/LICENCE.TXT +%%PORTDOCS%%@dirrm %%DOCSDIR%% @dirrmtry lib/xorg/modules/extensions @dirrmtry lib/xorg/modules @dirrmtry lib/xorg +%%VIEWER%%share/icons/hicolor/16x16/apps/tigervnc.png +%%VIEWER%%share/icons/hicolor/22x22/apps/tigervnc.png +%%VIEWER%%share/icons/hicolor/24x24/apps/tigervnc.png +%%VIEWER%%share/icons/hicolor/32x32/apps/tigervnc.png +%%VIEWER%%share/icons/hicolor/48x48/apps/tigervnc.png +%%VIEWER%%share/icons/hicolor/scalable/apps/tigervnc.svg +%%VIEWER%%@dirrmtry share/icons/hicolor/48x48/apps +%%VIEWER%%@dirrmtry share/icons/hicolor/48x48 +%%VIEWER%%@dirrmtry share/icons/hicolor/32x32/apps +%%VIEWER%%@dirrmtry share/icons/hicolor/32x32 +%%VIEWER%%@dirrmtry share/icons/hicolor/24x24/apps +%%VIEWER%%@dirrmtry share/icons/hicolor/24x24 +%%VIEWER%%@dirrmtry share/icons/hicolor/22x22/apps +%%VIEWER%%@dirrmtry share/icons/hicolor/22x22 +%%VIEWER%%@dirrmtry share/icons/hicolor/16x16/apps +%%VIEWER%%@dirrmtry share/icons/hicolor/16x16 %%VIEWER%%@dirrmtry share/icons/hicolor/scalable/apps %%VIEWER%%@dirrmtry share/icons/hicolor/scalable %%VIEWER%%@dirrmtry share/icons/hicolor