summaryrefslogtreecommitdiff
path: root/parallel/glunix/Makefile
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2001-10-26 14:37:56 +0000
committeragc <agc@pkgsrc.org>2001-10-26 14:37:56 +0000
commit42f4f968e128751ca187b0ce446fe1821dd6d503 (patch)
treef0dad0dedd167fe2ac9b6cbe33f05d0cba20a6cc /parallel/glunix/Makefile
parent296e868cf08c88bfb4279bc4607978e70b46be6c (diff)
downloadpkgsrc-42f4f968e128751ca187b0ce446fe1821dd6d503.tar.gz
Move the post-patch custom script into the package Makefile.
Diffstat (limited to 'parallel/glunix/Makefile')
-rw-r--r--parallel/glunix/Makefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/parallel/glunix/Makefile b/parallel/glunix/Makefile
index f3eb173351c..85179bb3eeb 100644
--- a/parallel/glunix/Makefile
+++ b/parallel/glunix/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.21 2001/10/26 14:10:01 agc Exp $
+# $NetBSD: Makefile,v 1.22 2001/10/26 14:37:56 agc Exp $
DISTNAME= glunix-release-1-0a
PKGNAME= glunix-1.0a
@@ -50,7 +50,18 @@ pre-fetch:
cd ${.CURDIR} && ${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/pre-fetch
post-patch:
- cd ${.CURDIR} && ${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/post-patch
+ cd ${WRKSRC}; \
+ for f in progs/glupart/glupart.c \
+ progs/glunix/glunix.1 \
+ progs/glurun/glurun-wrapper.pl \
+ progs/tools/run_glunix.c \
+ glunix/src/init/glunix.h; do \
+ ${MV} -f $$f $$f.input && \
+ ${SED} -e 's|%%%NOW_ROOT%%%|${NOW_ROOT}|' $$f.input > $$f; \
+ done; \
+ ${MV} -f glush/Makefile glush/Makefile.input && \
+ ${SED} -e 's|%%%PLAT%%%|${MACHINE_ARCH}-NetBSD-tcp|' \
+ progs/glush/Makefile.input > progs/glush/Makefile
# the glunix group needs to exist before building.
pre-configure: