summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 e187275a..e85824c 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 602b0df..eadf001 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"
OpenPOWER on IntegriCloud