summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorfrueauf <frueauf>1999-01-04 23:29:46 +0000
committerfrueauf <frueauf>1999-01-04 23:29:46 +0000
commit55841ca278dcba287a6d899dc41c8fc559b92b51 (patch)
treec3458fc4876c092133c1e199d8fa7ebd8b9b419f /graphics
parentfce5be7af114700f9f8fa3e4cf9b04056345be7d (diff)
downloadpkgsrc-55841ca278dcba287a6d899dc41c8fc559b92b51.tar.gz
Add DEPENDS to ghostscript and remove hardcoding the path to /usr/pkg.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/xv/Makefile8
-rw-r--r--graphics/xv/patches/patch-ac6
2 files changed, 10 insertions, 4 deletions
diff --git a/graphics/xv/Makefile b/graphics/xv/Makefile
index 0563cda36a5..1e24cee007a 100644
--- a/graphics/xv/Makefile
+++ b/graphics/xv/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 1998/08/20 15:17:03 tsarna Exp $
+# $NetBSD: Makefile,v 1.16 1999/01/04 23:29:46 frueauf Exp $
# FreeBSD Id: Makefile,v 1.14 1997/07/03 07:37:08 asami Exp
#
@@ -18,6 +18,7 @@ HOMEPAGE= http://www-vis.lbl.gov/software/xv.html
DEPENDS+= tiff-3.4:../../graphics/tiff
DEPENDS+= jpeg-6b:../../graphics/jpeg
+DEPENDS+= ghostscript-5.50:../../print/ghostscript5
USE_IMAKE= yes
@@ -28,6 +29,11 @@ LICENSE= shareware
pre-patch:
@${PATCH} ${PATCH_ARGS} -p1 < ${WRKDIR}/Patch.magpic2.PhotoCD.XV310a
+post-patch:
+ ${MV} ${WRKSRC}/config.h ${WRKSRC}/config.h.bak
+ ${SED} -e 's|@LOCALBASE@|${LOCALBASE}|g' < ${WRKSRC}/config.h.bak \
+ > ${WRKSRC}/config.h
+
post-install:
${MKDIR} ${PREFIX}/share/doc/xv
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/xv
diff --git a/graphics/xv/patches/patch-ac b/graphics/xv/patches/patch-ac
index 4e0e3d18f33..ea219aa4c27 100644
--- a/graphics/xv/patches/patch-ac
+++ b/graphics/xv/patches/patch-ac
@@ -1,4 +1,4 @@
-$NetBSD: patch-ac,v 1.3 1998/08/07 10:40:55 agc Exp $
+$NetBSD: patch-ac,v 1.4 1999/01/04 23:29:46 frueauf Exp $
*** /tmp/T0a03151 Mon Feb 13 18:35:11 1995
--- config.h Mon Feb 13 18:34:49 1995
@@ -32,8 +32,8 @@ $NetBSD: patch-ac,v 1.3 1998/08/07 10:40:55 agc Exp $
* should not need to be changed
*/
-! #define GS_PATH "/usr/pkg/bin/gs"
-! #define GS_LIB "/usr/pkg/share/ghostscript"
+! #define GS_PATH "@LOCALBASE@/bin/gs"
+! #define GS_LIB "@LOCALBASE@/share/ghostscript"
! #define GS_DEV "ppmraw"