1994-10-31 04:36:07 +00:00
|
|
|
# New ports collection makefile for: xv
|
1995-02-07 07:40:21 +00:00
|
|
|
# Version required: 3.10a
|
1994-10-31 04:36:07 +00:00
|
|
|
# Date created: 30 October 1994
|
|
|
|
# Whom: smace
|
|
|
|
#
|
1999-08-25 06:16:32 +00:00
|
|
|
# $FreeBSD$
|
1994-10-31 04:36:07 +00:00
|
|
|
#
|
|
|
|
|
1995-02-07 07:40:21 +00:00
|
|
|
DISTNAME= xv-3.10a
|
1998-11-21 07:27:41 +00:00
|
|
|
CATEGORIES?= graphics
|
1997-07-03 07:37:12 +00:00
|
|
|
MASTER_SITES= ftp://ftp.cis.upenn.edu/pub/xv/ \
|
1998-08-27 18:27:45 +00:00
|
|
|
ftp://ftp.airlab.cs.ritsumei.ac.jp/pub/X/xv-jp-extension/working/ \
|
1999-02-27 15:33:17 +00:00
|
|
|
http://www.freebsd.org/~shige/ports/xv/ \
|
1998-08-28 14:38:42 +00:00
|
|
|
http://www.yuasa.kuis.kyoto-u.ac.jp/~shige/FreeBSD/ports/xv/
|
1997-07-03 07:37:12 +00:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
1998-08-27 18:27:45 +00:00
|
|
|
xv310a-jp-extension-rev5.3.3.tar.gz \
|
|
|
|
croppad.patch grabpatch jp-ext-bzip2.patch longname.patch \
|
1998-10-07 21:17:42 +00:00
|
|
|
mp-tiff-patch pdf.patch png-1.2d-fix.patch xv-png-1.2d.patch
|
1998-08-27 18:27:45 +00:00
|
|
|
DIST_SUBDIR= xv
|
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} \
|
|
|
|
xv310a-jp-extension-rev5.3.3.tar.gz
|
1997-07-03 07:37:12 +00:00
|
|
|
|
|
|
|
PATCH_SITES= ftp://ftp.cis.upenn.edu/pub/xv/
|
1997-12-01 08:08:03 +00:00
|
|
|
PATCHFILES= xv-3.10a.JPEG-patch xv-3.10a.TIFF-patch
|
1995-04-09 07:09:55 +00:00
|
|
|
|
1999-08-31 06:53:31 +00:00
|
|
|
MAINTAINER?= shige@FreeBSD.org
|
1997-11-04 13:14:17 +00:00
|
|
|
|
1998-09-14 20:16:03 +00:00
|
|
|
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
|
1999-09-07 10:45:31 +00:00
|
|
|
tiff.4:${PORTSDIR}/graphics/tiff \
|
1999-01-23 07:05:35 +00:00
|
|
|
png.3:${PORTSDIR}/graphics/png
|
1994-10-31 04:36:07 +00:00
|
|
|
|
1995-04-09 07:09:55 +00:00
|
|
|
USE_IMAKE= yes
|
1998-10-07 21:17:42 +00:00
|
|
|
.if !defined(NOMAN)
|
1998-10-05 03:13:41 +00:00
|
|
|
MAN1= bggen.1 vdcomp.1 xcmap.1 xv.1 xvpictoppm.1
|
1998-10-07 21:17:42 +00:00
|
|
|
.endif
|
1995-04-09 07:09:55 +00:00
|
|
|
|
1998-08-27 18:27:45 +00:00
|
|
|
XVDIST= ${DISTDIR}/${DIST_SUBDIR}
|
|
|
|
|
1997-07-03 07:37:12 +00:00
|
|
|
pre-patch:
|
1998-08-27 18:27:45 +00:00
|
|
|
@${PATCH} ${PATCH_ARGS} -p1 < ${WRKDIR}/xv-jp-extension/Patch.xv310a-ext-5.3.3
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${PATCH} ${PATCH_ARGS} -p0 < ${XVDIST}/croppad.patch
|
|
|
|
@${PATCH} ${PATCH_ARGS} -p0 < ${XVDIST}/grabpatch
|
|
|
|
@${PATCH} ${PATCH_ARGS} -p1 < ${XVDIST}/longname.patch
|
|
|
|
@${PATCH} ${PATCH_ARGS} -p0 < ${XVDIST}/mp-tiff-patch
|
|
|
|
@${PATCH} ${PATCH_ARGS} -p1 < ${XVDIST}/pdf.patch
|
1998-10-07 21:17:42 +00:00
|
|
|
@${PATCH} ${PATCH_ARGS} -p1 < ${XVDIST}/xv-png-1.2d.patch
|
1998-08-27 18:27:45 +00:00
|
|
|
@${PATCH} ${PATCH_ARGS} -p1 < ${XVDIST}/png-1.2d-fix.patch
|
|
|
|
@${PATCH} ${PATCH_ARGS} -p1 < ${XVDIST}/jp-ext-bzip2.patch
|
1999-10-19 12:54:17 +00:00
|
|
|
@${MV} ${WRKSRC}/config.h ${WRKSRC}/config.h.in
|
|
|
|
@${CAT} ${WRKSRC}/config.h.in | \
|
|
|
|
${SED} -e "s@%%LOCALBASE%%@${LOCALBASE}@" > ${WRKSRC}/config.h
|
1997-07-03 07:37:12 +00:00
|
|
|
|
1995-12-20 10:49:18 +00:00
|
|
|
post-install:
|
1998-08-27 18:27:45 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
1998-10-07 21:17:42 +00:00
|
|
|
@${MKDIR} ${PREFIX}/share/doc/xv
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/xv
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/README.PNG ${PREFIX}/share/doc/xv
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/docs/epsf.ps ${PREFIX}/share/doc/xv
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/docs/xpm.ps ${PREFIX}/share/doc/xv
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/docs/xvdocs.ps ${PREFIX}/share/doc/xv
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/docs/xvtitle.ps ${PREFIX}/share/doc/xv
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/docs/help ${PREFIX}/share/doc/xv
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/docs/bmp.doc ${PREFIX}/share/doc/xv
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/docs/gif* ${PREFIX}/share/doc/xv
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/../xv-jp-extension/CHANGELOG.* ${PREFIX}/share/doc/xv
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/../xv-jp-extension/README.PhotoCD ${PREFIX}/share/doc/xv
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/../xv-jp-extension/README.xv310a-ext-5.3.3 ${PREFIX}/share/doc/xv/README.xv310a-ext-5.3.3.ja
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/../xv-jp-extension/magic.add ${PREFIX}/share/doc/xv
|
1996-03-06 12:53:10 +00:00
|
|
|
.endif
|
1995-05-13 23:57:44 +00:00
|
|
|
|
1994-10-31 04:36:07 +00:00
|
|
|
.include <bsd.port.mk>
|