1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/graphics/xnview/Makefile
Pav Lucistnik bc2b65766f - Update to 1.70 for FreeBSD 5.X and newer
PR:		ports/86066
Submitted by:	Serge Negodyuck <petr@petrovich.kiev.ua> (maintainer)
2005-09-13 21:37:13 +00:00

61 lines
1.6 KiB
Makefile

# New ports collection makefile for: xnview
# Date created: 9 Jul 2002
# Whom: Serge Negodyuck <petr@petrovich.kiev.ua>
#
# $FreeBSD$
#
PORTNAME= xnview
PORTVERSION= 1.70
CATEGORIES= graphics
MASTER_SITES= http://download.xnview.com/
DISTNAME= XnView-x86-unknown-FreeBSD5.x-static
EXTRACT_SUFX= .tgz
MAINTAINER= petr@petrovich.kiev.ua
COMMENT= An easy graphics viewer / converter
ONLY_FOR_ARCHS= i386
NO_BUILD= yes
USE_X_PREFIX= yes
WRKSRC= ${WRKDIR}/XnView-${PORTVERSION}-x86-unknown-FreeBSD5.x-static
INSTALL_SLIB= yes
MAN1= xnview.1 nview.1
MLINKS= nview.1 nv.1 \
nview.1 nconvert.1
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
PORTVERSION= 1.68
DISTNAME= XnView-x86-unknown-FreeBSD4.x-static
WRKSRC= ${WRKDIR}/XnView-${PORTVERSION}-x86-unknown-FreeBSD4.x-static
PLIST_SUB+= FREEBSD4=""
.else
PLIST_SUB+= FREEBSD4="@comment "
.endif
.if ${OSVERSION} >= 600000
LIB_DEPENDS+= c.5:${PORTSDIR}/misc/compat5x
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/xnview ${PREFIX}/bin/xnview
${INSTALL_PROGRAM} ${WRKSRC}/bin/nview ${PREFIX}/bin/nv
${INSTALL_PROGRAM} ${WRKSRC}/bin/nconvert ${PREFIX}/bin/nconvert
.if ${OSVERSION} < 500000
${INSTALL_PROGRAM} ${WRKSRC}/lib/libformat.so.4.16 ${PREFIX}/lib/libformat.so.4
${LN} -sf ${PREFIX}/lib/libformat.so.4 ${PREFIX}/lib/libformat.so
.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}
cd ${WRKSRC} && \
${INSTALL_DATA} Formats.txt ReadMe.txt Usage.txt WhatsNew.txt ${DOCSDIR}
.endif
.include <bsd.port.post.mk>