ports/175838: [update]: graphics/qiviewer update options to optionsng
Veniamin Gvozdikov
g.veniamin at googlemail.com
Mon Feb 4 18:30:00 UTC 2013
>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 at 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 at googlemail.com>
-#
-# $FreeBSD: ports/graphics/qiviewer/Makefile,v 1.5 2012/11/17 05:58:21 svnexp Exp $
-#
+# Created by: Gvozdikov Veniamin <g.veniamin at 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:
More information about the freebsd-ports-bugs
mailing list