Bug 175838 - [update]: graphics/qiviewer update options to optionsng
Summary: [update]: graphics/qiviewer update options to optionsng
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Max Brazhnikov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-04 18:30 UTC by Veniamin
Modified: 2013-02-20 17:40 UTC (History)
0 users

See Also:


Attachments
file.diff (1.18 KB, patch)
2013-02-04 18:30 UTC, Veniamin
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Veniamin 2013-02-04 18:30:00 UTC
Update to optionsng
Comment 1 Max Brazhnikov freebsd_committer freebsd_triage 2013-02-13 15:55:22 UTC
Responsible Changed
From-To: freebsd-ports-bugs->makc

I'll take it.
Comment 2 Max Brazhnikov freebsd_committer freebsd_triage 2013-02-20 17:35:23 UTC
State Changed
From-To: open->closed

Committed, with minor changes. Thanks!
Comment 3 dfilter service freebsd_committer freebsd_triage 2013-02-20 17:35:29 UTC
Author: makc
Date: Wed Feb 20 17:35:15 2013
New Revision: 312633
URL: http://svnweb.freebsd.org/changeset/ports/312633

Log:
  Convert to new options framework
  
  PR:		ports/175838
  Submitted by:	Veniamin Gvozdikov (maintainer)

Modified:
  head/graphics/qiviewer/Makefile   (contents, props changed)

Modified: head/graphics/qiviewer/Makefile
==============================================================================
--- head/graphics/qiviewer/Makefile	Wed Feb 20 17:31:31 2013	(r312632)
+++ head/graphics/qiviewer/Makefile	Wed Feb 20 17:35:15 2013	(r312633)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	qiviewer
-# Date created:		2011-04-02
-# Whom:			Gvozdikov Veniamin <g.veniamin@googlemail.com>
-#
+# Created by: Gvozdikov Veniamin <g.veniamin@googlemail.com>
 # $FreeBSD$
-#
 
 PORTNAME=	qiviewer
 PORTVERSION=	0.5.0
@@ -32,12 +28,16 @@ PLIST_DIRS=	share/qiviewer/locale \
 
 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 @@ post-configure:
 	${REINPLACE_CMD} -e 's|lrelease|lrelease-qt4|g' \
 		${WRKSRC}/Makefile
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"