1994-10-31 05:36:07 +01:00
|
|
|
# New ports collection makefile for: xv
|
|
|
|
# Date created: 30 October 1994
|
|
|
|
# Whom: smace
|
|
|
|
#
|
1999-08-25 08:16:32 +02:00
|
|
|
# $FreeBSD$
|
1994-10-31 05:36:07 +01:00
|
|
|
#
|
|
|
|
|
2000-04-13 10:13:59 +02:00
|
|
|
PORTNAME= xv
|
|
|
|
PORTVERSION= 3.10a
|
2006-07-14 17:31:50 +02:00
|
|
|
PORTREVISION= 6
|
2000-04-14 19:10:50 +02:00
|
|
|
CATEGORIES+= graphics
|
2006-04-05 06:04:40 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
|
|
|
MASTER_SITE_SUBDIR= ../distfiles/xv
|
2001-03-08 18:29:50 +01:00
|
|
|
# Workaround: pdf.patch, mp-tiff-patch, and xv-png-1.2d.patch must be fetched
|
|
|
|
# from MASTER_SITE_LOCAL.
|
|
|
|
# These are modified for applying after jp-extension-patch.
|
1997-07-03 09:37:12 +02:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
2000-04-13 10:13:59 +02:00
|
|
|
${PORTNAME}${PORTVERSION:S/.//}-jp-extension-rev5.3.3.tar.gz \
|
2002-10-08 15:04:51 +02:00
|
|
|
jp-ext-bzip2-1.1.patch longname.patch pdf.patch mp-tiff-patch \
|
2001-02-20 16:29:47 +01:00
|
|
|
xv-png-1.2d.patch xvpng-1.2d-fix3.patch
|
2000-04-13 10:13:59 +02:00
|
|
|
DIST_SUBDIR= ${PORTNAME}
|
|
|
|
EXTRACT_ONLY= ${DISTFILES:N*patch}
|
1997-07-03 09:37:12 +02:00
|
|
|
|
2001-02-20 16:29:47 +01:00
|
|
|
# Note: xpm.patch appears to already be in xvdir.c
|
|
|
|
PATCHFILES= ${DISTNAME}.JPEG-patch ${DISTNAME}.TIFF-patch \
|
2001-02-28 19:02:48 +01:00
|
|
|
croppad.patch grabpatch vispatch \
|
2001-02-20 16:29:47 +01:00
|
|
|
deepcolor.patch gifpatch exceed_grab.patch \
|
|
|
|
tiff1200.patch gssafer.patch
|
1995-04-09 09:09:55 +02:00
|
|
|
|
2005-02-15 09:32:08 +01:00
|
|
|
MAINTAINER?= flynn@energyhq.es.eu.org
|
2003-03-07 01:16:25 +01:00
|
|
|
COMMENT?= An X11 program that displays images of various formats
|
1997-11-04 14:14:17 +01:00
|
|
|
|
2001-01-16 18:33:20 +01:00
|
|
|
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
|
1999-09-07 12:45:31 +02:00
|
|
|
tiff.4:${PORTSDIR}/graphics/tiff \
|
2001-09-11 04:22:51 +02:00
|
|
|
png.5:${PORTSDIR}/graphics/png
|
1994-10-31 05:36:07 +01:00
|
|
|
|
1995-04-09 09:09:55 +02:00
|
|
|
USE_IMAKE= yes
|
2003-11-20 16:06:14 +01:00
|
|
|
USE_PERL5_BUILD=yes
|
1998-10-07 23:17:42 +02:00
|
|
|
.if !defined(NOMAN)
|
2001-06-14 17:53:53 +02:00
|
|
|
MAN1= bggen.1 vdcomp.1 xcmap.1 xv.1 xvp2p.1
|
1998-10-07 23:17:42 +02:00
|
|
|
.endif
|
1995-04-09 09:09:55 +02:00
|
|
|
|
1998-08-27 20:27:45 +02:00
|
|
|
XVDIST= ${DISTDIR}/${DIST_SUBDIR}
|
|
|
|
|
1997-07-03 09:37:12 +02:00
|
|
|
pre-patch:
|
1998-08-27 20:27:45 +02:00
|
|
|
@${PATCH} ${PATCH_ARGS} -p1 < ${WRKDIR}/xv-jp-extension/Patch.xv310a-ext-5.3.3
|
|
|
|
|
|
|
|
post-patch:
|
2001-02-20 16:29:47 +01:00
|
|
|
${PATCH} ${PATCH_ARGS} -p1 < ${XVDIST}/longname.patch
|
|
|
|
${PATCH} ${PATCH_ARGS} -p1 < ${XVDIST}/pdf.patch
|
2001-02-28 19:02:48 +01:00
|
|
|
${PATCH} ${PATCH_ARGS} -p0 < ${XVDIST}/mp-tiff-patch
|
2001-02-20 16:29:47 +01:00
|
|
|
${PATCH} ${PATCH_ARGS} -p1 < ${XVDIST}/xv-png-1.2d.patch
|
|
|
|
${PATCH} ${PATCH_ARGS} -p0 < ${XVDIST}/xvpng-1.2d-fix3.patch
|
2002-10-10 12:11:29 +02:00
|
|
|
${PATCH} ${PATCH_ARGS} -p1 < ${XVDIST}/jp-ext-bzip2-1.1.patch
|
1999-10-19 14:54:17 +02:00
|
|
|
@${MV} ${WRKSRC}/config.h ${WRKSRC}/config.h.in
|
|
|
|
@${CAT} ${WRKSRC}/config.h.in | \
|
|
|
|
${SED} -e "s@%%LOCALBASE%%@${LOCALBASE}@" > ${WRKSRC}/config.h
|
2001-06-14 17:53:53 +02:00
|
|
|
.for i in ${MAN1}
|
|
|
|
@${CP} ${WRKSRC}/docs/${i:R}.man ${WRKSRC}
|
|
|
|
.endfor
|
2001-09-11 17:03:17 +02:00
|
|
|
.if defined(NOMAN)
|
|
|
|
${PERL} -pi.orig -e 's,^InstallManPage.*$$,/\* $$& \*/,' ${WRKSRC}/Imakefile
|
|
|
|
.endif
|
2001-06-14 17:53:53 +02:00
|
|
|
|
1995-12-20 11:49:18 +01:00
|
|
|
post-install:
|
1998-08-27 20:27:45 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2004-06-16 07:02:37 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/README.PNG ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/docs/epsf.ps ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/docs/xpm.ps ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/docs/xvdocs.ps ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/docs/xvtitle.ps ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/docs/help ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/docs/bmp.doc ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/docs/gif* ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/../xv-jp-extension/CHANGELOG.* ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/../xv-jp-extension/README.PhotoCD ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/../xv-jp-extension/README.xv310a-ext-5.3.3 ${DOCSDIR}/README.xv310a-ext-5.3.3.ja
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/../xv-jp-extension/magic.add ${DOCSDIR}
|
1996-03-06 13:53:10 +01:00
|
|
|
.endif
|
1995-05-14 01:57:44 +02:00
|
|
|
|
1994-10-31 05:36:07 +01:00
|
|
|
.include <bsd.port.mk>
|