Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 May 2013 21:58:30 +0200
From:      nemysis <nemysis@gmx.ch>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        jpaetzel@freebsd.org
Subject:   ports/179119: [PATCH] graphics/fly: Convert to OptionsNG
Message-ID:  <20130530195834.C5857696@hub.freebsd.org>
Resent-Message-ID: <201305302000.r4UK01uu042924@freefall.freebsd.org>

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

>Number:         179119
>Category:       ports
>Synopsis:       [PATCH] graphics/fly: Convert to 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:   Thu May 30 20:00:01 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     nemysis
>Release:        FreeBSD 9.1-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD FreeBSD_Ports 9.1-RELEASE FreeBSD 9.1-RELEASE #0: Tue Jan 29 15:02:50 EST 2013
>Description:

- Shorten header
- Trim dependency for graphics/gd
- Convert to OptionsNG

Generated and tested manually, tested with port test and with RedPorts, sent with FreeBSD Port Tools 0.99_6 (mode: change, diff: ports)

Build log

https://redports.org/buildarchive/20130530193500-20330/

>How-To-Repeat:
>Fix:

--- fly-2.0.1_4.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/graphics/fly/Makefile ./Makefile
--- /usr/ports/graphics/fly/Makefile	2013-01-14 17:57:07.000000000 +0100
+++ ./Makefile	2013-03-29 01:10:59.000000000 +0100
@@ -1,9 +1,5 @@
-# New ports collection makefile for: fly
-# Date created:         30 December 1997
-# Whom:                 Juergen Unger <j.unger@choin.net>
-#
+# Created by: Juergen Unger <j.unger@choin.net>
 # $FreeBSD: head/graphics/fly/Makefile 300896 2012-07-14 13:54:48Z beat $
-#
 
 PORTNAME=	fly
 PORTVERSION=	2.0.1
@@ -15,23 +11,27 @@
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Simple drawing language to generate GIFs on the fly
 
-LIB_DEPENDS=	gd.4:${PORTSDIR}/graphics/gd
+LIB_DEPENDS=	gd:${PORTSDIR}/graphics/gd
 
 PORTDOCS=	*
 PORTEXAMPLES=	*
 PLIST_FILES=	bin/fly
 
+.include <bsd.port.options.mk>
+
 do-build:
 	cd ${WRKSRC} && ${CC} ${CFLAGS} -I${LOCALBASE}/include fly.c -o fly \
 		-L${LOCALBASE}/lib -lgd
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/fly ${PREFIX}/bin
-.if !defined(NOPORTDOCS)
+
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
 	@(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${DOCSDIR})
 .endif
-.if !defined(NOPORTEXAMPLES)
+
+.if ${PORT_OPTIONS:MEXAMPLES}
 	@${MKDIR} ${EXAMPLESDIR}
 	@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR})
 .endif
--- fly-2.0.1_4.patch ends here ---

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



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