mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-21 04:06:46 +00:00
- Fix build
PR: 146745 Submitted by: Stas Timokhin <devel@stasyan.com> (maintainer)
This commit is contained in:
parent
1a32062d2f
commit
6823d79942
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=255883
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= meep
|
||||
PORTVERSION= 1.1.1
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= science
|
||||
MASTER_SITES= http://ab-initio.mit.edu/meep/
|
||||
|
||||
|
15
science/meep/files/patch-libctl_Makefile.in
Normal file
15
science/meep/files/patch-libctl_Makefile.in
Normal file
@ -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)") > $@
|
||||
|
||||
##############################################################################
|
||||
|
Loading…
Reference in New Issue
Block a user