Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Feb 2013 18:21:53 GMT
From:      Veniamin Gvozdikov <g.veniamin@googlemail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/175838: [update]: graphics/qiviewer update options to optionsng
Message-ID:  <201302041821.r14ILrNA095499@red.freebsd.org>
Resent-Message-ID: <201302041830.r14IU0R6016122@freefall.freebsd.org>

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

>Number:         175838
>Category:       ports
>Synopsis:       [update]: graphics/qiviewer update options to optionsng
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 04 18:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Veniamin Gvozdikov
>Release:        FreeBSD 8.3-RELEASE-p5
>Organization:
>Environment:
FreeBSD ololo 8.3-RELEASE-p5 FreeBSD 8.3-RELEASE-p5 #0: Thu Dec  6 16:25:28 MSK 2012     root@ololo:/usr/obj/usr/src/sys/OLOLO  amd64
>Description:
Update to optionsng
>How-To-Repeat:

>Fix:
diff -ruN qiviewer.orig/Makefile qiviewer/Makefile
--- qiviewer.orig/Makefile	2013-02-04 22:18:11.619923125 +0400
+++ qiviewer/Makefile	2013-02-04 22:20:43.588400962 +0400
@@ -1,13 +1,9 @@
-# New ports collection makefile for:	qiviewer
-# Date created:		2011-04-02
-# Whom:			Gvozdikov Veniamin <g.veniamin@googlemail.com>
-#
-# $FreeBSD: ports/graphics/qiviewer/Makefile,v 1.5 2012/11/17 05:58:21 svnexp Exp $
-#
+# Created by: Gvozdikov Veniamin <g.veniamin@googlemail.com>
+# $FreeBSD$
 
 PORTNAME=	qiviewer
 PORTVERSION=	0.5.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	graphics
 MASTER_SITES=	GOOGLE_CODE
 
@@ -32,12 +28,16 @@
 
 WRKSRC=		${WRKDIR}/${PORTNAME}/src
 
-OPTIONS=	WEBP "Support for WebP image format (experimental)" off
+OPTIONS_DEFINE= WEBP
+WEBP_DESC=	 Support for WebP image format (experimental)
 
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
 
-.if !defined(WITHOUT_WEBP)
+.if ${PORT_OPTIONS:MWEBP}
 QMAKEFLAGS+=	CONFIG+=enable-webp
+PLIST_SUB+=	WEBP=""
+.else
+PLIST_SUB+=	WEBP="@comment "
 .endif
 
 do-configure:
@@ -47,4 +47,4 @@
 	${REINPLACE_CMD} -e 's|lrelease|lrelease-qt4|g' \
 		${WRKSRC}/Makefile
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

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



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