debian/0000755000000000000000000000000012232452612007165 5ustar debian/control0000644000000000000000000000216012144764224010576 0ustar Source: magic Section: electronics Priority: extra Maintainer: Roland Stigge Build-Depends: debhelper (>= 9), autotools-dev, mesa-common-dev, tcl-dev, tk-dev, blt-dev, csh, m4 Standards-Version: 3.9.4 Homepage: http://www.opencircuitdesign.com/magic/ Package: magic Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Suggests: irsim Description: VLSI layout tool 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. debian/changelog0000644000000000000000000000377312232164625011055 0ustar magic (7.5.233-2) unstable; urgency=low * Use autotools-dev to update config.{sub,guess} (Closes: #727452) -- Roland Stigge Thu, 24 Oct 2013 11:33:36 +0200 magic (7.5.233-1) unstable; urgency=low * New upstream release * Use readlink for /usr/bin/wish in magic to use versioned wish -- Roland Stigge Thu, 17 Oct 2013 14:36:32 +0200 magic (7.5.231-1) unstable; urgency=low * New upstream release * debian/control: Standards-Version: 3.9.4 -- Roland Stigge Wed, 15 May 2013 21:56:15 +0200 magic (7.5.230-1) experimental; urgency=low * New upstream release -- Roland Stigge Fri, 25 Jan 2013 11:10:07 +0100 magic (7.5.229-1) experimental; urgency=low * New upstream release -- Roland Stigge Mon, 08 Oct 2012 09:35:33 +0200 magic (7.5.228-1) experimental; urgency=low * New upstream release -- Roland Stigge Wed, 03 Oct 2012 12:14:31 +0200 magic (7.5.225-1) experimental; urgency=low * New upstream release -- Roland Stigge Tue, 25 Sep 2012 13:13:14 +0200 magic (7.5.220-1) unstable; urgency=low * New upstream release -- Roland Stigge Wed, 02 May 2012 20:45:37 +0200 magic (7.5.218-1) unstable; urgency=low * New upstream release -- Roland Stigge Sat, 21 Apr 2012 09:26:03 +0200 magic (7.5.216-1) unstable; urgency=low * New upstream release -- Roland Stigge Fri, 06 Apr 2012 14:47:13 +0200 magic (7.5.215-1) unstable; urgency=low * New upstream release * debian/control: Standards-Version: 3.9.3 * debian/compat: 9 -- Roland Stigge Sat, 10 Mar 2012 20:47:56 +0100 magic (7.5.214-1) unstable; urgency=low * New upstream release -- Roland Stigge Sun, 27 Nov 2011 22:05:55 +0100 magic (7.5.213-1) unstable; urgency=low * Initial release (Closes: #365326) -- Roland Stigge Tue, 26 Jul 2011 21:53:03 +0200 debian/watch0000644000000000000000000000022111614353755010224 0ustar # until magic 8.0 is released as "stable", we stick to the 7.x line version=3 http://opencircuitdesign.com/magic/download.html .*magic-(7.*).tgz debian/rules0000755000000000000000000000037412232164647010261 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ --with autotools_dev override_dh_auto_install: dh_auto_install sed -i -e "s,/usr/bin/wish,$(shell readlink -f /usr/bin/wish)," debian/magic/usr/bin/magic debian/patches/0000755000000000000000000000000012144765316010626 5ustar debian/patches/06-script-adjustments.patch0000644000000000000000000000140411615306510015721 0ustar Description: Various #! script adjustments for Tcl scripts This patch adjusts some Tcl scripts to Debian file locations Author: Roland Stigge --- magic-7.5.213.orig/tcltk/console.tcl +++ magic-7.5.213/tcltk/console.tcl @@ -1,3 +1,5 @@ +#!/usr/bin/tclsh +# # console.tcl: # # Defines Procedures which should be defined within the console --- magic-7.5.213.orig/tcltk/strip_reflibs.tcl +++ magic-7.5.213/tcltk/strip_reflibs.tcl @@ -1,4 +1,4 @@ -#!/usr/local/bin/tclsh +#!/usr/bin/tclsh # # Strip GDS cell references from magic files. # --- magic-7.5.213.orig/ext2spice/spice2sim +++ magic-7.5.213/ext2spice/spice2sim @@ -1,4 +1,4 @@ -#!/bin/awk -f +#!/usr/bin/awk -f # convert an ext2spice produced file to a .sim file for debugging # BEGIN { debian/patches/01-makefile-exit-on-error.patch0000644000000000000000000000526611615266524016362 0ustar Description: Makefile adjustment This patch adjusts the Makefile to exit on errors Author: Roland Stigge --- magic-7.5.213.orig/Makefile +++ magic-7.5.213/Makefile @@ -18,12 +18,10 @@ include defs.mak all: $(ALL_TARGET) standard: - @echo --- errors and warnings logged in file make.log - @${MAKE} mains 2>&1 | tee -a make.log | egrep -i "(.c:|Stop.|---)" + ${MAKE} mains tcl: - @echo --- errors and warnings logged in file make.log - @${MAKE} tcllibrary 2>&1 | tee -a make.log | egrep -i "(.c:|Stop.|---)" + ${MAKE} tcllibrary force: clean all @@ -36,12 +34,12 @@ config: tcllibrary: database/database.h modules @echo --- making Tcl shared libraries for dir in ${PROGRAMS}; do \ - (cd $$dir && ${MAKE} tcl-main); done + ${MAKE} -C $$dir tcl-main || exit 1 ; done mains: database/database.h modules libs @echo --- making main programs for dir in ${PROGRAMS}; do \ - (cd $$dir && ${MAKE} main); done + ${MAKE} -C $$dir main || exit 1 ; done database/database.h: database/database.h.in @echo --- making header file database/database.h @@ -50,30 +48,30 @@ database/database.h: database/database.h modules: @echo --- making modules for dir in ${MODULES} ${PROGRAMS}; do \ - (cd $$dir && ${MAKE} module); done + ${MAKE} -C $$dir module || exit 1 ; done libs: @echo --- making libraries for dir in ${LIBRARIES}; do \ - (cd $$dir && ${MAKE} lib); done + ${MAKE} -C $$dir lib || exit 1 ; done depend: database/database.h ${RM} */Depend for dir in ${MODULES} ${UNUSED_MODULES} ${PROGRAMS}; do \ - (cd $$dir && ${MAKE} depend); done + ${MAKE} -C $$dir depend || exit 1 ; done install: $(INSTALL_TARGET) install-magic: @echo --- installing executable to $(DESTDIR)${BINDIR} @echo --- installing runtime files to $(DESTDIR)${LIBDIR} - @${MAKE} install-real 2>&1 >> install.log + @${MAKE} install-real 2>&1 install-real: install-dirs for dir in ${INSTALL_CAD_DIRS}; do \ - (cd $$dir && ${MAKE} install); done + ${MAKE} -C $$dir install || exit 1 ; done for dir in ${PROGRAMS}; do \ - (cd $$dir && ${MAKE} install); done + ${MAKE} -C $$dir install || exit 1 ; done install-tcl-dirs: ${MAGICDIR}/scripts/mkdirs $(DESTDIR)${BINDIR} $(DESTDIR)${MANDIR} \ @@ -86,11 +84,11 @@ install-dirs: install-tcl: @echo --- installing executable to $(DESTDIR)${BINDIR} @echo --- installing runtime files to $(DESTDIR)${LIBDIR} - @${MAKE} install-tcl-real 2>&1 >> install.log + @${MAKE} install-tcl-real install-tcl-real: install-tcl-dirs for dir in ${INSTALL_CAD_DIRS} ${PROGRAMS}; do \ - (cd $$dir && ${MAKE} install-tcl); done + ${MAKE} -C $$dir install-tcl || exit 1 ; done clean: for dir in ${MODULES} ${PROGRAMS} ${TECH} ${UNUSED_MODULES}; do \ debian/patches/series0000644000000000000000000000026311615306535012040 0ustar 01-makefile-exit-on-error.patch 02-makefile-fix-profiling.patch 03-makefile-install-html.patch 04-fhs-images.patch 05-readline-reference-removal.patch 06-script-adjustments.patch debian/patches/05-readline-reference-removal.patch0000644000000000000000000000130611615304617017246 0ustar Description: Readline removal This patch removes remaining references to readline Author: Roland Stigge --- magic-7.5.213.orig/commands/Makefile +++ magic-7.5.213/commands/Makefile @@ -10,12 +10,7 @@ SRCS = CmdSubrs.c CmdAB.c CmdCD.c C # Force the module to regenerate the symbolic link in the readline # directory, as it may be needed by CmdFI.c (in the non-Tcl compile) -module: ${MAGICDIR}/readline/readline lib${MODULE}.o - -${MAGICDIR}/readline/readline: - @if ( ! test -f ${MAGICDIR}/readline/readline ) ; then \ - (cd ${MAGICDIR}/readline; ln -s `ls | grep readline` readline) ; \ - fi +module: lib${MODULE}.o include ${MAGICDIR}/defs.mak include ${MAGICDIR}/rules.mak debian/patches/04-fhs-images.patch0000644000000000000000000000425611615304503014107 0ustar Description: Move images to an FHS conformant directory This patch moves some XBM images to an FHS conformant directory in /usr/share Author: Roland Stigge --- magic-7.5.213.orig/tcltk/wrapper.tcl +++ magic-7.5.213/tcltk/wrapper.tcl @@ -27,19 +27,19 @@ if {[lsearch [namespace children] ::tksh # Button images set Glyph(up) [image create bitmap \ - -file ${CAD_ROOT}/magic/tcl/bitmaps/up.xbm \ + -file /usr/share/magic/bitmaps/up.xbm \ -background gray -foreground steelblue] set Glyph(down) [image create bitmap \ - -file ${CAD_ROOT}/magic/tcl/bitmaps/down.xbm \ + -file /usr/share/magic/bitmaps/down.xbm \ -background gray -foreground steelblue] set Glyph(left) [image create bitmap \ - -file ${CAD_ROOT}/magic/tcl/bitmaps/left.xbm \ + -file /usr/share/magic/bitmaps/left.xbm \ -background gray -foreground steelblue] set Glyph(right) [image create bitmap \ - -file ${CAD_ROOT}/magic/tcl/bitmaps/right.xbm \ + -file /usr/share/magic/bitmaps/right.xbm \ -background gray -foreground steelblue] set Glyph(zoom) [image create bitmap \ - -file ${CAD_ROOT}/magic/tcl/bitmaps/zoom.xbm \ + -file /usr/share/magic/bitmaps/zoom.xbm \ -background gray -foreground steelblue] # Menu button callback functions --- magic-7.5.213.orig/magic/Makefile +++ magic-7.5.213/magic/Makefile @@ -20,7 +20,7 @@ EXTRA_LIBS = ${MAGICDIR}/cmwind/libcmwin ${MAIN_EXTRA_LIBS} BITMAPS = up.xbm down.xbm left.xbm right.xbm zoom.xbm -DEST_XBM = $(BITMAPS:%=$(DESTDIR)${TCLDIR}/bitmaps/%) +DEST_XBM = $(BITMAPS:%=$(DESTDIR)/usr/share/magic/bitmaps/%) DFLAGS += -DMAGIC_DATE="\"`date`\"" LIBS += ${GR_LIBS} ${READLINE_LIBS} -lm ${LD_EXTRA_LIBS} \ @@ -51,9 +51,9 @@ $(DESTDIR)${TCLDIR}/tclmagic${SHDLIB_EXT ${RM} $(DESTDIR)${TCLDIR}/tclmagic${SHDLIB_EXT} ${CP} tclmagic${SHDLIB_EXT} $(DESTDIR)${TCLDIR}/tclmagic${SHDLIB_EXT} -$(DESTDIR)${TCLDIR}/bitmaps/%: bitmaps/% - ${RM} $(DESTDIR)${TCLDIR}/bitmaps/$* - ${CP} bitmaps/$* $(DESTDIR)${TCLDIR}/bitmaps/$* +$(DESTDIR)/usr/share/magic/bitmaps/%: bitmaps/% + ${RM} $(DESTDIR)/usr/share/magic/bitmaps/$* + ${CP} bitmaps/$* $(DESTDIR)/usr/share/magic/bitmaps/$* $(DESTDIR)${SYSDIR}/.magicrc: proto.magicrc ${RM} $(DESTDIR)${SYSDIR}/.magicrc debian/patches/02-makefile-fix-profiling.patch0000644000000000000000000000121412144765306016413 0ustar Description: Makefile fix for profiling This patch removes a profiling option from a Makefile's gcc build rule to prevent profiling code to end up in Debian runtime executables Author: Roland Stigge --- magic-7.5.231.orig/tcltk/Makefile +++ magic-7.5.231/tcltk/Makefile @@ -41,7 +41,7 @@ install-tcl: magicexec magicdnull ${BIN_ (cd $(DESTDIR)${TCLDIR}; chmod 0755 tkcon.tcl tkshell.tcl) magicexec: magicexec.c - ${CC} ${CFLAGS} -pg ${CPPFLAGS} ${DFLAGS} ${LDFLAGS} magicexec.c \ + ${CC} ${CFLAGS} ${CPPFLAGS} ${DFLAGS} ${LDFLAGS} magicexec.c \ -o magicexec ${LD_RUN_PATH} ${LIBS} ${LIB_SPECS} magicdnull: magicdnull.c debian/patches/03-makefile-install-html.patch0000644000000000000000000000076111615300275016245 0ustar Description: Install HTML docs to FHS conformant /usr/share This patch changes a Makefile to install HTML docs to an FHS conformant dir Author: Roland Stigge --- magic-7.5.213.orig/doc/html/Makefile +++ magic-7.5.213/doc/html/Makefile @@ -2,7 +2,7 @@ MAGICDIR = ../.. include $(MAGICDIR)/defs.mak -HTML_INSTDIR=$(LIBDIR)/magic/doc/html +HTML_INSTDIR=/usr/share/doc/magic/html install: $(DESTDIR)${HTML_INSTDIR} tar cf - . | (cd $(DESTDIR)${HTML_INSTDIR}; tar xf - ) debian/dirs0000644000000000000000000000003011615304056010044 0ustar usr/share/magic/bitmaps debian/clean0000644000000000000000000000007111664525460010202 0ustar tcltk/ext2spice.sh tcltk/ext2sim.sh scripts/config.cache debian/source/0000755000000000000000000000000011613615445010474 5ustar debian/source/format0000644000000000000000000000001411613615445011702 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000000316311613617436011134 0ustar Format: http://dep.debian.net/deps/dep5 Upstream-Name: magic Source: http://www.opencircuitdesign.com/magic/index.html Files: * Copyright: 2010 Tim Edwards (Johns Hopkins APL) 2010 Mike Godfrey (Stanford, Pixeldevices) 2010 Wes Hansford (MOSIS) 2010 Rajit Manohar (Cornell) 2010 Mika Nyström (Caltech) 2010 Philippe Pouliquen (Johns Hopkins University) 2010 Stefanos Sidiropolous (Aeluros) 2010 Jeff Solomon (Stanford) 2010 Jeff Sondeen (USC) 2010 Holger Vogt (Fraunhofer-Institut IMS, Duisburg, Germany) License: BSD style: ********************************************************************* * Copyright (C) 1985, 1990 Regents of the University of California. * * Permission to use, copy, modify, and distribute this * * software and its documentation for any purpose and without * * fee is hereby granted, provided that the above copyright * * notice appear in all copies. The University of California * * makes no representations about the suitability of this * * software for any purpose. It is provided "as is" without * * express or implied warranty. Export of this software outside * * of the United States of America may require an export license. * ********************************************************************* Files: debian/* Copyright: 2011 Roland Stigge License: BSD style (as above) The Debian packaging of this package can be distributed with the same license as the package itself. debian/menu0000644000000000000000000000016111615304762010060 0ustar ?package(magic):needs="X11" section="Applications/Science/Electronics"\ title="magic" command="/usr/bin/magic" debian/compat0000644000000000000000000000000211726727743010404 0ustar 9 debian/README.source0000644000000000000000000000035211615301634011345 0ustar magic for Debian ---------------- The following changes have been done to the upstream tarball on repackaging: * Removed directory magic/ to prevent dpkg confusion * Removed scripts/config.cache * Removed readline/ embedded library debian/docs0000644000000000000000000000002711613615446010047 0ustar README README.Tcl TODO