Replaced mv/sed with SUBST.

This commit is contained in:
rillig 2007-02-15 14:55:26 +00:00
parent ad7ae40941
commit 99175a14d3
2 changed files with 12 additions and 15 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.30 2006/12/27 13:37:47 joerg Exp $
# $NetBSD: Makefile,v 1.31 2007/02/15 14:55:26 rillig Exp $
DISTNAME= xview3.2p1-X11R6
PKGNAME= xview-clients-3.2.1
@ -9,7 +9,7 @@ MASTER_SITES= ${MASTER_SITE_LOCAL}
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= OpenLook applications and man pages
NOT_FOR_PLATFORM= *-*-alpha # it builds but everything segfaults...
NOT_FOR_PLATFORM= *-*-alpha # it builds but everything segfaults...
NO_SRC_ON_FTP= Already in MASTER_SITE_LOCAL
@ -18,15 +18,12 @@ EXTRACT_ELEMENTS= ${DISTNAME}/clients ${DISTNAME}/images
WRKSRC= ${WRKDIR}/${DISTNAME}/clients
USE_IMAKE= yes
post-patch:
@cd ${WRKSRC}; \
for file in olwm/openwin-menu-programs; do \
${MV} -f $${file} $${file}.tmp; \
${SED} -e "s,@PREFIX@,${PREFIX},g" \
-e "s,@X11BASE@,${X11BASE},g" \
< $${file}.tmp > $${file}; \
${RM} -f $${file}.tmp; \
done
SUBST_CLASSES+= xvc
SUBST_STAGE.xvc= pre-configure
SUBST_MESSAGE.xvc= Fixing hard-coded paths.
SUBST_FILES.xvc= olwm/openwin-menu-programs
SUBST_SED.xvc= -e "s,@PREFIX@,${PREFIX},g"
SUBST_SED.xvc+= -e "s,@X11BASE@,${X11BASE},g"
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/xextproto/buildlink3.mk"

View file

@ -1,15 +1,15 @@
@comment $NetBSD: PLIST,v 1.2 2003/03/03 04:17:27 jschauma Exp $
@comment $NetBSD: PLIST,v 1.3 2007/02/15 14:55:27 rillig Exp $
bin/clock
bin/cmdtool
bin/olwm
bin/olwmslave
bin/shelltool
lib/openwin-menu
lib/openwin-menu-programs
lib/openwin-menu-demo
lib/help/clock.info
lib/help/olwm.info
lib/help/workspace.info
lib/openwin-menu
lib/openwin-menu-demo
lib/openwin-menu-programs
${IMAKE_MAN_DIR}/clock.${IMAKE_MANNEWSUFFIX}
${IMAKE_MAN_DIR}/cmdtool.${IMAKE_MANNEWSUFFIX}
${IMAKE_MAN_DIR}/olwm.${IMAKE_MANNEWSUFFIX}