ports/math/scilab/files/patch-modules-dynamic_link-macros-ilib_gen_Make_unix.sci
Max Brazhnikov 57a37508d6 math/scilab:
- Update to 5.5.0
- Populate USES with desktop-file-utils, iconv, libtool, pathfix,
  and shared-mime-info
- Add dependency on xdg-utils
- Remove needless USE_LDCONFIG
- Clean up CONFIGURE_ENV from stale stuff
- Update options:
  . remove DOCS, FFTW, MATIO, UMFPACK (always build with them for simplicity)
  . remove NLS (doesn't build without it)
  . merge HELP with GUI
  . PVM is not supported anymore
  . Enable OCAML and TK by default
- Use options heplers
- Clean up post-patch section from stale fixes
- Convert to static pkg-plist
2014-09-04 18:20:53 +00:00

32 lines
1.2 KiB
Scilab

--- ./modules/dynamic_link/macros/ilib_gen_Make_unix.sci.orig 2014-04-11 09:51:43.000000000 +0000
+++ ./modules/dynamic_link/macros/ilib_gen_Make_unix.sci 2014-07-24 23:46:32.896279292 +0000
@@ -65,20 +65,6 @@
linkBuildDir = TMPDIR+"/"+libname;
mkdir(linkBuildDir);
commandpath = SCI+"/modules/dynamic_link/src/scripts";
- [fd,ierr] = mopen(commandpath+"/write.test","w+");
-
- if (ierr<>0) then
- writePerm=%F
- else
- writePerm=%T
- mclose(fd)
- mdelete(commandpath+"/write.test");
- end
-
- if (writePerm == %T & ( fileinfo(commandpath+"/Makefile.orig") == [] | fileinfo(commandpath+"/libtool") == [] )) then
- // We have write permission on the scilab tree, then generate the stuff into the directory in order to avoid the configure each time.
- generateConfigure(commandpath);
- end
// Copy files => linkBuildDir
@@ -187,7 +173,7 @@
end
end
- if ldflags <> "" | cflags <> "" | fflags <> "" | cc <> "" | fileinfo(commandpath+"/Makefile.orig") == [] | fileinfo(commandpath+"/libtool") == [] then
+ if %T then
// Makefile.orig doesn't exists or may be invalid regarding the flags
// run the ./configure with the flags