Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Mar 2013 20:48:53 +0100
From:      nemysis <nemysis@gmx.ch>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/177119: [PATCH] graphics/png2ico: Convert to OptionsNG
Message-ID:  <20130319194857.8CBCBD0B@hub.freebsd.org>
Resent-Message-ID: <201303191950.r2JJo0Nx090745@freefall.freebsd.org>

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

>Number:         177119
>Category:       ports
>Synopsis:       [PATCH] graphics/png2ico: 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:   Tue Mar 19 19:50:00 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 r243825: Tue Dec  4 09:23:10
>Description:

Generated and tested manually, tested with port test, sent with FreeBSD Port Tools 0.99_6 (mode: change, diff: ports)
>How-To-Repeat:
>Fix:

--- png2ico-2002.12.08_5.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/graphics/png2ico/Makefile ./Makefile
--- /usr/ports/graphics/png2ico/Makefile	2013-01-14 17:57:08.000000000 +0100
+++ ./Makefile	2013-03-19 20:46:29.000000000 +0100
@@ -3,7 +3,7 @@
 
 PORTNAME=	png2ico
 PORTVERSION=	2002.12.08
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	graphics
 MASTER_SITES=	http://www.winterdrache.de/freeware/png2ico/data/
 DISTNAME=	${PORTNAME}-src-${PORTVERSION:S/./-/g}
@@ -11,6 +11,8 @@
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Converts PNG files to Windows icon resource files
 
+LICENSE=	GPLv2
+
 LIB_DEPENDS=	png15:${PORTSDIR}/graphics/png
 
 MAN1=		png2ico.1
@@ -19,12 +21,15 @@
 
 WRKSRC=		${WRKDIR}/${PORTNAME}
 
+.include <bsd.port.options.mk>
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
-	${INSTALL_MAN} ${WRKSRC}/doc/png2ico.1 ${PREFIX}/man/man1/
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/doc/bmp.txt ${DOCSDIR}/
+	${INSTALL_MAN} ${WRKSRC}/doc/${MAN1} ${MAN1PREFIX}/man/man1
+
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${DOCSDIR}
 .endif
 
 .include <bsd.port.mk>
--- png2ico-2002.12.08_5.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?20130319194857.8CBCBD0B>