summaryrefslogtreecommitdiff
path: root/cad/magic
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2002-05-18 23:18:43 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2002-05-18 23:18:43 +0000
commit4aa4d1526aa0293b572ecddfb161e600d60998d9 (patch)
treece40044a2b53a60e7411d6716e8a30db65444b5f /cad/magic
parentc60351c841454f9d7a1b3207f6c18c20a06d6bc6 (diff)
downloadpkgsrc-4aa4d1526aa0293b572ecddfb161e600d60998d9.tar.gz
use MAGIC_HOME instead of CAD_HOME as the environment variable which
points to the magic installation. This avoids possible conflicts with some other UCB tools which use CAD_HOME. Noted in private email from Daniel Senderowitz.
Diffstat (limited to 'cad/magic')
-rw-r--r--cad/magic/MESSAGE4
-rw-r--r--cad/magic/Makefile13
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" | \