summaryrefslogtreecommitdiff
path: root/graphics/xv
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2007-07-08 10:50:23 +0000
committerwiz <wiz@pkgsrc.org>2007-07-08 10:50:23 +0000
commitd2daeb6054346ec080bef6bcbc1d5c1a12e1033a (patch)
tree130fa53c1048490e86efa28e70ae1cb2196f0df5 /graphics/xv
parent1a98458c52ce17685da5c7a0e10c3b25fd6a457f (diff)
downloadpkgsrc-d2daeb6054346ec080bef6bcbc1d5c1a12e1033a.tar.gz
Update to xv-3.10a-jumbo-patches-20070520.
Merge patch-ad and patch-ah. Use SUBST framework. Add some tools (per pkglint). Bump PKGREVISION.
Diffstat (limited to 'graphics/xv')
-rw-r--r--graphics/xv/Makefile47
-rw-r--r--graphics/xv/PLIST12
-rw-r--r--graphics/xv/distinfo20
-rw-r--r--graphics/xv/patches/patch-aa26
-rw-r--r--graphics/xv/patches/patch-ab14
-rw-r--r--graphics/xv/patches/patch-ac11
-rw-r--r--graphics/xv/patches/patch-ad78
-rw-r--r--graphics/xv/patches/patch-af35
-rw-r--r--graphics/xv/patches/patch-ah68
-rw-r--r--graphics/xv/patches/patch-ai22
-rw-r--r--graphics/xv/patches/patch-aj22
11 files changed, 128 insertions, 227 deletions
diff --git a/graphics/xv/Makefile b/graphics/xv/Makefile
index 38f270077f1..c2426e2eea4 100644
--- a/graphics/xv/Makefile
+++ b/graphics/xv/Makefile
@@ -1,14 +1,14 @@
-# $NetBSD: Makefile,v 1.68 2007/01/23 02:50:19 dmcmahill Exp $
+# $NetBSD: Makefile,v 1.69 2007/07/08 10:50:23 wiz Exp $
DISTNAME= xv-3.10a
-PKGREVISION= 12
+PKGREVISION= 13
CATEGORIES= graphics x11
MASTER_SITES= ftp://ftp.cis.upenn.edu/pub/xv/
-#DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} xv-3.10a-jumbo-patches-20070520.tar.gz
-PATCHFILES= xv-3.10a-jumbo-patches-20050501.tar.bz2
+PATCHFILES= xv-3.10a-jumbo-patches-20070520.tar.gz
PATCH_SITES= ${MASTER_SITE_SOURCEFORGE:=png-mng/}
-PATCH_DIST_CAT= ${BZCAT} $$patchfile | ${TAR} -Oxf - "*-patch-*"
+PATCH_DIST_CAT= ${GZCAT} $$patchfile | ${TAR} -Oxf - "*-patch-*"
PATCH_DIST_STRIP= -p1
MAINTAINER= pkgsrc-users@NetBSD.org
@@ -17,6 +17,7 @@ HOMEPAGE= http://www.trilon.com/xv/
COMMENT= X11 program that displays images of various formats
USE_IMAKE= YES
+USE_TOOLS+= gzcat tar
# See the end of README in work/xv-3.10a for details.
RESTRICTED= Distribution of modified copies and commercial distribution is not permitted.
@@ -24,26 +25,34 @@ NO_SRC_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_FTP= ${RESTRICTED}
+MAKEFLAGS+= PREFIX=${PREFIX:Q}
+MAKEFLAGS+= MANDIR=${PREFIX}/${PKGMANDIR}/cat1
+MAKEFLAGS+= PNGDIR=${BUILDLINK_PREFIX.png}
+CPPFLAGS+= -DDOCDIR=\""${PREFIX:Q}/share/doc/xv"\"
+
LICENSE= xv-license
+BUILD_TARGET= depend all
+
+SUBST_CLASSES+= gspath
+SUBST_FILES.gspath= config.h
+SUBST_SED.gspath= -e 's|@LOCALBASE@|${LOCALBASE}|g'
+SUBST_STAGE.gspath= post-configure
+SUBST_MESSAGE.gspath= Fixing path to ghostscript interpreter.
.include "../../mk/bsd.prefs.mk"
-.if !empty(LOWER_OPSYS:Mirix5*) || !empty(LOWER_OPSYS:Msolaris*)
-CPPFLAGS+= -DNEED_ALLOCA_H
+.if ${OPSYS} == "SunOS"
+SUBST_CLASSES+= ccflags
+SUBST_FILES.ccflags= Makefile
+SUBST_SED.ccflags= -e 's| CC = .*| CC = ${CC:Q}|'
+SUBST_SED.ccflags+= -e 's| CCOPTIONS = .*| CCOPTIONS = ${CFLAGS:Q}|'
+SUBST_SED.ccflags+= -e 's| CDEBUGFLAGS = .*| CDEBUGFLAGS =|'
+SUBST_STAGE.ccflags= post-configure
+SUBST_MESSAGE.ccflags= Fixing compiler flags for Solaris.
.endif
-pre-configure:
- ${MV} ${WRKSRC}/config.h ${WRKSRC}/config.h.orig && \
- ${SED} -e 's|@LOCALBASE@|${LOCALBASE}|g' \
- ${WRKSRC}/config.h.orig > ${WRKSRC}/config.h
-
-.if ${OPSYS} == "SunOS"
-post-configure:
- ${MV} ${WRKSRC}/${MAKE_FILE} ${WRKSRC}/${MAKE_FILE}.orig && \
- ${SED} -e 's| CC = .*| CC = ${CC}|' \
- -e 's| CCOPTIONS = .*| CCOPTIONS = ${CFLAGS}|' \
- -e 's| CDEBUGFLAGS = .*| CDEBUGFLAGS =|' \
- ${WRKSRC}/${MAKE_FILE}.orig > ${WRKSRC}/${MAKE_FILE}
+.if !empty(LOWER_OPSYS:Mirix5*) || !empty(LOWER_OPSYS:Msolaris*)
+CPPFLAGS+= -DNEED_ALLOCA_H
.endif
post-install:
diff --git a/graphics/xv/PLIST b/graphics/xv/PLIST
index b1de604e671..ca7236ab8ad 100644
--- a/graphics/xv/PLIST
+++ b/graphics/xv/PLIST
@@ -1,15 +1,15 @@
-@comment $NetBSD: PLIST,v 1.3 2005/08/10 16:50:18 he Exp $
+@comment $NetBSD: PLIST,v 1.4 2007/07/08 10:50:23 wiz Exp $
bin/bggen
bin/vdcomp
bin/xcmap
bin/xv
bin/xvpictoppm
lib/X11/xv_mgcsfx.sample
-${IMAKE_MAN_DIR}/xv.${IMAKE_MANNEWSUFFIX}
-${IMAKE_MAN_DIR}/bggen.${IMAKE_MANNEWSUFFIX}
-${IMAKE_MAN_DIR}/vdcomp.${IMAKE_MANNEWSUFFIX}
-${IMAKE_MAN_DIR}/xcmap.${IMAKE_MANNEWSUFFIX}
-${IMAKE_MAN_DIR}/xvpictoppm.${IMAKE_MANNEWSUFFIX}
+man/cat1/bggen.0
+man/cat1/vdcomp.0
+man/cat1/xcmap.0
+man/cat1/xv.0
+man/cat1/xvpictoppm.0
share/doc/xv/README
share/doc/xv/xvdocs.ps
@dirrm share/doc/xv
diff --git a/graphics/xv/distinfo b/graphics/xv/distinfo
index 21e47517413..94582f504d2 100644
--- a/graphics/xv/distinfo
+++ b/graphics/xv/distinfo
@@ -1,16 +1,12 @@
-$NetBSD: distinfo,v 1.13 2006/05/14 21:16:00 schwarz Exp $
+$NetBSD: distinfo,v 1.14 2007/07/08 10:50:24 wiz Exp $
+SHA1 (xv-3.10a-jumbo-patches-20070520.tar.gz) = d00308c1687d9d803d26ef40c73d19a0f593c626
+RMD160 (xv-3.10a-jumbo-patches-20070520.tar.gz) = 23bc07030416ebaca5ce4d223921e33094c37b93
+Size (xv-3.10a-jumbo-patches-20070520.tar.gz) = 1363802 bytes
SHA1 (xv-3.10a.tar.gz) = 9e6372f154be9e9e355972cbeb91d98d9c342474
RMD160 (xv-3.10a.tar.gz) = 7d545e0c0e5b0120a7d026ea549cba19a53fbc0d
Size (xv-3.10a.tar.gz) = 2259124 bytes
-SHA1 (xv-3.10a-jumbo-patches-20050501.tar.bz2) = deb42fc30697312f13fcedb88f10cc3ed0ced8ac
-RMD160 (xv-3.10a-jumbo-patches-20050501.tar.bz2) = d199e7d1b6c5162e0cad09d4118b3735f1d156ef
-Size (xv-3.10a-jumbo-patches-20050501.tar.bz2) = 369886 bytes
-SHA1 (patch-aa) = 9bfd1e6a55766e4c6f60907a5f58a882657dca9b
-SHA1 (patch-ab) = 1be183fb72ba82cc15fdcec6607c1e294e284370
-SHA1 (patch-ac) = cc0da5cefbb4a13b86daaca482c52ece4bc3294c
-SHA1 (patch-ad) = 3a49ca0152f6a7d6cf79348e3b5308da509b63ea
-SHA1 (patch-af) = 1beddc2abe530871fcdbb2cea5682225c194bd4d
-SHA1 (patch-ah) = 830139139ddf49a505786cde8930ba1e9ae006f4
-SHA1 (patch-ai) = 10febc95047fc25a3b93c157eb39ed1ed7a30bc6
-SHA1 (patch-aj) = 7f40c002d8a16b1507c6171db543285447e3cf81
+SHA1 (patch-aa) = bd6ef51bf962e1994e2e47ba5197c9729ec5221a
+SHA1 (patch-ac) = 39933efe8411df805abfac5a1e43f1e5bee2ea8f
+SHA1 (patch-ad) = b0d0d4f4243ceb091e0734c0024c997bdf7e86c7
+SHA1 (patch-af) = c6ede0291556f7739274e8352d6fb626480927e8
diff --git a/graphics/xv/patches/patch-aa b/graphics/xv/patches/patch-aa
index 6f19d7262f6..b7ac2d6508c 100644
--- a/graphics/xv/patches/patch-aa
+++ b/graphics/xv/patches/patch-aa
@@ -1,14 +1,14 @@
-$NetBSD: patch-aa,v 1.4 2006/03/15 19:27:31 minskim Exp $
+$NetBSD: patch-aa,v 1.5 2007/07/08 10:50:24 wiz Exp $
---- vdcomp.c.orig 2006-03-15 11:00:24.000000000 -0800
-+++ vdcomp.c
-@@ -116,7 +116,8 @@
- # if defined(hp300) || defined(hp800) || defined(NeXT)
- # include <sys/malloc.h> /* it's in 'sys' on HPs and NeXT */
- # else
--# if !defined(__386BSD__) && !defined(__FreeBSD__) && !defined(__NetBSD__)
-+# if !defined(__386BSD__) && !defined(__FreeBSD__) && !defined(__NetBSD__) \
-+ && !defined(__DARWIN__)
- /*
- I want to use BSD macro for checking if this OS is *BSD or not,
- but the macro is defined in <sys/parm.h>, which I don't know all
+--- xvpcd.c.orig 2007-05-14 01:02:13.000000000 +0000
++++ xvpcd.c
+@@ -30,9 +30,6 @@
+ #ifdef HAVE_PCD
+
+ #include <memory.h>
+-#ifndef alloca
+-# include <alloca.h> /* "not in POSIX or SUSv3" according to Linux man page */
+-#endif /* ...but required for Sun C compiler (alloca = macro) */
+
+ #define TRACE 0
+ #if TRACE
diff --git a/graphics/xv/patches/patch-ab b/graphics/xv/patches/patch-ab
deleted file mode 100644
index 83fb756df8a..00000000000
--- a/graphics/xv/patches/patch-ab
+++ /dev/null
@@ -1,14 +0,0 @@
-$NetBSD: patch-ab,v 1.8 2006/05/14 21:16:00 schwarz Exp $
-
---- xvpcd.c.orig 2006-05-14 18:38:26.000000000 +0200
-+++ xvpcd.c 2006-05-14 18:39:31.000000000 +0200
-@@ -27,6 +27,9 @@
-
- #include "xv.h"
- #include <memory.h>
-+#ifdef NEED_ALLOCA_H
-+#include <alloca.h>
-+#endif
-
- #ifdef HAVE_PCD
-
diff --git a/graphics/xv/patches/patch-ac b/graphics/xv/patches/patch-ac
index 90853f8f1fa..1eaf12969e9 100644
--- a/graphics/xv/patches/patch-ac
+++ b/graphics/xv/patches/patch-ac
@@ -1,13 +1,12 @@
-$NetBSD: patch-ac,v 1.8 2005/08/10 16:50:18 he Exp $
+$NetBSD: patch-ac,v 1.9 2007/07/08 10:50:25 wiz Exp $
---- config.h.orig 2005-07-29 15:11:02.000000000 +0200
+--- config.h.orig 2007-06-08 07:29:49.000000000 +0000
+++ config.h
-@@ -116,10 +116,9 @@
- * should not need to be changed
+@@ -113,9 +113,9 @@
*/
--/* #define GS_PATH "/usr/local/bin/gs" */
--#define GS_PATH "/usr/bin/gs"
+ /* #define GS_PATH "/usr/local/bin/gs" */
+-#define GS_PATH "gs"
-/* #define GS_LIB "." */
-/* #define GS_DEV "ppmraw" */
+#define GS_PATH "@LOCALBASE@/bin/gs"
diff --git a/graphics/xv/patches/patch-ad b/graphics/xv/patches/patch-ad
index 084cd73ae99..4bbe23c05a1 100644
--- a/graphics/xv/patches/patch-ad
+++ b/graphics/xv/patches/patch-ad
@@ -1,6 +1,7 @@
-$NetBSD: patch-ad,v 1.9 2005/08/10 16:50:18 he Exp $
+$NetBSD: patch-ad,v 1.10 2007/07/08 10:50:26 wiz Exp $
---- Imakefile.orig 2005-07-29 15:14:59.000000000 +0200
+diff -u Imakefile Imakefile
+--- Imakefile.orig
+++ Imakefile
@@ -6,13 +6,15 @@
/* if, for whatever reason, you're unable to get the JPEG library to compile
@@ -20,7 +21,17 @@ $NetBSD: patch-ad,v 1.9 2005/08/10 16:50:18 he Exp $
/* if, for whatever reason, you're unable to get the PDS/VICAR support
-@@ -124,16 +126,30 @@ MGCSFX = -DMGCSFXDIR=\"$(MGCSFXDIR)\"
+@@ -21,6 +23,9 @@
+ #define HavePDS
+
+
++#define UseInstalledPng
++#define UseInstalledZlib
++
+ /*
+ * if you are running on a SysV-based machine, such as HP, Silicon Graphics,
+ * etc, uncomment one of the following lines to get you *most* of the way
+@@ -124,20 +129,62 @@
JPEG = -DDOJPEG
JPEGDIR = jpeg
LIBJPEG = $(JPEGDIR)/libjpeg.a
@@ -44,36 +55,61 @@ $NetBSD: patch-ad,v 1.9 2005/08/10 16:50:18 he Exp $
+#ifdef UseInstalledTiff
+TIFF = -DDOTIFF
-+LIBTIFF = -L$(LOCALBASE)/lib -ltiff -ljpeg -lz
++LIBTIFF = -L$(LOCALBASE)/lib -Wl,-R$(LOCALBASE)/lib -ltiff -ljpeg -lz
+TIFFINCLUDE = -I$(LOCALBASE)/include
+#endif
+
#ifdef HavePDS
PDS = -DDOPDS
#endif
-@@ -149,8 +165,8 @@ SYS_LIBRARIES= -lm
+
++/*
++###
++### if, for whatever reason, you're unable to get the PNG library to compile
++### on your machine, *COMMENT OUT* the following lines
++###
++*/
++#ifdef UseInstalledPng
++PNG = -DDOPNG
++PNGDIR = ${LOCALBASE}
++PNGINC = -I$(PNGDIR)/include
++PNGLIB = -L$(PNGDIR)/lib -lpng -lz
++LIBPNG = ${PNGLIB}
++PNGINCLUDE = ${PNGINC}
++#endif
++
++/*
++###
++### if, for whatever reason, you're unable to get the PNG library to compile
++### on your machine, *COMMENT OUT* the following lines
++###
++*/
++#ifdef UseInstalledZlib
++ZLIBDIR = $(LOCALBASE)
++ZLIBINC = -I$(ZLIBDIR)/include
++ZLIBLIB = -L$(ZLIBDIR)/lib -lz
++LIBZLIB = ${ZLIB}
++ZLIBINCLUDE = ${ZLIBINC}
++#endif
+
+ #if defined(SCOArchitecture)
+ SCO= -Dsco -DPOSIX -DNO_RANDOM
+@@ -149,14 +196,14 @@
#endif
-DEPLIBS = $(LIBJPEG) $(LIBTIFF)
-LOCAL_LIBRARIES = $(XLIB) $(DEPLIBS)
-+DEPLIBS = $(DEPLIBJPEG) $(DEPLIBTIFF)
-+LOCAL_LIBRARIES = $(XLIB) $(LIBJPEG) $(LIBTIFF)
++DEPLIBS = $(DEPLIBJPEG) $(DEPLIBTIFF) $(DEPLIBPNG) $(DEPLIBZLIB)
++LOCAL_LIBRARIES = $(XLIB) $(LIBJPEG) $(LIBTIFF) $(LIBPNG) $(LIBZLIB)
DEFINES= $(SCO) $(UNIX) $(NODIRENT) $(VPRINTF) $(TIMERS) \
- $(HPUX7) $(JPEG) $(TIFF) $(PDS) $(DXWM) $(RAND) \
-@@ -194,10 +210,10 @@ OBJS5= xvpictoppm.o
-
- PROGRAMS= xv bggen vdcomp xcmap xvpictoppm
-
--all::
-- @echo ""
-- @echo " Did you remember to 'make depend' first?"
-- @echo ""
-+#all::
-+# @echo ""
-+# @echo " Did you remember to 'make depend' first?"
-+# @echo ""
+- $(HPUX7) $(JPEG) $(TIFF) $(PDS) $(DXWM) $(RAND) \
++ $(HPUX7) $(JPEG) $(TIFF) $(PNG) $(PDS) $(DXWM) $(RAND) \
+ $(BACKING_STORE) $(BSDTYPES) $(SGI) $(MGCSFX)
+-INCLUDES = $(JPEGINCLUDE) $(TIFFINCLUDE)
++INCLUDES = $(JPEGINCLUDE) $(TIFFINCLUDE) $(PNGINCLUDE) $(ZLIBINCLUDE)
- #if defined(HaveJpeg) || defined(HaveTiff)
+ SRCS1 = xv.c xvevent.c xvroot.c xvmisc.c xvimage.c xvcolor.c xvsmooth.c \
+ xv24to8.c xvgif.c xvpm.c xvinfo.c xvctrl.c xvscrl.c xvalg.c \
diff --git a/graphics/xv/patches/patch-af b/graphics/xv/patches/patch-af
index f28b366a548..2a3cdf4e075 100644
--- a/graphics/xv/patches/patch-af
+++ b/graphics/xv/patches/patch-af
@@ -1,8 +1,8 @@
-$NetBSD: patch-af,v 1.6 2006/03/15 19:27:31 minskim Exp $
+$NetBSD: patch-af,v 1.7 2007/07/08 10:50:26 wiz Exp $
---- xv.h.orig 2006-03-15 11:00:24.000000000 -0800
+--- xv.h.orig 2007-06-08 07:24:51.000000000 +0000
+++ xv.h
-@@ -137,9 +137,7 @@
+@@ -138,9 +138,7 @@
#endif
@@ -13,7 +13,7 @@ $NetBSD: patch-af,v 1.6 2006/03/15 19:27:31 minskim Exp $
/* include files */
-@@ -158,7 +156,7 @@
+@@ -159,7 +157,7 @@
#ifndef VMS
# include <errno.h>
# ifndef __NetBSD__
@@ -22,7 +22,7 @@ $NetBSD: patch-af,v 1.6 2006/03/15 19:27:31 minskim Exp $
extern int errno; /* SHOULD be in errno.h, but often isn't */
extern char *sys_errlist[]; /* this too... */
# endif
-@@ -170,7 +168,7 @@
+@@ -171,7 +169,7 @@
#ifdef VMS
# define ERRSTR(x) strerror(x, vaxc$errno)
#else
@@ -31,27 +31,14 @@ $NetBSD: patch-af,v 1.6 2006/03/15 19:27:31 minskim Exp $
# define ERRSTR(x) strerror(x)
# else
# define ERRSTR(x) sys_errlist[x]
-@@ -215,7 +213,9 @@
+@@ -207,7 +205,9 @@
# if defined(hp300) || defined(hp800) || defined(NeXT)
- # include <sys/malloc.h> /* it's in 'sys' on HPs and NeXT */
+ # include <sys/malloc.h> /* it's in "sys" on HPs and NeXT */
# else
--# include <malloc.h>
-+# ifndef __DARWIN__
-+# include <malloc.h>
-+# endif
+-# include <malloc.h>
++# ifndef __DARWIN__
++# include <malloc.h>
++# endif
# endif
- # endif
- #endif /* !VMS */
-@@ -345,7 +345,11 @@
#endif
- #ifndef S_IRWUSR
--# define S_IRWUSR (S_IRUSR|__S_IWRITE)
-+# ifdef __S_IWRITE
-+# define S_IRWUSR (S_IRUSR|__S_IWRITE)
-+# else
-+# define S_IRWUSR (S_IRUSR|S_IWUSR)
-+# endif
- #endif
-
- #ifndef MAXPATHLEN
diff --git a/graphics/xv/patches/patch-ah b/graphics/xv/patches/patch-ah
deleted file mode 100644
index e2aac4e456f..00000000000
--- a/graphics/xv/patches/patch-ah
+++ /dev/null
@@ -1,68 +0,0 @@
-$NetBSD: patch-ah,v 1.2 2005/08/10 16:50:18 he Exp $
-
---- Imakefile.orig 2005-07-29 15:28:09.000000000 +0200
-+++ Imakefile
-@@ -23,6 +23,9 @@
- #define HavePDS
-
-
-+#define UseInstalledPng
-+#define UseInstalledZlib
-+
- /*
- * if you are running on a SysV-based machine, such as HP, Silicon Graphics,
- * etc, uncomment one of the following lines to get you *most* of the way
-@@ -154,6 +157,34 @@ TIFFINCLUDE = -I$(LOCALBASE)/include
- PDS = -DDOPDS
- #endif
-
-+/*
-+###
-+### if, for whatever reason, you're unable to get the PNG library to compile
-+### on your machine, *COMMENT OUT* the following lines
-+###
-+*/
-+#ifdef UseInstalledPng
-+PNG = -DDOPNG
-+PNGDIR = ${LOCALBASE}
-+PNGINC = -I$(PNGDIR)/include
-+PNGLIB = -L$(PNGDIR)/lib -lpng -lz
-+LIBPNG = ${PNGLIB}
-+PNGINCLUDE = ${PNGINC}
-+#endif
-+
-+/*
-+###
-+### if, for whatever reason, you're unable to get the PNG library to compile
-+### on your machine, *COMMENT OUT* the following lines
-+###
-+*/
-+#ifdef UseInstalledZlib
-+ZLIBDIR = $(LOCALBASE)
-+ZLIBINC = -I$(ZLIBDIR)/include
-+ZLIBLIB = -L$(ZLIBDIR)/lib -lz
-+LIBZLIB = ${ZLIB}
-+ZLIBINCLUDE = ${ZLIBINC}
-+#endif
-
- #if defined(SCOArchitecture)
- SCO= -Dsco -DPOSIX -DNO_RANDOM
-@@ -165,14 +196,14 @@ SYS_LIBRARIES= -lm
- #endif
-
-
--DEPLIBS = $(DEPLIBJPEG) $(DEPLIBTIFF)
--LOCAL_LIBRARIES = $(XLIB) $(LIBJPEG) $(LIBTIFF)
-+DEPLIBS = $(DEPLIBJPEG) $(DEPLIBTIFF) $(DEPLIBPNG) $(DEPLIBZLIB)
-+LOCAL_LIBRARIES = $(XLIB) $(LIBJPEG) $(LIBTIFF) $(LIBPNG) $(LIBZLIB)
-
- DEFINES= $(SCO) $(UNIX) $(NODIRENT) $(VPRINTF) $(TIMERS) \
-- $(HPUX7) $(JPEG) $(TIFF) $(PDS) $(DXWM) $(RAND) \
-+ $(HPUX7) $(JPEG) $(TIFF) $(PNG) $(PDS) $(DXWM) $(RAND) \
- $(BACKING_STORE) $(BSDTYPES) $(SGI) $(MGCSFX)
-
--INCLUDES = $(JPEGINCLUDE) $(TIFFINCLUDE)
-+INCLUDES = $(JPEGINCLUDE) $(TIFFINCLUDE) $(PNGINCLUDE) $(ZLIBINCLUDE)
-
- SRCS1 = xv.c xvevent.c xvroot.c xvmisc.c xvimage.c xvcolor.c xvsmooth.c \
- xv24to8.c xvgif.c xvpm.c xvinfo.c xvctrl.c xvscrl.c xvalg.c \
diff --git a/graphics/xv/patches/patch-ai b/graphics/xv/patches/patch-ai
deleted file mode 100644
index c8135669581..00000000000
--- a/graphics/xv/patches/patch-ai
+++ /dev/null
@@ -1,22 +0,0 @@
-$NetBSD: patch-ai,v 1.2 2005/08/10 16:50:18 he Exp $
-
---- Makefile.orig 2005-07-29 15:30:40.000000000 +0200
-+++ Makefile
-@@ -41,7 +41,7 @@ CLEANDIR = cleandir
-
-
- ### Installation locations
--PREFIX = /usr/local
-+PREFIX = ${LOCALBASE}
- BINDIR = $(PREFIX)/bin
- MANDIR = $(PREFIX)/man/man1
- MANSUF = 1
-@@ -89,7 +89,7 @@ JPEGLIB = -L$(JPEGDIR)/lib -ljpeg
- ### on your machine, *COMMENT OUT* the following lines
- ###
- PNG = -DDOPNG
--PNGDIR = /usr
-+PNGDIR = ${LOCALBASE}
- #PNGDIR = /usr/local
- #PNGDIR = ../../libpng
- ###
diff --git a/graphics/xv/patches/patch-aj b/graphics/xv/patches/patch-aj
deleted file mode 100644
index 38fe3742a71..00000000000
--- a/graphics/xv/patches/patch-aj
+++ /dev/null
@@ -1,22 +0,0 @@
-$NetBSD: patch-aj,v 1.2 2005/08/10 16:50:18 he Exp $
-
---- Makefile.std.orig 2005-07-29 15:33:26.000000000 +0200
-+++ Makefile.std
-@@ -41,7 +41,7 @@ CLEANDIR = cleandir
-
-
- ### Installation locations
--PREFIX = /usr/local
-+PREFIX = ${LOCALBASE}
- BINDIR = $(PREFIX)/bin
- MANDIR = $(PREFIX)/man/man1
- MANSUF = 1
-@@ -89,7 +89,7 @@ JPEGLIB = -L$(JPEGDIR)/lib -ljpeg
- ### on your machine, *COMMENT OUT* the following lines
- ###
- PNG = -DDOPNG
--PNGDIR = /usr
-+PNGDIR = ${LOCALBASE}
- #PNGDIR = /usr/local
- #PNGDIR = ../../libpng
- ###