summaryrefslogtreecommitdiff
path: root/cad/nelma
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2007-03-02 01:59:47 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2007-03-02 01:59:47 +0000
commitc3be4f5dc47aacfb2b05344b079e18feba8529a7 (patch)
treeae5d33935dd7ef44d7ea6e48c353dac271d9c406 /cad/nelma
parenteac53050b70527bd53a28d30127c2cfafa96aa03 (diff)
downloadpkgsrc-c3be4f5dc47aacfb2b05344b079e18feba8529a7.tar.gz
import nelma-3.0
Nelma is a (command line) tool for numerically calculating various electrical properties of printed circuit boards or similar objects composed of conductors and dielectrics (however code is optimized for circuit board-like geometry). It is currently capable of calculating capacitances between objects - nets on a PCB. It returns a spice-compatible description of an equivalent circuit of stray capacitances that can be for example used for more accurate circuit simulation. Alternatively it can also produce field data that can be plotted for example with Gnuplot. Support for calculating resistances existed for a while but was later removed because it didn't receive much testing. Nelma is available under the GNU General Public License version 2.
Diffstat (limited to 'cad/nelma')
-rw-r--r--cad/nelma/DESCR15
-rw-r--r--cad/nelma/Makefile19
-rw-r--r--cad/nelma/PLIST5
-rw-r--r--cad/nelma/distinfo7
-rw-r--r--cad/nelma/patches/patch-aa37
-rw-r--r--cad/nelma/patches/patch-ab56
6 files changed, 139 insertions, 0 deletions
diff --git a/cad/nelma/DESCR b/cad/nelma/DESCR
new file mode 100644
index 00000000000..c5ccce0dc05
--- /dev/null
+++ b/cad/nelma/DESCR
@@ -0,0 +1,15 @@
+Nelma is a (command line) tool for numerically calculating various
+electrical properties of printed circuit boards or similar objects
+composed of conductors and dielectrics (however code is optimized for
+circuit board-like geometry).
+
+It is currently capable of calculating capacitances between objects -
+nets on a PCB. It returns a spice-compatible description of an
+equivalent circuit of stray capacitances that can be for example used
+for more accurate circuit simulation. Alternatively it can also
+produce field data that can be plotted for example with Gnuplot.
+
+Support for calculating resistances existed for a while but was later
+removed because it didn't receive much testing.
+
+Nelma is available under the GNU General Public License version 2.
diff --git a/cad/nelma/Makefile b/cad/nelma/Makefile
new file mode 100644
index 00000000000..19f52c5b341
--- /dev/null
+++ b/cad/nelma/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/03/02 01:59:47 dmcmahill Exp $
+#
+
+DISTNAME= nelma-3.0
+CATEGORIES= cad
+MASTER_SITES= http://www.tablix.org/~avian/nelma/releases/
+
+MAINTAINER= dmcmahill@NetBSD.org
+HOMEPAGE= http://www.tablix.org/~avian/nelma/
+COMMENT= Circuit board capacitance extraction tool
+
+PKG_INSTALLATION_TYPES= overwrite pkgviews
+
+USE_TOOLS+= pkg-config
+
+
+.include "../../devel/confuse/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/cad/nelma/PLIST b/cad/nelma/PLIST
new file mode 100644
index 00000000000..555d3fbeb70
--- /dev/null
+++ b/cad/nelma/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2007/03/02 01:59:47 dmcmahill Exp $
+bin/nelma-cap
+bin/nelma-drc
+man/man1/nelma-cap.1
+man/man1/nelma-drc.1
diff --git a/cad/nelma/distinfo b/cad/nelma/distinfo
new file mode 100644
index 00000000000..983b7de0f2b
--- /dev/null
+++ b/cad/nelma/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2007/03/02 01:59:47 dmcmahill Exp $
+
+SHA1 (nelma-3.0.tar.gz) = e08f1b0097ce7a90e535cb1920658780c50aec5c
+RMD160 (nelma-3.0.tar.gz) = 68056717d5fe9b8268aeca5d839f974090e305ad
+Size (nelma-3.0.tar.gz) = 64078 bytes
+SHA1 (patch-aa) = 0fdc453940b3cdba4383fcc769e81440826be265
+SHA1 (patch-ab) = 14cb44ff5bc9dbdda29dd97d5659cdeb4662de0c
diff --git a/cad/nelma/patches/patch-aa b/cad/nelma/patches/patch-aa
new file mode 100644
index 00000000000..50d40cc38f5
--- /dev/null
+++ b/cad/nelma/patches/patch-aa
@@ -0,0 +1,37 @@
+$NetBSD: patch-aa,v 1.1.1.1 2007/03/02 01:59:47 dmcmahill Exp $
+
+--- Makefile.orig 2006-12-10 18:14:29.000000000 +0000
++++ Makefile
+@@ -1,18 +1,20 @@
+-export PREFIX = $(HOME)/software
++PREFIX?= $(HOME)/software
+
+-all: nelma doxygen
++all: nelma
+
+ install: nelma-install man-install
+
+ nelma:
+- $(MAKE) -C src all
++ cd src && $(MAKE) PREFIX=$(PREFIX) all
+
+ nelma-install:
+- $(MAKE) -C src install
++ cd src && $(MAKE) PREFIX=$(PREFIX) install
+
++INSTALL?= install
++INSTALL_MAN?= install
+ man-install:
+- install doc/nelma-cap.1 $(PREFIX)/man/man1
+- install doc/nelma-drc.1 $(PREFIX)/man/man1
++ $(INSTALL_MAN) doc/nelma-cap.1 $(PREFIX)/man/man1
++ $(INSTALL_MAN) doc/nelma-drc.1 $(PREFIX)/man/man1
+
+ doxygen:
+ doxygen
+@@ -21,4 +23,4 @@ clean:
+ rm -rf doc/html
+ $(MAKE) -C src clean
+
+-.PHONY: all clean
++.PHONY: all clean doxygen install man-install nelma nelma-install
diff --git a/cad/nelma/patches/patch-ab b/cad/nelma/patches/patch-ab
new file mode 100644
index 00000000000..6d7980577ea
--- /dev/null
+++ b/cad/nelma/patches/patch-ab
@@ -0,0 +1,56 @@
+$NetBSD: patch-ab,v 1.1.1.1 2007/03/02 01:59:48 dmcmahill Exp $
+
+--- src/Makefile.orig 2006-12-10 18:10:30.000000000 +0000
++++ src/Makefile
+@@ -25,31 +25,31 @@ DECOMPOSE_OBJS = pngutil.o \
+ error.o \
+ decompose.o
+
+-CONF_CFLAGS = $(shell pkg-config --cflags libconfuse)
+-CONF_LIBS = $(shell pkg-config --libs libconfuse)
++#CONF_CFLAGS = $(shell pkg-config --cflags libconfuse)
++#CONF_LIBS = $(shell pkg-config --libs libconfuse)
+
+-CFLAGS = -Wall -O3 -march=athlon-xp $(CONF_CFLAGS) -ffast-math
++CFLAGS?= -Wall -O3 -march=athlon-xp $(CONF_CFLAGS) -ffast-math
+ #CFLAGS = -Wall -g -march=athlon-xp $(CONF_CFLAGS) -pg
+ #CFLAGS = -Wall -g -march=athlon-xp $(CONF_CFLAGS) -DDEBUG
+
+ #CFLAGS = -Wall -g -march=athlon-xp $(CONF_FLAGS) -ffast-math -O2
+
+ #LDFLAGS = $(CONF_LIBS) -lpng -pg
+-LDFLAGS = $(CONF_LIBS) -lpng
++LDFLAGS = `pkg-config --libs libconfuse` -lpng
+
+ all: nelma-cap decompose nelma-drc
+
+ %.o: %.c
+- $(CC) $(CFLAGS) $(INCS) -c $< -o $@
++ $(CC) $(CFLAGS) `pkg-config --cflags libconfuse` $(INCS) -c $< -o $@
+
+ nelma-cap: $(NELMA_CAP_OBJS)
+- $(CC) $^ -o $@ $(LDFLAGS)
++ $(CC) $(NELMA_CAP_OBJS) -o $@ $(LDFLAGS)
+
+ nelma-drc: $(NELMA_DRC_OBJS)
+- $(CC) $^ -o $@ $(LDFLAGS)
++ $(CC) $(NELMA_DRC_OBJS) -o $@ $(LDFLAGS)
+
+ decompose: $(DECOMPOSE_OBJS)
+- $(CC) $^ -o $@ $(LDFLAGS)
++ $(CC) $(DECOMPOSE_OBJS) -o $@ $(LDFLAGS)
+
+ clean:
+ rm -f $(NELMA_CAP_OBJS)
+@@ -58,8 +58,9 @@ clean:
+ rm -f nelma-cap
+ rm -f nelma-drc
+
++INSTALL_PROGRAM?= install
+ install: all
+- install nelma-cap $(PREFIX)/bin
+- install nelma-drc $(PREFIX)/bin
++ $(INSTALL_PROGRAM) nelma-cap $(PREFIX)/bin
++ $(INSTALL_PROGRAM) nelma-drc $(PREFIX)/bin
+
+ .PHONY: all clean install