aboutsummaryrefslogtreecommitdiff
path: root/science/meep
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2010-06-06 07:20:54 +0000
committerMartin Wilke <miwi@FreeBSD.org>2010-06-06 07:20:54 +0000
commit6823d799429fd75c2278d6433872007cd67ca6dd (patch)
treeb111f164bc71e1f7b754193ed5154fb19d4e851c /science/meep
parent1a32062d2f77c3f5306d7ed4694d975e3052b655 (diff)
downloadports-6823d799429fd75c2278d6433872007cd67ca6dd.tar.gz
ports-6823d799429fd75c2278d6433872007cd67ca6dd.zip
Notes
Diffstat (limited to 'science/meep')
-rw-r--r--science/meep/Makefile2
-rw-r--r--science/meep/files/patch-libctl_Makefile.in15
2 files changed, 16 insertions, 1 deletions
diff --git a/science/meep/Makefile b/science/meep/Makefile
index bf0ac69419d4..a68607e1bebb 100644
--- a/science/meep/Makefile
+++ b/science/meep/Makefile
@@ -7,7 +7,7 @@
PORTNAME= meep
PORTVERSION= 1.1.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= science
MASTER_SITES= http://ab-initio.mit.edu/meep/
diff --git a/science/meep/files/patch-libctl_Makefile.in b/science/meep/files/patch-libctl_Makefile.in
new file mode 100644
index 000000000000..12110b873cea
--- /dev/null
+++ b/science/meep/files/patch-libctl_Makefile.in
@@ -0,0 +1,15 @@
+--- libctl/Makefile.in.orig 2010-04-30 10:14:01.000000000 +0700
++++ libctl/Makefile.in 2010-04-30 10:11:18.000000000 +0700
+@@ -717,10 +717,10 @@
+ (echo "// AUTOMATICALLY GENERATED -- DO NOT EDIT"; grep -h friend $(LIBHDRS) | sed 's/^ *friend \+[A-Za-z_0-9:<>]\+[* ]\+\([A-Za-z_0-9:]*\) *(.*$$/%ignore \1;/' | grep "%ignore" | sort -u;) > $@
+
+ meep_enum_renames.i: $(LIBHDRS)
+- (echo "// AUTOMATICALLY GENERATED -- DO NOT EDIT"; for f in $(LIBHDRS); do egrep "^enum" $$f | sed 's/enum \+\([A-Za-z_0-9:]\+\).*$$/\1/g' | while read enum; do cat $$f | tr -d '\n' | sed 's/.*enum \+'$${enum}' *{\([^}]*\)}.*/\1/g' | sed 's/= *[0-9]\+//g' |tr -d ' \t' | tr ',' '\n' | sed 's/^.*$$/'"%rename(meep_$${enum}_\0) meep::\0;/g"; echo; done; done;) > $@
++ (echo "// AUTOMATICALLY GENERATED -- DO NOT EDIT"; for f in $(LIBHDRS); do egrep "^enum" $$f | gsed 's/enum \+\([A-Za-z_0-9:]\+\).*$$/\1/g' | while read enum; do cat $$f | tr -d '\n' | gsed 's/.*enum \+'$${enum}' *{\([^}]*\)}.*/\1/g' | gsed 's/= *[0-9]\+//g' |tr -d ' \t' | tr ',' '\n' | gsed 's/^.*$$/'"%rename(meep_$${enum}_\0) meep::\0;/g"; echo; done; done;) > $@
+
+ meep-enums.scm: meep_enum_renames.i
+- (sed 's/%rename(\([A-Za-z0-9_]*\)) *\([A-Za-z0-9:_]*\);$$/(define \2 (\1))/' meep_enum_renames.i | sed 's/[A-Za-z0-9:_]*:://g' | sed 's/_/-/g' | sed 's,//,;,'; echo "(define Centered Dielectric)") > $@
++ (gsed 's/%rename(\([A-Za-z0-9_]*\)) *\([A-Za-z0-9:_]*\);$$/(define \2 (\1))/' meep_enum_renames.i | gsed 's/[A-Za-z0-9:_]*:://g' | sed 's/_/-/g' | sed 's,//,;,'; echo "(define Centered Dielectric)") > $@
+
+ ##############################################################################
+