Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Jun 2013 17:05:38 GMT
From:      "r4721@tormail.org" <r4721@tormail.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/180063: [patch] remove gcc dependency from net/tightvnc
Message-ID:  <201306281705.r5SH5cra029044@oldred.freebsd.org>
Resent-Message-ID: <201306281710.r5SHA0Bn057259@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         180063
>Category:       ports
>Synopsis:       [patch] remove gcc dependency from net/tightvnc
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 28 17:10:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     r4721@tormail.org
>Release:        
>Organization:
>Environment:
>Description:
due to the devel/gccmakedep and imake fixes, this port no longer needs GCC and can build in a world with WITH_CLANG_IS_CC and WITHOUT_GCC.

* add LICENSE
* remove shared library version from depends
* remove GCC requirement
* remove stale comment
* use REINPLACE_CMD instead of perl
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: net/tightvnc/Makefile
===================================================================
--- net/tightvnc/Makefile	(revision 321959)
+++ net/tightvnc/Makefile	(working copy)
@@ -3,8 +3,8 @@
 
 PORTNAME=	tightvnc
 PORTVERSION=	1.3.10
-PORTREVISION=	3
-CATEGORIES=	net
+PORTREVISION=	4
+CATEGORIES=	net java
 MASTER_SITES=	SF/vnc-tight/TightVNC-unix/${PORTVERSION}
 DISTNAME=	${PORTNAME}-${PORTVERSION}_unixsrc
 
@@ -11,20 +11,19 @@
 MAINTAINER=	itetcu@FreeBSD.org
 COMMENT=	Enhanced version of VNC
 
-LIB_DEPENDS=	jpeg.11:${PORTSDIR}/graphics/jpeg
+LICENSE=	GPLv2
+LICENSE_FILE=	${WRKSRC}/LICENCE.TXT
+
+LIB_DEPENDS=	jpeg:${PORTSDIR}/graphics/jpeg
 RUN_DEPENDS=	showrgb:${PORTSDIR}/x11/rgb \
 		xauth:${PORTSDIR}/x11/xauth \
 		xorg-fonts>=7.2:${PORTSDIR}/x11-fonts/xorg-fonts
 
 MAKE_JOBS_UNSAFE=	yes
-
 CONFLICTS=	tridiavnc-[0-9]* vnc-[0-9]*
-
 WRKSRC=		${WRKDIR}/vnc_unixsrc
-
 USES=		imake
 CFLAGS+=	-Wno-return-type
-USE_GCC=	yes
 USE_BZIP2=	yes
 USE_PERL5=	yes
 USE_XORG=	xaw
@@ -36,9 +35,6 @@
 OPTIONS_DEFINE=	JVNC_VIEWER
 JVNC_VIEWER_DESC=	Install Java-based vnc viewer
 
-#.include <bsd.port.pre.mk>
-
-### use me when 5.5, 6.1, 6.2R die or we do impement something in b.p.m
 .include <bsd.port.options.mk>
 
 .if ${PORT_OPTIONS:MJVNC_VIEWER}
@@ -61,12 +57,12 @@
 
 post-patch:
 .for file in vncviewer/Imakefile Xvnc/config/cf/vnclibs.def
-	@${PERL} -pi -e "s,%%LOCALBASE%%,${PREFIX},g" ${WRKSRC}/${file}
+	@${REINPLACE_CMD} -e "s,%%LOCALBASE%%,${PREFIX},g" ${WRKSRC}/${file}
 .endfor
-	@${PERL} -pi -e "s,/usr/local/vnc/classes,${DATADIR}/classes,g ; \
-		s,^#!/usr/bin/perl,#!${PERL},g" ${WRKSRC}/vncserver
-	@${PERL} -pi -e "s,%%CC%%,${CC},g ; \
-		s|%%CFLAGS%%|${CFLAGS}|g" ${WRKSRC}/Xvnc/config/cf/FreeBSD.cf
+	@${REINPLACE_CMD} -e "s,/usr/local/vnc/classes,${DATADIR}/classes,g" \
+		-e "s,^#!/usr/bin/perl,#!${PERL},g" ${WRKSRC}/vncserver
+	@${REINPLACE_CMD} -e "s,%%CC%%,${CC},g" -e "s|%%CFLAGS%%|${CFLAGS}|g" \
+		${WRKSRC}/Xvnc/config/cf/FreeBSD.cf
 
 do-install:
 	@(cd ${WRKSRC}; ./vncinstall ${PREFIX}/bin ${PREFIX}/man)


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306281705.r5SH5cra029044>