diff options
author | dinoex <dinoex@FreeBSD.org> | 2009-05-17 21:20:46 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2009-05-17 21:20:46 +0800 |
commit | 45b338819027f2e0eb1fbcdfe75b4ba72f76e334 (patch) | |
tree | b35477b1f1088248657ac687fc8c3ef8c44bf010 /graphics/xv/Makefile | |
parent | 96a146c92e3192793871d1177c59e0bdb474e758 (diff) | |
download | freebsd-ports-gnome-45b338819027f2e0eb1fbcdfe75b4ba72f76e334.tar.gz freebsd-ports-gnome-45b338819027f2e0eb1fbcdfe75b4ba72f76e334.tar.zst freebsd-ports-gnome-45b338819027f2e0eb1fbcdfe75b4ba72f76e334.zip |
- use jumbo patches
- support jasper
- many bugfixes
Diffstat (limited to 'graphics/xv/Makefile')
-rw-r--r-- | graphics/xv/Makefile | 46 |
1 files changed, 15 insertions, 31 deletions
diff --git a/graphics/xv/Makefile b/graphics/xv/Makefile index 35309f658371..429ce2520bf0 100644 --- a/graphics/xv/Makefile +++ b/graphics/xv/Makefile @@ -7,36 +7,28 @@ PORTNAME= xv PORTVERSION= 3.10a -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES+= graphics -MASTER_SITES= ${MASTER_SITE_LOCAL} -MASTER_SITE_SUBDIR= ../distfiles/xv -# 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. -DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ - ${PORTNAME}${PORTVERSION:S/.//}-jp-extension-rev5.3.3.tar.gz \ - jp-ext-bzip2-1.1.patch longname.patch pdf.patch mp-tiff-patch \ - xv-png-1.2d.patch xvpng-1.2d-fix3.patch +MASTER_SITES= ftp://ftp.cis.upenn.edu/pub/xv/:base \ + ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= png-mng +DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:base \ + ${DISTNAME}-jumbo-patches-20070520.tar.gz DIST_SUBDIR= ${PORTNAME} -EXTRACT_ONLY= ${DISTFILES:N*patch} -# Note: xpm.patch appears to already be in xvdir.c -PATCHFILES= ${DISTNAME}.JPEG-patch ${DISTNAME}.TIFF-patch \ - croppad.patch grabpatch vispatch \ - deepcolor.patch gifpatch exceed_grab.patch \ - tiff1200.patch gssafer.patch +PATCH_SITES= http://www.gregroelofs.com/code/ +PATCHFILES= xv-3.10a-enhancements.20070520-20081216.diff MAINTAINER?= dinoex@FreeBSD.org COMMENT?= An X11 program that displays images of various formats LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \ tiff.4:${PORTSDIR}/graphics/tiff \ - png.5:${PORTSDIR}/graphics/png + png.5:${PORTSDIR}/graphics/png \ + jasper.4:${PORTSDIR}/graphics/jasper USE_IMAKE= yes USE_XORG= xext x11 xt -USE_PERL5_BUILD=yes .if !defined(NOMAN) MAN1= bggen.1 vdcomp.1 xcmap.1 xv.1 xvp2p.1 .endif @@ -44,15 +36,9 @@ MAN1= bggen.1 vdcomp.1 xcmap.1 xv.1 xvp2p.1 XVDIST= ${DISTDIR}/${DIST_SUBDIR} pre-patch: - @${PATCH} ${PATCH_ARGS} -p1 < ${WRKDIR}/xv-jp-extension/Patch.xv310a-ext-5.3.3 + @${PATCH} ${PATCH_ARGS} -p1 < ${WRKDIR}/xv-3.10a-jumbo-fix-enh-patch-20070520.txt post-patch: - ${PATCH} ${PATCH_ARGS} -p1 < ${XVDIST}/longname.patch - ${PATCH} ${PATCH_ARGS} -p1 < ${XVDIST}/pdf.patch - ${PATCH} ${PATCH_ARGS} -p0 < ${XVDIST}/mp-tiff-patch - ${PATCH} ${PATCH_ARGS} -p1 < ${XVDIST}/xv-png-1.2d.patch - ${PATCH} ${PATCH_ARGS} -p0 < ${XVDIST}/xvpng-1.2d-fix3.patch - ${PATCH} ${PATCH_ARGS} -p1 < ${XVDIST}/jp-ext-bzip2-1.1.patch @${MV} ${WRKSRC}/config.h ${WRKSRC}/config.h.in @${CAT} ${WRKSRC}/config.h.in | \ ${SED} -e "s@%%LOCALBASE%%@${LOCALBASE}@" > ${WRKSRC}/config.h @@ -60,14 +46,16 @@ post-patch: @${CP} ${WRKSRC}/docs/${i:R}.man ${WRKSRC} .endfor .if defined(NOMAN) - ${PERL} -pi.orig -e 's,^InstallManPage.*$$,/\* $$& \*/,' ${WRKSRC}/Imakefile + ${REINPLACE_CMD} -e 's,^InstallManPage.*$$,/\* $$& \*/,' \ + ${WRKSRC}/Imakefile .endif post-install: .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} @${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} - @${INSTALL_DATA} ${WRKSRC}/README.PNG ${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/README.jumbo ${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/README.pcd ${DOCSDIR} @${INSTALL_DATA} ${WRKSRC}/docs/epsf.ps ${DOCSDIR} @${INSTALL_DATA} ${WRKSRC}/docs/xpm.ps ${DOCSDIR} @${INSTALL_DATA} ${WRKSRC}/docs/xvdocs.ps ${DOCSDIR} @@ -75,10 +63,6 @@ post-install: @${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} .endif .include <bsd.port.mk> |