diff options
-rw-r--r-- | cad/magic/MESSAGE | 4 | ||||
-rw-r--r-- | cad/magic/Makefile | 13 |
2 files changed, 13 insertions, 4 deletions
diff --git a/cad/magic/MESSAGE b/cad/magic/MESSAGE index fb41f6693ab..457143ffa2a 100644 --- a/cad/magic/MESSAGE +++ b/cad/magic/MESSAGE @@ -1,7 +1,7 @@ ====================================================================== -$NetBSD: MESSAGE,v 1.1.1.1 2002/04/06 21:37:29 dmcmahill Exp $ +$NetBSD: MESSAGE,v 1.2 2002/05/18 23:18:43 dmcmahill Exp $ -You must set the environment variable CAD_HOME to ${PREFIX} to +You must set the environment variable MAGIC_HOME to ${PREFIX} to use the tools in this package. ====================================================================== diff --git a/cad/magic/Makefile b/cad/magic/Makefile index 01e1fd6ffa5..2175718de61 100644 --- a/cad/magic/Makefile +++ b/cad/magic/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.1.1.1 2002/04/06 21:37:28 dmcmahill Exp $ +# $NetBSD: Makefile,v 1.2 2002/05/18 23:18:43 dmcmahill Exp $ # DISTNAME= magic-7.1 +PKGREVISION= 1 CATEGORIES= cad MASTER_SITES= http://vlsi.cornell.edu/magic/ @@ -10,7 +11,15 @@ HOMEPAGE= http://vlsi.cornell.edu/magic/ COMMENT= Integrated circuit layout system USE_GMAKE= yes -MAKE_ENV+= CAD_HOME=${PREFIX} +MAKE_ENV+= MAGIC_HOME=${PREFIX} + +post-patch: + cd ${WRKSRC} && for f in `${FIND} . -type f -exec ${GREP} -l CAD_HOME {} /dev/null \;` ; do \ + ${ECHO} "Replacing CAD_HOME in $$f" ; \ + ${MV} -f $$f $$f.bak ; ${SED} 's;CAD_HOME;MAGIC_HOME;g' $$f.bak > $$f ; \ + ${RM} $$f.bak ; \ + done + ${CHMOD} 755 ${WRKSRC}/scripts/config do-configure: cd ${WRKSRC} && printf "1\n2\n6\n\n\n\n\n\n\n\n\n\n\n" | \ |