diff options
Diffstat (limited to 'Build/source/utils/asymptote/build-scripts')
9 files changed, 140 insertions, 6 deletions
diff --git a/Build/source/utils/asymptote/build-scripts/HOWTO-MSWindows b/Build/source/utils/asymptote/build-scripts/HOWTO-MSWindows index 977501d6582..9a39e4b1746 100644 --- a/Build/source/utils/asymptote/build-scripts/HOWTO-MSWindows +++ b/Build/source/utils/asymptote/build-scripts/HOWTO-MSWindows @@ -8,9 +8,11 @@ Install TeXLive and required Cygwin packages: setup-x86_64.exe -q -P git,wget,make,patch,gcc-g++,autoconf2.5,bison,flex,w32api-headers,w32api-runtime,zlib-devel,glm-devel,automake1.15,libtool -setup-x86_64.exe -q -I -P libtirpc-devel,libreadline-devel,libfftw3-devel,libgsl-devel +setup-x86_64.exe -q -I -P libtirpc-devel,libreadline-devel,libfftw3-devel,libgsl-devel,libcurl-devel -Build and install static libraries from /usr/local/src: +Download wolfssl GPLV3 source code from www.wolfssl.com + +Build and install static libraries from /usr/src: gsl-devel: ./configure --prefix=/usr @@ -21,7 +23,7 @@ readline-devel: make install fftw3-devel: -./configure --prefix=/usr --enable-shared +./configure --prefix=/usr --disable-shared make install tirpc-devel: @@ -35,6 +37,14 @@ termcap-1.3.1: ./configure --prefix=/usr make install +wolfssl-4.4.0-gplv3-fips-ready: +./configure --prefix=/usr --enable-static +make install + +curl-7.71.1: +./configure --prefix=/usr --disable-shared --without-brotli --without-ssl --with-wolfssl +make install + git clone http://github.com/vectorgraphics/asymptote freeglut-3.0.0: @@ -62,4 +72,4 @@ cd gc-$GCVERSION ./configure --disable-shared make check -~/asymptote/build-scripts/build-asymptote.dos 2.48 +~/asymptote/build-scripts/build-asymptote.dos <VERSION> diff --git a/Build/source/utils/asymptote/build-scripts/README-binaries b/Build/source/utils/asymptote/build-scripts/README-binaries index 8e4192121d9..41576b36f49 100644 --- a/Build/source/utils/asymptote/build-scripts/README-binaries +++ b/Build/source/utils/asymptote/build-scripts/README-binaries @@ -1,5 +1,5 @@ The Asymptote executable for MSWindows can only be released under the GNU General Public License (GPL) as it is linked against the GNU Scientific -Library, GNU Readline library, and other GPL libraries. The Asymptote +Library, GNU Readline library, WolfSSL, and other GPL libraries. The Asymptote source itself is released under the GNU Lesser General Public License. diff --git a/Build/source/utils/asymptote/build-scripts/asy-format.el b/Build/source/utils/asymptote/build-scripts/asy-format.el new file mode 100644 index 00000000000..fc66032653b --- /dev/null +++ b/Build/source/utils/asymptote/build-scripts/asy-format.el @@ -0,0 +1,52 @@ +(defun change (old-pat new-pat) "Replace all occurences of old-pat to new-pat in current buffer." +(interactive "r") +(goto-char (point-min)) +(replace-string old-pat new-pat)) + +(defun changereg (old-regexp new-regexp) "Replace all occurences of old-regexp to new-regexp in current buffer." +(interactive "r") +(goto-char (point-min)) +(replace-regexp old-regexp new-regexp)) + +(defun querychangereg (old-regexp new-regexp) "Replace all occurences of old-regexp to new-regexp in current buffer, with query." +(interactive "r") +(goto-char (point-min)) +(query-replace-regexp old-regexp new-regexp)) + +(set-variable 'case-fold-search nil) +(change " + " "+") +(change " - " "-") +;;(change " * " "*") +(change " / " "/") +(change " = " "=") +(change " --" "--") +(change "-- " "--") +(change " ++" "++") +(change "++ " "++") +(change " .. " "..") +(change " ^^ " "^^") +(change " & " "&") +(change " :: " "::") +(change ";--" "; --") +(change " (" "(") +(change " )" ")") +(change " }" "}") +(changereg "( \\([^/]\\)" "(\\1") +(changereg "{ \\([^/]\\)" "{\\1") +(changereg "\\([^ ]\\)\\?" "\\1 ?") +(changereg "\\?\\([^ ]\\)" "? \\1") +(changereg ";\\([^ \\} +]\\)" "; \\1") +;;(changereg "\\([^ ]\\):" "\\1 :") +(changereg ":\\([^ ]\\)" ": \\1") +(changereg "\\([+-*/=!<>]\\)=\\([^ ]\\)" "\\1= \\2") +(changereg "\\([^ ]\\)\\([+-*/=!<>]\\)=" "\\1 \\2=") +(changereg "\\([<>]\\)\\([^ =]\\)" "\\1 \\2") +(changereg "\\([^ ]\\)\\([<>]\\)" "\\1 \\2") +(changereg "&&\\([^ ]\\)" "&& \\1") +(changereg "||\\([^ ]\\)" "|| \\1") +(changereg "\\[\\]\\([^ []\\)" "[] \\1") +(indent-region (point-min) (point-max)) + +(querychangereg ", " ",") + diff --git a/Build/source/utils/asymptote/build-scripts/asy-indent.el b/Build/source/utils/asymptote/build-scripts/asy-indent.el new file mode 100644 index 00000000000..06189e5e60a --- /dev/null +++ b/Build/source/utils/asymptote/build-scripts/asy-indent.el @@ -0,0 +1,6 @@ +(load-file "/usr/local/share/asymptote/asy-mode.el") +(asy-mode) +(indent-region (point-min) (point-max) nil) +(untabify (point-min) (point-max)) +(delete-trailing-whitespace (point-min) (point-max)) +(save-buffer) diff --git a/Build/source/utils/asymptote/build-scripts/build-asygl b/Build/source/utils/asymptote/build-scripts/build-asygl index f1d75a6f803..559b08c08b4 100755 --- a/Build/source/utils/asymptote/build-scripts/build-asygl +++ b/Build/source/utils/asymptote/build-scripts/build-asygl @@ -7,7 +7,7 @@ if [ $# -eq 1 ]; then \ UGLIFY=cat; \ UGLIFYOPT=""; \ else \ -UGLIFY=uglifyjs; \ +UGLIFY=terser; \ UGLIFYOPTIONS="-m -c --comments"; \ fi diff --git a/Build/source/utils/asymptote/build-scripts/build-asymptote.dos b/Build/source/utils/asymptote/build-scripts/build-asymptote.dos index b8755c7591c..5bb6777cc2f 100755 --- a/Build/source/utils/asymptote/build-scripts/build-asymptote.dos +++ b/Build/source/utils/asymptote/build-scripts/build-asymptote.dos @@ -35,6 +35,7 @@ make -n MSDOS=1 >& /dev/null || ./configure OSTYPE=msdos --enable-gc=$GC --with- rm -rf $BUILD mkdir -p $BUILD cp -a $HOME/dll/cygwin/*.dll $BUILD +cp /etc/pki/tls/certs/ca-bundle.crt $BUILD chmod 0644 $BUILD/*.dll cp -a $BUILD/*.dll ~/CTAN/asymptote-$VERSION/binaries/$BINDIR/ make MSDOS=1 DESTDIR="$BUILD/" docdir="$BUILD/" @@ -55,6 +56,7 @@ ls -p1 $BUILD \ | awk '{ if(index($0,"/")==length($0)) print "RMDir /r $INSTDIR\\" substr($0,0,length($0)-1); else print "Delete $INSTDIR\\" $0 }' \ > AsymptoteUninstallList.nsi +rm $BUILD/xasy if [ $MACHINE == i686 ]; then sed asymptote.nsi -e 's/$PROGRAMFILES64/$PROGRAMFILES/g' > asymptote32.nsi /cygdrive/c/Program\ Files\ \(x86\)/NSIS/makensis.exe asymptote32.nsi diff --git a/Build/source/utils/asymptote/build-scripts/cc-format.el b/Build/source/utils/asymptote/build-scripts/cc-format.el new file mode 100644 index 00000000000..fa36f6dd6a1 --- /dev/null +++ b/Build/source/utils/asymptote/build-scripts/cc-format.el @@ -0,0 +1,52 @@ +(defun change (old-pat new-pat) "Replace all occurences of old-pat to new-pat in current buffer." +(interactive "r") +(goto-char (point-min)) +(replace-string old-pat new-pat)) + +(defun changereg (old-regexp new-regexp) "Replace all occurences of old-regexp to new-regexp in current buffer." +(interactive "r") +(goto-char (point-min)) +(replace-regexp old-regexp new-regexp)) + +(defun querychangereg (old-regexp new-regexp) "Replace all occurences of old-regexp to new-regexp in current buffer, with query." +(interactive "r") +(goto-char (point-min)) +(query-replace-regexp old-regexp new-regexp)) + +(set-variable 'case-fold-search nil) +(change " + " "+") +(change " - " "-") +(change " * " "*") +(change " / " "/") +(change " = " "=") +(change " --" "--") +(change "-- " "--") +(change " ++" "++") +(change "++ " "++") +(change " .. " "..") +(change " ^^ " "^^") +(change " & " "&") +(change " :: " "::") +(change ";--" "; --") +(change " (" "(") +(change " )" ")") +(change " }" "}") +(changereg "( \\([^/]\\)" "(\\1") +(changereg "{ \\([^/]\\)" "{\\1") +(changereg "\\([^ ]\\)\\?" "\\1 ?") +(changereg "\\?\\([^ ]\\)" "? \\1") +(changereg ";\\([^ \\} +]\\)" "; \\1") +;;(changereg "\\([^ ]\\):" "\\1 :") +(changereg ":\\([^ ]\\)" ": \\1") +(changereg "\\([+-*/=!]\\)=\\([^ ]\\)" "\\1= \\2") +(changereg "\\([^ ]\\)\\([+-*/=!]\\)=" "\\1 \\2=") +(changereg "\\([]\\)\\([^ =]\\)" "\\1 \\2") +(changereg "\\([^ ]\\)\\([]\\)" "\\1 \\2") +(changereg "&&\\([^ ]\\)" "&& \\1") +(changereg "||\\([^ ]\\)" "|| \\1") +(changereg "\\[\\]\\([^ []\\)" "[] \\1") +(indent-region (point-min) (point-max)) + +(querychangereg ", " ",") + diff --git a/Build/source/utils/asymptote/build-scripts/cc-indent.el b/Build/source/utils/asymptote/build-scripts/cc-indent.el new file mode 100644 index 00000000000..58c1ac9ea85 --- /dev/null +++ b/Build/source/utils/asymptote/build-scripts/cc-indent.el @@ -0,0 +1,6 @@ +(load-file "cc-mode2.el") +(c++-mode) +(indent-region (point-min) (point-max) nil) +(untabify (point-min) (point-max)) +(delete-trailing-whitespace (point-min) (point-max)) +(save-buffer) diff --git a/Build/source/utils/asymptote/build-scripts/run-in-indent.el b/Build/source/utils/asymptote/build-scripts/run-in-indent.el new file mode 100644 index 00000000000..9a4567dcb86 --- /dev/null +++ b/Build/source/utils/asymptote/build-scripts/run-in-indent.el @@ -0,0 +1,6 @@ +(load-file "cc-mode2.el") +(c++-mode) +(indent-region (search-forward "" nil nil 2) (point-max) nil) +(untabify (point-min) (point-max)) +(delete-trailing-whitespace (point-min) (point-max)) +(save-buffer) |