diff options
author | shige <shige@FreeBSD.org> | 1999-10-19 12:54:17 +0000 |
---|---|---|
committer | shige <shige@FreeBSD.org> | 1999-10-19 12:54:17 +0000 |
commit | 2936c878b64d60d4b852d2b9c1a79e4de3d8e3e0 (patch) | |
tree | b056ef8a458f7b4f27b1e79961688ccdf810ad24 /graphics/xv | |
parent | 2f2195ce8951050397862af0712ac9f4492b47be (diff) | |
download | FreeBSD-ports-2936c878b64d60d4b852d2b9c1a79e4de3d8e3e0.zip FreeBSD-ports-2936c878b64d60d4b852d2b9c1a79e4de3d8e3e0.tar.gz |
Extract ${LOCALBASE} in config.h.
PR: ports/14086
Submitted by: amorita@meadow.scphys.kyoto-u.ac.jp
Diffstat (limited to 'graphics/xv')
-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 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" |