summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorgrant <grant>2003-02-25 05:34:39 +0000
committergrant <grant>2003-02-25 05:34:39 +0000
commitd7d69ed1efd16b2d0eb80d18481b51a63e6991cd (patch)
tree1eb4bb0e559127a057bad97d3912ff0ab2771a78 /graphics
parent3d3f59220bf237f7d603d2af34ad76b9e5207029 (diff)
downloadpkgsrc-d7d69ed1efd16b2d0eb80d18481b51a63e6991cd.tar.gz
tidy up post-patch and post-configure targets:
- fix sed delimeter, quoting, consistency - whitespace police
Diffstat (limited to 'graphics')
-rw-r--r--graphics/xv/Makefile19
1 files changed, 9 insertions, 10 deletions
diff --git a/graphics/xv/Makefile b/graphics/xv/Makefile
index 06cd58fbff4..9dc951d953e 100644
--- a/graphics/xv/Makefile
+++ b/graphics/xv/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.44 2003/01/13 10:54:08 grant Exp $
+# $NetBSD: Makefile,v 1.45 2003/02/25 05:34:39 grant Exp $
DISTNAME= xv-3.10a
PKGREVISION= 4
@@ -28,18 +28,17 @@ 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
+ ${MV} ${WRKSRC}/config.h ${WRKSRC}/config.h.orig && \
+ ${SED} -e 's|@LOCALBASE@|${LOCALBASE}|g' \
+ ${WRKSRC}/config.h.orig > ${WRKSRC}/config.h
.if ${OPSYS} == "SunOS"
post-configure:
- cd ${WRKSRC} && \
- ${MV} ${MAKEFILE} ${MAKEFILE}.old && \
- ${SED} -e 's# CC = .*# CC = ${CC}#' \
- -e 's# CCOPTIONS = .*# CCOPTIONS = ${CFLAGS}'# \
- -e 's# CDEBUGFLAGS = .*# CDEBUGFLAGS =#' \
- ${MAKEFILE}.old >${MAKEFILE}
+ ${MV} ${WRKSRC}/${MAKEFILE} ${WRKSRC}/${MAKEFILE}.orig && \
+ ${SED} -e 's| CC = .*| CC = ${CC}|' \
+ -e 's| CCOPTIONS = .*| CCOPTIONS = ${CFLAGS}|' \
+ -e 's| CDEBUGFLAGS = .*| CDEBUGFLAGS =|' \
+ ${WRKSRC}/${MAKEFILE}.orig > ${WRKSRC}/${MAKEFILE}
.endif
post-install: