aboutsummaryrefslogtreecommitdiff
path: root/graphics/xnview
diff options
context:
space:
mode:
authorPietro Cerutti <gahr@FreeBSD.org>2008-03-11 19:37:15 +0000
committerPietro Cerutti <gahr@FreeBSD.org>2008-03-11 19:37:15 +0000
commit6db76aa2a87d9b7e6e82b841efe867ef7dc41967 (patch)
treebe1440197da842e17c7684bee82284e58a5eba12 /graphics/xnview
parent4afd3f7f60de895230dca87c32867acc50dde1c7 (diff)
downloadports-6db76aa2a87d9b7e6e82b841efe867ef7dc41967.tar.gz
ports-6db76aa2a87d9b7e6e82b841efe867ef7dc41967.zip
Notes
Diffstat (limited to 'graphics/xnview')
-rw-r--r--graphics/xnview/Makefile19
-rw-r--r--graphics/xnview/distinfo6
2 files changed, 20 insertions, 5 deletions
diff --git a/graphics/xnview/Makefile b/graphics/xnview/Makefile
index 9c88ce418d3c..9307e37a9e07 100644
--- a/graphics/xnview/Makefile
+++ b/graphics/xnview/Makefile
@@ -7,10 +7,10 @@
PORTNAME= xnview
PORTVERSION= 1.70
+PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= http://www.xnview-download.de/download/
-DISTNAME= XnView-x86-unknown-FreeBSD5.x-static
-EXTRACT_SUFX= .tgz
+DISTFILES= XnView-x86-unknown-FreeBSD5.x-static.tgz
MAINTAINER= petr@petrovich.kiev.ua
COMMENT= An easy graphics viewer / converter
@@ -29,19 +29,34 @@ MLINKS= nview.1 nv.1 \
.if ${OSVERSION} >= 600000
LIB_DEPENDS+= c.5:${PORTSDIR}/misc/compat5x
+ DISTFILES+= NConvert-x86-unknown-FreeBSD6.x.tgz
+ WRKSRC_NC= ${WRKDIR}/NConvert
+.endif
+
+.if ${OSVERSION} >= 700000
+ LIB_DEPENDS+= c.6:${PORTSDIR}/misc/compat6x
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/xnview ${PREFIX}/bin/xnview
${INSTALL_PROGRAM} ${WRKSRC}/bin/nview ${PREFIX}/bin/nv
+.if ${OSVERSION} >= 600000
+ ${INSTALL_PROGRAM} ${WRKSRC_NC}/nconvert ${PREFIX}/bin/nconvert
+.else
${INSTALL_PROGRAM} ${WRKSRC}/bin/nconvert ${PREFIX}/bin/nconvert
+.endif
${INSTALL_DATA} ${WRKSRC}/app-defaults/XnView.ad ${PREFIX}/lib/X11/app-defaults/XnView
cd ${WRKSRC}/man && ${INSTALL_MAN} xnview.1 nview.1 ${PREFIX}/man/man1
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
+.if ${OSVERSION} >= 600000
+ cd ${WRKSRC_NC} && \
+ ${INSTALL_DATA} Formats.txt ReadMe.txt Usage.txt WhatsNew.txt ${DOCSDIR}
+.else
cd ${WRKSRC} && \
${INSTALL_DATA} Formats.txt ReadMe.txt Usage.txt WhatsNew.txt ${DOCSDIR}
.endif
+.endif
.include <bsd.port.post.mk>
diff --git a/graphics/xnview/distinfo b/graphics/xnview/distinfo
index e57c18b6b270..96b640a3a6b2 100644
--- a/graphics/xnview/distinfo
+++ b/graphics/xnview/distinfo
@@ -1,6 +1,6 @@
-MD5 (XnView-x86-unknown-FreeBSD4.x-static.tgz) = 44af50cefcb49e397fd02b74639b23e5
-SHA256 (XnView-x86-unknown-FreeBSD4.x-static.tgz) = 0214d199ddfa4c81c8463efeeed9a725410a848bac234957be19bfb29fb6c4c3
-SIZE (XnView-x86-unknown-FreeBSD4.x-static.tgz) = 1428509
MD5 (XnView-x86-unknown-FreeBSD5.x-static.tgz) = a6cbb30e84970f7ce2331f0840663358
SHA256 (XnView-x86-unknown-FreeBSD5.x-static.tgz) = 88a8d07802e156ff5d93394e8caecd7a6937a81f396b145ef1e4455ed3296ceb
SIZE (XnView-x86-unknown-FreeBSD5.x-static.tgz) = 2630725
+MD5 (NConvert-x86-unknown-FreeBSD6.x.tgz) = 691eb763a03130d7ff821970659d9ce4
+SHA256 (NConvert-x86-unknown-FreeBSD6.x.tgz) = 72ae2fbcc4aaed2d74fd4eb883ee42264d55db336bc531cdee8766c9b5baa6d2
+SIZE (NConvert-x86-unknown-FreeBSD6.x.tgz) = 735994