svn commit: r314864 - head/graphics/png2ico

Beech Rintoul beech at FreeBSD.org
Thu Mar 21 19:08:11 UTC 2013


Author: beech
Date: Thu Mar 21 19:08:10 2013
New Revision: 314864
URL: http://svnweb.freebsd.org/changeset/ports/314864

Log:
  - Convert to OptionsNG
  - Add license
  
  PR:		ports/177119
  Submitted by:	nemysis <nemysis at gmx.ch>

Modified:
  head/graphics/png2ico/Makefile

Modified: head/graphics/png2ico/Makefile
==============================================================================
--- head/graphics/png2ico/Makefile	Thu Mar 21 19:01:04 2013	(r314863)
+++ head/graphics/png2ico/Makefile	Thu Mar 21 19:08:10 2013	(r314864)
@@ -11,6 +11,8 @@ DISTNAME=	${PORTNAME}-src-${PORTVERSION:
 MAINTAINER=	ports at 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 @@ PORTDOCS=	bmp.txt
 
 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>


More information about the svn-ports-all mailing list