pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/cad/nelma import nelma-3.0
details: https://anonhg.NetBSD.org/pkgsrc/rev/bbe456b59e54
branches: trunk
changeset: 526132:bbe456b59e54
user: dmcmahill <dmcmahill%pkgsrc.org@localhost>
date: Fri Mar 02 01:59:47 2007 +0000
description:
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:
cad/nelma/DESCR | 15 ++++++++++++
cad/nelma/Makefile | 19 +++++++++++++++
cad/nelma/PLIST | 5 ++++
cad/nelma/distinfo | 7 +++++
cad/nelma/patches/patch-aa | 37 ++++++++++++++++++++++++++++++
cad/nelma/patches/patch-ab | 56 ++++++++++++++++++++++++++++++++++++++++++++++
6 files changed, 139 insertions(+), 0 deletions(-)
diffs (163 lines):
diff -r d8af3458b70b -r bbe456b59e54 cad/nelma/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/cad/nelma/DESCR Fri Mar 02 01:59:47 2007 +0000
@@ -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 -r d8af3458b70b -r bbe456b59e54 cad/nelma/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/cad/nelma/Makefile Fri Mar 02 01:59:47 2007 +0000
@@ -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@localhost
+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 -r d8af3458b70b -r bbe456b59e54 cad/nelma/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/cad/nelma/PLIST Fri Mar 02 01:59:47 2007 +0000
@@ -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 -r d8af3458b70b -r bbe456b59e54 cad/nelma/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/cad/nelma/distinfo Fri Mar 02 01:59:47 2007 +0000
@@ -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 -r d8af3458b70b -r bbe456b59e54 cad/nelma/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/cad/nelma/patches/patch-aa Fri Mar 02 01:59:47 2007 +0000
@@ -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 -r d8af3458b70b -r bbe456b59e54 cad/nelma/patches/patch-ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/cad/nelma/patches/patch-ab Fri Mar 02 01:59:47 2007 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index