svn commit: r314228 - head/graphics/tiff2png
Beech Rintoul
beech at FreeBSD.org
Fri Mar 15 02:27:30 UTC 2013
Author: beech
Date: Fri Mar 15 02:27:30 2013
New Revision: 314228
URL: http://svnweb.freebsd.org/changeset/ports/314228
Log:
- Add OptionsNG
PR: PR_176922
Submitted by: nemysis <nemysis at gmx.ch>
Modified:
head/graphics/tiff2png/Makefile
Modified: head/graphics/tiff2png/Makefile
==============================================================================
--- head/graphics/tiff2png/Makefile Fri Mar 15 02:26:16 2013 (r314227)
+++ head/graphics/tiff2png/Makefile Fri Mar 15 02:27:30 2013 (r314228)
@@ -1,13 +1,9 @@
-# New ports collection makefile for: tiff2png
-# Date created: Tue 04 Jul 2000
-# Whom: will
-#
+# Created by: will
# $FreeBSD$
-#
PORTNAME= tiff2png
PORTVERSION= 0.91
-PORTREVISION= 4
+PORTREVISION= 5
PORTEPOCH= 1
CATEGORIES= graphics
MASTER_SITES= SF/png-mng/${PORTNAME}/${PORTVERSION}
@@ -15,8 +11,8 @@ MASTER_SITES= SF/png-mng/${PORTNAME}/${P
MAINTAINER= ports at FreeBSD.org
COMMENT= Converts TIFF images to PNG format
-LIB_DEPENDS= tiff.4:${PORTSDIR}/graphics/tiff \
- jpeg.11:${PORTSDIR}/graphics/jpeg \
+LIB_DEPENDS= tiff:${PORTSDIR}/graphics/tiff \
+ jpeg:${PORTSDIR}/graphics/jpeg \
png15:${PORTSDIR}/graphics/png
MAKEFILE= Makefile.unx
@@ -30,11 +26,18 @@ CFLAGS+= -DINVERT_MINISWHITE -DFAXPECT -
-I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -lpng -lz -ltiff -ljpeg -lm
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/tiff2png ${PREFIX}/bin
-.if !defined(NOPORTDOCS)
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
- @${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
+PLIST_FILES+= %%DOCSDIR%%/README
+PLIST_DIRS+= %%DOCSDIR%%
.endif
.include <bsd.port.mk>
More information about the svn-ports-all
mailing list