diff options
-rw-r--r-- | graphics/xv/Makefile | 3 | ||||
-rw-r--r-- | graphics/xv/files/patch-ac | 4 |
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" |