summaryrefslogtreecommitdiff
path: root/cad/nelma/patches/patch-ab
diff options
context:
space:
mode:
authordmcmahill <dmcmahill>2007-03-02 01:59:47 +0000
committerdmcmahill <dmcmahill>2007-03-02 01:59:47 +0000
commitef2f10ddbbad06bd792d4044fc1cb0472b911d37 (patch)
treeae5d33935dd7ef44d7ea6e48c353dac271d9c406 /cad/nelma/patches/patch-ab
parentff30c8b392b3c1ca1d8aaf6d5329796b34cb3417 (diff)
downloadpkgsrc-ef2f10ddbbad06bd792d4044fc1cb0472b911d37.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/patches/patch-ab')
-rw-r--r--cad/nelma/patches/patch-ab56
1 files changed, 56 insertions, 0 deletions
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