magic74 stable port information

Package: magic74
Version: 7.4.59
Revision: 2
Maintainer: David Fang
Source: http://www.opencircuitdesign.com/magic/archive/magic-%v.tgz
Source-MD5: e6631d8ac215d4bc425c3213d3aff7ea
Conflicts: magic, magic71, magic72, magic73, magic75, magic80
Replaces: magic, magic71, magic72, magic73, magic75, magic80
License: BSD
Homepage: http://www.opencircuitdesign.com/magic/
Description: Very capable VLSI layout CAD tool
UseMaxBuildJobs: false
BuildDepends: readline5, x11-dev, tcltk-dev, blt-dev (>= 2.4z-15), fink (>= 0.28)
# bdep on fink required b/c of private Shlibs
Depends: x11-shlibs, tcltk-shlibs, blt
DocFiles: INSTALL README README.Tcl TODO VERSION
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.

This appears to be the final release of the 7.4 series.
<<
DescPackaging: <<
Executables are not suffixed (yet).
Left many files in default installed subdirs, even ones that go against
standard convention: e.g. arch-independent files are lib %p/lib/magic where
really, they belong in %p/share/...
<<
DescPort: <<
BLT dependency added to support cell-manager widget (min version?).
.dylibs build was patched to give proper install_names (darwin-gcc specific)
Documentation directories were relocated from defaults.
<<
PatchFile: %n.patch
PatchFile-MD5: ad442f8b034e69dd7a86d6fe78e0e1f5
PatchScript: <<
%{default_script}
perl -pi -e 's,\$\{CFLAGS\} \$\{CPPFLAGS\},\$\{CPPFLAGS\} \$\{CFLAGS\},' rules.mak scripts/defs.mak.in `find . -name Makefile`
<<
ConfigureParams: --with-tcl=%p/lib --with-tk=%p/lib --with-tclincls=%p/include --with-tkincls=%p/include --with-tcllibs=%p/lib --with-tklibs=%p/lib --mandir=%p/share/man --with-opengl=/usr/X11R6/include --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib
CompileScript: <<
#!/bin/sh -ev
./configure %c
make database/database.h
make
<<
InstallScript: <<
#!/bin/sh -ev
make install DESTDIR=%d
# mkdir -p %i/bin
## If you want non-prefixed sym-links
# cd %i/bin
# for exe in magic ext2spice ext2sim extcheck magicusage net2ir spice2sim
# do
# ln -s $exe-7.4 $exe
# done
## man page renaming:
## omitting %i/share/man/man5/magic.5
# for m in cmap displays dlys dstyle ext glyphs net sim
# do
# mv %i/share/man/man5/$m.5 %i/share/man/man5/magic-$m.5
# done
mkdir -p %i/share/doc/%n/ps
mv %i/lib/magic/doc/*.ps %i/share/doc/%n/ps/
mv %i/lib/magic/doc/html %i/share/doc/%n/
mv %i/lib/magic/tutorial %i/share/doc/%n/
rm -rf %i/doc
<<
# the following shlibs are private, for now
Shlibs: <<
!%p/lib/magic/tcl/exttosim.dylib
!%p/lib/magic/tcl/exttospice.dylib
!%p/lib/magic/tcl/tclmagic.dylib
<<
# RuntimeVars: <<
# CAD_HOME: %p
# <<

magic74 stable port .patch

--- magic-7.4.59-orig/ext2sim/Makefile 2008-03-29 15:44:18.000000000 -0700
+++ magic-7.4.59/ext2sim/Makefile 2008-03-29 15:45:41.000000000 -0700
@@ -20,10 +20,12 @@
simwrap.o: ext2sim.c
${CC} ${CFLAGS} ${CPPFLAGS} ${DFLAGS} ext2sim.c -c -o simwrap.o

+# -install_name is darwin-gcc-specific
exttosim${SHDLIB_EXT}: simwrap.o ${MAGICDIR}/extflat/libextflat.o
@echo --- making exttosim Tcl library \(exttosim${SHDLIB_EXT}\)
${RM} exttosim${SHDLIB_EXT}
${CC} ${CFLAGS} ${CPPFLAGS} -o $@ ${LDDL_FLAGS} simwrap.o \
+ -install_name ${TCLDIR}/$@ \
${MAGICDIR}/extflat/libextflat.o ${LD_SHARED} -lc ${LIBS}

install: $(DESTDIR)${BINDIR}/${MODULE}$(PROGRAM_SUFFIX)${EXEEXT}
--- magic-7.4.59-orig/ext2spice/Makefile 2008-03-29 15:47:30.000000000 -0700
+++ magic-7.4.59/ext2spice/Makefile 2008-03-29 15:48:18.000000000 -0700
@@ -20,10 +20,12 @@
spicewrap.o: ext2spice.c
${CC} ${CFLAGS} ${CPPFLAGS} ${DFLAGS} ext2spice.c -c -o spicewrap.o

+# -install_name is darwin-gcc-specific
exttospice${SHDLIB_EXT}: spicewrap.o ${MAGICDIR}/extflat/libextflat.o
@echo --- making exttospice Tcl library \(exttospice${SHDLIB_EXT}\)
${RM} exttospice${SHDLIB_EXT}
${CC} ${CFLAGS} ${CPPFLAGS} -o $@ ${LDDL_FLAGS} spicewrap.o \
+ -install_name ${TCLDIR}/$@ \
${MAGICDIR}/extflat/libextflat.o ${LD_SHARED} -lc ${LIBS}

install: $(DESTDIR)${BINDIR}/${MODULE}$(PROGRAM_SUFFIX)${EXEEXT} $(DESTDIR)${BINDIR}/spice2sim$(PROGRAM_SUFFIX)
--- magic-7.4.59-orig/magic/Makefile 2008-03-29 15:50:01.000000000 -0700
+++ magic-7.4.59/magic/Makefile 2008-01-25 19:58:58.000000000 -0800
@@ -31,10 +31,12 @@

tcl-main: tclmagic${SHDLIB_EXT} proto.magicrc

+# -install_name is darwin-gcc-specific
tclmagic${SHDLIB_EXT}: ${EXTRA_LIBS}
@echo --- making magic Tcl library \(tclmagic${SHDLIB_EXT}\)
${RM} tclmagic${SHDLIB_EXT}
${CC} ${CFLAGS} ${CPPFLAGS} -o $@ ${LDDL_FLAGS} ${LD_RUN_PATH} \
+ -install_name ${TCLDIR}/$@ \
${EXTRA_LIBS} -lc ${LIBS}

proto.magicrc: proto.magicrc.m4

magic74 _unstable_ port .patch