[Magic-dev] magic-7.1 Mac OS X fink package
David Fang
fang at csl.cornell.edu
Sat Apr 7 02:22:13 EDT 2007
Mac OS X magic-users (fink),
I've prepared and submitted a packaging for magic-7.1 to fink's
package tracker for review. (I see that someone else has also submitted a
package for the 7.4 series, nice!) I'm hoping that the package family
will be able to support multiple versions, since some of us like it
"old-school." :) If you'd like to preview the package and test it out,
I've attached the .info file for testing. So far, I've tested it out on
powerpc-darwin7, powerpc-darwin8, i686-darwin8.
% cp magic71.info /sw/fink/dists/local/main/finkinfo/
% fink index
% fink install magic71
and the executables (magic, ext2sim, net2ir, etc.) are installed as:
/sw/bin/magic-7.1 etc.
which are actually sym-linked to /sw/lib/magic71/bin/
Feedback is welcome, as always. Enjoy!
David Fang
Computer Systems Laboratory
Electrical & Computer Engineering
Cornell University
http://www.csl.cornell.edu/~fang/
-- (2400 baud? Netscape 3.0?? lynx??? No problem!)
-------------- next part --------------
Package: magic71
Version: 7.1-20070406
Revision: 1
Maintainer: David Fang <fangism at users.sourceforge.net>
Source: http://www.csl.cornell.edu/~fang/sw/magic-%v.tar.gz
Source-MD5: 783cb2c585dd41fd7c7f5eaad81aa903
Conflicts: magic, magic72, magic73, magic74, magic75
Replaces: magic, magic72, magic73, magic74, magic75
License: BSD
Homepage: http://vlsi.cornell.edu/magic/
Description: Very capable VLSI layout CAD tool
BuildDepends: readline, x11-dev
Depends: readline-shlibs, x11-shlibs
DocFiles: README.FIRST READ_ME TODO ChangeLog
DescDetail: <<
Magic is a venerable VLSI layout tool, written in the 1980's at Berkeley
by John Ousterhout, now famous primarily for writing the scripting interpreter
language Tcl. Due largely in part to its liberal Berkeley open-source license,
magic has remained popular with universities and small companies.
The open-source license has allowed VLSI engineers with a bent toward
programming to implement clever ideas and help magic stay abreast of
fabrication technology. However, it is the well thought-out core algorithms
which lend to magic the greatest part of its popularity. Magic is widely cited
as being the easiest tool to use for circuit layout, even for people who
ultimately rely on commercial tools for their product design flow.
<<
DescPackaging: <<
Installed in %p/lib/magic71 to avoid conflicting with other versions, and
we provide symlink to the installed magic-7.1 in bin for convenience.
Readline functionality is only statically linked, so magic doesn't really
depend on it being installed.
<<
DescPort: <<
Porting notes (by Fang) can be found at:
http://www.csl.cornell.edu/~fang/sw/magic-7.1-osx.html
<<
CompileScript: <<
#!/bin/sh -ev
export CAD_HOME=%p/lib/magic71
# lousy interactive config...
make config <<CEOF
1
3
6
yes
yes
yes
no
yes
yes
yes
yes
yes
yes
no
CEOF
# "hand-editing" (post-configure patching...)
mv defs.mak defs.mak.orig
sed -e '/^PROGRAM_SUFFIX/s|=|= -7.1|' -e '/CPP/s|libexec|bin|' \
-e '/^CPPFLAGS/s|$| -I%p/include|' \
-e '/^CFLAGS/s|$| -O3|' \
-e '/^DFLAGS/s|$| -DHAVE_READLINE|' \
-e '/^READLINE_LIBS/s|$| -L%p/lib -lreadline|' \
defs.mak.orig > defs.mak
# "recursive make is the devil"
cd utils
make
cd ..
cd extflat
make
cd ..
make
<<
InstallScript: <<
#!/bin/sh -ev
make install DESTDIR=%d
mkdir -p %i/bin
cd %i/bin
for exe in magic ext2spice ext2sim extcheck magicusage net2ir spice2sim
do
ln -s %p/lib/magic71/bin/$exe-7.1 $exe-7.1
done
<<
RuntimeVars: <<
CAD_HOME: %p/lib/magic71
<<
More information about the magic-dev
mailing list