diff options
Diffstat (limited to 'cad/magic/Makefile')
-rw-r--r-- | cad/magic/Makefile | 13 |
1 files changed, 11 insertions, 2 deletions
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" | \ |