diff options
author | grant <grant@pkgsrc.org> | 2003-02-25 05:34:39 +0000 |
---|---|---|
committer | grant <grant@pkgsrc.org> | 2003-02-25 05:34:39 +0000 |
commit | 6fc694477631caa148bc392a6d83e3ef87bdc573 (patch) | |
tree | 1eb4bb0e559127a057bad97d3912ff0ab2771a78 /graphics/xv | |
parent | 4ee2429a10f2c09d391253c5077b345da6e0efdd (diff) | |
download | pkgsrc-6fc694477631caa148bc392a6d83e3ef87bdc573.tar.gz |
tidy up post-patch and post-configure targets:
- fix sed delimeter, quoting, consistency
- whitespace police
Diffstat (limited to 'graphics/xv')
-rw-r--r-- | graphics/xv/Makefile | 19 |
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: |