diff options
author | frueauf <frueauf@pkgsrc.org> | 1999-01-04 23:29:46 +0000 |
---|---|---|
committer | frueauf <frueauf@pkgsrc.org> | 1999-01-04 23:29:46 +0000 |
commit | c467cb464384b53a628a2ec180148e13d98876ab (patch) | |
tree | c3458fc4876c092133c1e199d8fa7ebd8b9b419f /graphics/xv | |
parent | b41e3148a704d7a7ce442e17d8d0435852cfa430 (diff) | |
download | pkgsrc-c467cb464384b53a628a2ec180148e13d98876ab.tar.gz |
Add DEPENDS to ghostscript and remove hardcoding the path to /usr/pkg.
Diffstat (limited to 'graphics/xv')
-rw-r--r-- | graphics/xv/Makefile | 8 | ||||
-rw-r--r-- | graphics/xv/patches/patch-ac | 6 |
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" |