From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Nov 21 23:30:01 2012 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 39F22FC6 for ; Wed, 21 Nov 2012 23:30:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 0A4C88FC19 for ; Wed, 21 Nov 2012 23:30:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qALNU0ab045201 for ; Wed, 21 Nov 2012 23:30:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qALNU0nu045197; Wed, 21 Nov 2012 23:30:00 GMT (envelope-from gnats) Resent-Date: Wed, 21 Nov 2012 23:30:00 GMT Resent-Message-Id: <201211212330.qALNU0nu045197@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Chris Petrik Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3E218E16 for ; Wed, 21 Nov 2012 23:26:42 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 26D4B8FC14 for ; Wed, 21 Nov 2012 23:26:42 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id qALNQgg0078557 for ; Wed, 21 Nov 2012 23:26:42 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id qALNQgJZ078556; Wed, 21 Nov 2012 23:26:42 GMT (envelope-from nobody) Message-Id: <201211212326.qALNQgJZ078556@red.freebsd.org> Date: Wed, 21 Nov 2012 23:26:42 GMT From: Chris Petrik To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/173818: [PATCH] astro/wcslib optionsng X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Nov 2012 23:30:01 -0000 >Number: 173818 >Category: ports >Synopsis: [PATCH] astro/wcslib optionsng >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: Wed Nov 21 23:30:00 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Chris Petrik >Release: >Organization: na >Environment: >Description: Options NG Changes >How-To-Repeat: >Fix: Patch attached with submission follows: Index: wcslib/Makefile =================================================================== --- wcslib/Makefile (revision 305494) +++ wcslib/Makefile (working copy) @@ -1,8 +1,4 @@ -# ex:ts=4 -# New ports collection makefile for: wcslib -# Date created: Wed Jul 15 10:09:45 EST 2009 -# Whom: Tony Maher -# +# Created by: Tony Maher # $FreeBSD$ PORTNAME= wcslib @@ -25,20 +21,23 @@ # See makedefs.in which describes why you want to set the extra support. # For most users it will not be required. -OPTIONS= CFITSIO "Add cfitsio support (for tests only)" Off \ - PGPLOT "Add pgplot support (for tests only)" Off +.include +OPTIONS_DEFINE= CFITSIO PGPLOT +CFITSIO_DESC= Add cfitsio support (for tests only) +PGPLOT_DESC= Add pgplot support (for tests only) + # The configure script unconditionally searches for the cftisio library # and uses it if found. -.if defined(WITH_CFITSIO) || exists(${LOCALBASE}/lib/libcfitsio.so) +.if ${PORT_OPTIONS:MCFITSIO} PLIST_SUB+= HPXCVT="" LIB_DEPENDS+= cfitsio:${PORTSDIR}/astro/cfitsio .else PLIST_SUB+= HPXCVT="@comment " .endif -.if defined(WITH_PGPLOT) +.if ${PORT_OPTIONS:MPGPLOT} LIB_DEPENDS+= pgplot.5:${PORTSDIR}/graphics/pgplot .endif >Release-Note: >Audit-Trail: >Unformatted: