diff options
author | miwi <miwi@FreeBSD.org> | 2010-06-06 15:20:54 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2010-06-06 15:20:54 +0800 |
commit | a5bcaeb702e8f7ff990b5a6bfa34eea5e32c7b6c (patch) | |
tree | 6112ea65c32ed19f87f380378ba58f0cae6c9cf3 /science | |
parent | 637cbc9cdbb8bedd2155e88825198ef184d3e721 (diff) | |
download | freebsd-ports-gnome-a5bcaeb702e8f7ff990b5a6bfa34eea5e32c7b6c.tar.gz freebsd-ports-gnome-a5bcaeb702e8f7ff990b5a6bfa34eea5e32c7b6c.tar.zst freebsd-ports-gnome-a5bcaeb702e8f7ff990b5a6bfa34eea5e32c7b6c.zip |
- Fix build
PR: 146745
Submitted by: Stas Timokhin <devel@stasyan.com> (maintainer)
Diffstat (limited to 'science')
-rw-r--r-- | science/meep/Makefile | 2 | ||||
-rw-r--r-- | science/meep/files/patch-libctl_Makefile.in | 15 |
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)") > $@ + + ############################################################################## + |