summaryrefslogtreecommitdiff
path: root/graphics/xv
diff options
context:
space:
mode:
authorShigeyuki Fukushima <shige@FreeBSD.org>1999-10-19 12:54:17 +0000
committerShigeyuki Fukushima <shige@FreeBSD.org>1999-10-19 12:54:17 +0000
commit1471f5cf0f6f47a0c6151801997c098b41759da9 (patch)
treeab08e5c29f7939e17fa5cfde764a12b2a79784cc /graphics/xv
parentUpgrade to 1.8a30. (diff)
Extract ${LOCALBASE} in config.h.
PR: ports/14086 Submitted by: amorita@meadow.scphys.kyoto-u.ac.jp
Notes
Notes: svn path=/head/; revision=22526
Diffstat (limited to 'graphics/xv')
-rw-r--r--graphics/xv/Makefile3
-rw-r--r--graphics/xv/files/patch-ac4
2 files changed, 5 insertions, 2 deletions
diff --git a/graphics/xv/Makefile b/graphics/xv/Makefile
index e187275ac13c..e85824ce75f8 100644
--- a/graphics/xv/Makefile
+++ b/graphics/xv/Makefile
@@ -48,6 +48,9 @@ post-patch:
@${PATCH} ${PATCH_ARGS} -p1 < ${XVDIST}/xv-png-1.2d.patch
@${PATCH} ${PATCH_ARGS} -p1 < ${XVDIST}/png-1.2d-fix.patch
@${PATCH} ${PATCH_ARGS} -p1 < ${XVDIST}/jp-ext-bzip2.patch
+ @${MV} ${WRKSRC}/config.h ${WRKSRC}/config.h.in
+ @${CAT} ${WRKSRC}/config.h.in | \
+ ${SED} -e "s@%%LOCALBASE%%@${LOCALBASE}@" > ${WRKSRC}/config.h
post-install:
.if !defined(NOPORTDOCS)
diff --git a/graphics/xv/files/patch-ac b/graphics/xv/files/patch-ac
index 602b0df12c2d..eadf0014f223 100644
--- a/graphics/xv/files/patch-ac
+++ b/graphics/xv/files/patch-ac
@@ -16,8 +16,8 @@
-/* #define GS_PATH "/usr/local/bin/gs" */
-/* #define GS_LIB "." */
-/* #define GS_DEV "ppmraw" */
-+#define GS_PATH "${LOCALBASE}/bin/gs"
-+#define GS_LIB "${LOCALBASE}/lib/ghostscript"
++#define GS_PATH "%%LOCALBASE%%/bin/gs"
++#define GS_LIB "%%LOCALBASE%%/lib/ghostscript"
+#define GS_DEV "ppmraw"