[149191] trunk/dports/math
mps at macports.org
mps at macports.org
Sat Jun 4 16:33:59 PDT 2016
Revision: 149191
https://trac.macports.org/changeset/149191
Author: mps at macports.org
Date: 2016-06-04 16:33:59 -0700 (Sat, 04 Jun 2016)
Log Message:
-----------
octave-nan, octave-tsa: simplify patch files: no functional change.
Modified Paths:
--------------
trunk/dports/math/octave-nan/Portfile
trunk/dports/math/octave-nan/files/patch-src_Makefile.diff
trunk/dports/math/octave-tsa/Portfile
trunk/dports/math/octave-tsa/files/patch-src_Makefile.diff
Modified: trunk/dports/math/octave-nan/Portfile
===================================================================
--- trunk/dports/math/octave-nan/Portfile 2016-06-04 23:17:33 UTC (rev 149190)
+++ trunk/dports/math/octave-nan/Portfile 2016-06-04 23:33:59 UTC (rev 149191)
@@ -7,7 +7,7 @@
octave.setup nan 3.0.1
platforms darwin
license GPL-3+
-maintainers gmail.com:mschamschula openmaintainer
+maintainers mps openmaintainer
description A statistics and machine learning toolbox for \
data with and without missing values.
long_description ${description}
Modified: trunk/dports/math/octave-nan/files/patch-src_Makefile.diff
===================================================================
--- trunk/dports/math/octave-nan/files/patch-src_Makefile.diff 2016-06-04 23:17:33 UTC (rev 149190)
+++ trunk/dports/math/octave-nan/files/patch-src_Makefile.diff 2016-06-04 23:33:59 UTC (rev 149191)
@@ -1,34 +1,5 @@
---- src/Makefile.orig 2016-02-15 15:43:42.000000000 -0500
-+++ src/Makefile 2016-02-25 21:14:01.000000000 -0500
-@@ -13,19 +13,19 @@
- # OCTAVE_VERSION=-3.6.3
-
- # Matlab configuration
--#MATLABDIR = /usr/local/MATLAB/R2010b
-+# MATLABDIR = /usr/local/MATLAB/R2010b
- # comment the following line if you use MATLAB on 32-bit operating system
--MEX_OPTION += -largeArrayDims
--
-+# MEX_OPTION += -largeArrayDims
-+#
- # Mingw crosscompiler: available at http://www.nongnu.org/mingw-cross-env/
--CROSS = $(HOME)/src/mxe/usr/bin/i686-w64-mingw32.static-
--CROSS64 = $(HOME)/src/mxe/usr/bin/x86_64-w64-mingw32.static-
-+# CROSS = $(HOME)/src/mxe/usr/bin/i686-w64-mingw32.static-
-+# CROSS64 = $(HOME)/src/mxe/usr/bin/x86_64-w64-mingw32.static-
- # include directory for Win32-Matlab include
--W32MAT_INC = $(HOME)/bin/win32/Matlab/R2010b/extern/include/
--W64MAT_INC = $(HOME)/bin/win64/Matlab/R2010b/extern/include/
-+# W32MAT_INC = $(HOME)/bin/win32/Matlab/R2010b/extern/include/
-+# W64MAT_INC = $(HOME)/bin/win64/Matlab/R2010b/extern/include/
- # path to GNUMEX libraries, available from here http://sourceforge.net/projects/gnumex/
--GNUMEX = $(HOME)/bin/win32/gnumex
--GNUMEX64 = $(HOME)/bin/win64/gnumex
-+# GNUMEX = $(HOME)/bin/win32/gnumex
-+# GNUMEX64 = $(HOME)/bin/win64/gnumex
- # building gnumex64 was difficult, these hints were quite useful:
- # http://sourceforge.net/mailarchive/forum.php?thread_name=AANLkTinZvxgC9ezp2P3UCX_a7TAUYuVsp2U40MQUV6qr%40mail.gmail.com&forum_name=gnumex-users
- # Instead of building "mex shortpath.c" and "mex uigetpath.c", I used empty m-functions within argout=argin;
+--- src/Makefile.orig 2016-02-26 09:09:14.000000000 -0600
++++ src/Makefile 2016-06-04 18:21:45.000000000 -0500
@@ -34,7 +34,7 @@
CC ?= gcc
CXX ?= g++
@@ -38,153 +9,12 @@
RM = rm
# Support Debian Hardening flags
-@@ -45,13 +45,13 @@
- CFLAGS += -fPIC
- endif
+@@ -79,7 +79,7 @@
--ifneq (Darwin,$(shell uname))
--CFLAGS += -fopenmp
--MEX_OPTION += -lgomp
--MEX_OPTION += CC\#$(CXX) CXX\#$(CXX) CFLAGS\#"$(CFLAGS) " CXXFLAGS\#"$(CFLAGS) "
--endif
-+# ifneq (Darwin,$(shell uname))
-+# CFLAGS += -fopenmp
-+# MEX_OPTION += -lgomp
-+# MEX_OPTION += CC\#$(CXX) CXX\#$(CXX) CFLAGS\#"$(CFLAGS) " CXXFLAGS\#"$(CFLAGS) "
-+# endif
-
--MATMEX = $(MATLABDIR)/bin/mex $(MEX_OPTION)
-+# MATMEX = $(MATLABDIR)/bin/mex $(MEX_OPTION)
-
- PROGS = histo_mex.mex covm_mex.mex kth_element.mex sumskipnan_mex.mex str2array.mex train.mex svmtrain_mex.mex svmpredict_mex.mex xptopen.mex
-
-@@ -59,30 +59,30 @@
- mex4o octave: $(PROGS)
-
-
--### Matlab configuration - search for a matlab directory if not defined above
--ifeq (,$(MATLABDIR))
-- ifneq (,$(shell ls -1 /usr/local/ |grep MATLAB))
-- # use oldest, typically mex-files are compatible with newer Matlab versions
-- MATLABDIR=/usr/local/MATLAB/$(shell ls -1rt /usr/local/MATLAB/ |grep "^R20*" |head -1)
-- endif
--endif
--
--
--### if MATLABDIR has been found or defined
--ifneq (,$(MATLABDIR))
-- ifneq (,$(shell ls -1 $(MATLABDIR)/bin/mexext))
-- MEX_EXT=$(shell $(MATLABDIR)/bin/mexext)
-- mex4m matlab: $(patsubst %.mex, %.$(MEX_EXT), $(PROGS))
-- endif
--endif
--
--
--mexw32 win32: $(patsubst %.mex, %.mexw32, $(PROGS))
--mexw64 win64: $(patsubst %.mex, %.mexw64, $(PROGS))
+ mexw32 win32: $(patsubst %.mex, %.mexw32, $(PROGS))
+ mexw64 win64: $(patsubst %.mex, %.mexw64, $(PROGS))
-all: octave win32 win64 mex4m
--
--clean:
-- -$(RM) *.o *.obj *.o64 core octave-core *.oct *~ *.mex*
-+# Matlab configuration - search for a matlab directory if not defined above
-+# ifeq (,$(MATLABDIR))
-+# ifneq (,$(shell ls -1 /usr/local/ |grep MATLAB))
-+# use oldest, typically mex-files are compatible with newer Matlab versions
-+# MATLABDIR=/usr/local/MATLAB/$(shell ls -1rt /usr/local/MATLAB/ |grep "^R20*" |head -1)
-+# endif
-+# endif
-+#
-+#
-+# if MATLABDIR has been found or defined
-+# ifneq (,$(MATLABDIR))
-+# ifneq (,$(shell ls -1 $(MATLABDIR)/bin/mexext))
-+# MEX_EXT=$(shell $(MATLABDIR)/bin/mexext)
-+# mex4m matlab: $(patsubst %.mex, %.$(MEX_EXT), $(PROGS))
-+# endif
-+# endif
-+#
-+#
-+# mexw32 win32: $(patsubst %.mex, %.mexw32, $(PROGS))
-+# mexw64 win64: $(patsubst %.mex, %.mexw64, $(PROGS))
-+# all: octave win32 win64 mex4m
-+#
-+# clean:
-+# -$(RM) *.o *.obj *.o64 core octave-core *.oct *~ *.mex*
++all: mex4o
- #$(PROGS): Makefile
-
-@@ -123,22 +123,22 @@
- #########################################################
- # MATLAB/WIN32
- #########################################################
--%.obj: %.cpp
-- $(CROSS)$(CXX) -fopenmp -c -DMATLAB_MEX_FILE -x c++ -o "$@" -I$(W32MAT_INC) -O2 -DMX_COMPAT_32 "$<"
--%.obj: %.c
-- $(CROSS)$(CXX) -fopenmp -c -DMATLAB_MEX_FILE -x c++ -o "$@" -I$(W32MAT_INC) -O2 -DMX_COMPAT_32 "$<"
--
--train.mexw32 predict.mexw32: train.obj linear.obj linear_model_matlab.obj tron.obj
-- $(CROSS)$(CXX) -shared $(GNUMEX)/mex.def -o "$@" -L$(GNUMEX) -s "$<" linear_model_matlab.obj linear.obj tron.obj -llibmx -llibmex -llibmat -lcholmod -lblas
--
--svmpredict_mex.mexw32 : svmpredict_mex.obj svm.obj svm_model_matlab.obj
-- $(CROSS)$(CXX) -shared $(GNUMEX)/mex.def -o "$@" -L$(GNUMEX) -s "$<" svm_model_matlab.obj svm.obj -llibmx -llibmex -llibmat -lcholmod
--svmtrain_mex.mexw32 : svmtrain_mex.obj svm.obj svm_model_matlab.obj
-- $(CROSS)$(CXX) -shared $(GNUMEX)/mex.def -o "$@" -L$(GNUMEX) -s "$<" svm_model_matlab.obj svm.obj -llibmx -llibmex -llibmat -lcholmod
--
--%.mexw32: %.obj
-- $(CROSS)$(CXX) -shared $(GNUMEX)/mex.def -o "$@" -L$(GNUMEX) -s "$<" -llibmx -llibmex -llibmat -lcholmod -lgomp -lpthread
--
-+# %.obj: %.cpp
-+# $(CROSS)$(CXX) -fopenmp -c -DMATLAB_MEX_FILE -x c++ -o "$@" -I$(W32MAT_INC) -O2 -DMX_COMPAT_32 "$<"
-+# %.obj: %.c
-+# $(CROSS)$(CXX) -fopenmp -c -DMATLAB_MEX_FILE -x c++ -o "$@" -I$(W32MAT_INC) -O2 -DMX_COMPAT_32 "$<"
-+#
-+# train.mexw32 predict.mexw32: train.obj linear.obj linear_model_matlab.obj tron.obj
-+# $(CROSS)$(CXX) -shared $(GNUMEX)/mex.def -o "$@" -L$(GNUMEX) -s "$<" linear_model_matlab.obj linear.obj tron.obj -llibmx -llibmex -llibmat -lcholmod -lblas
-+#
-+# svmpredict_mex.mexw32 : svmpredict_mex.obj svm.obj svm_model_matlab.obj
-+# $(CROSS)$(CXX) -shared $(GNUMEX)/mex.def -o "$@" -L$(GNUMEX) -s "$<" svm_model_matlab.obj svm.obj -llibmx -llibmex -llibmat -lcholmod
-+# svmtrain_mex.mexw32 : svmtrain_mex.obj svm.obj svm_model_matlab.obj
-+# $(CROSS)$(CXX) -shared $(GNUMEX)/mex.def -o "$@" -L$(GNUMEX) -s "$<" svm_model_matlab.obj svm.obj -llibmx -llibmex -llibmat -lcholmod
-+#
-+# %.mexw32: %.obj
-+# $(CROSS)$(CXX) -shared $(GNUMEX)/mex.def -o "$@" -L$(GNUMEX) -s "$<" -llibmx -llibmex -llibmat -lcholmod -lgomp -lpthread
-+#
-
-
- #########################################################
-@@ -146,19 +146,19 @@
- #########################################################
-
- ## ToDO: fix OpenMP support: currently -fopenmp causes Matlab to crash
--%.o64: %.cpp
-- $(CROSS64)$(CXX) -c -DMATLAB_MEX_FILE -x c++ -o "$@" -I$(W64MAT_INC) -O2 "$<"
--%.o64: %.c
-- $(CROSS64)$(CXX) -c -DMATLAB_MEX_FILE -x c++ -o "$@" -I$(W64MAT_INC) -O2 "$<"
--
--train.mexw64 predict.mexw64: train.o64 linear.o64 linear_model_matlab.o64 tron.o64
-- $(CROSS64)$(CXX) -shared $(GNUMEX64)/mex.def -o "$@" -L$(GNUMEX64) -s "$<" linear_model_matlab.o64 linear.o64 tron.o64 -llibmx -llibmex -llibmat -lcholmod -lblas
--
--svmpredict_mex.mexw64 : svmpredict_mex.o64 svm.o64 svm_model_matlab.o64
-- $(CROSS64)$(CXX) -shared $(GNUMEX64)/mex.def -o "$@" -L$(GNUMEX64) -s "$<" svm_model_matlab.o64 svm.o64 -llibmx -llibmex -llibmat -lcholmod
--svmtrain_mex.mexw64 : svmtrain_mex.o64 svm.o64 svm_model_matlab.o64
-- $(CROSS64)$(CXX) -shared $(GNUMEX64)/mex.def -o "$@" -L$(GNUMEX64) -s "$<" svm_model_matlab.o64 svm.o64 -llibmx -llibmex -llibmat -lcholmod
--
--%.mexw64: %.o64
-- $(CROSS64)$(CXX) -shared $(GNUMEX64)/mex.def -o "$@" -L$(GNUMEX64) -s "$<" -llibmx -llibmex -llibmat -lcholmod -lgomp -lpthread
--
-+# %.o64: %.cpp
-+# $(CROSS64)$(CXX) -c -DMATLAB_MEX_FILE -x c++ -o "$@" -I$(W64MAT_INC) -O2 "$<"
-+# %.o64: %.c
-+# $(CROSS64)$(CXX) -c -DMATLAB_MEX_FILE -x c++ -o "$@" -I$(W64MAT_INC) -O2 "$<"
-+#
-+# train.mexw64 predict.mexw64: train.o64 linear.o64 linear_model_matlab.o64 tron.o64
-+# $(CROSS64)$(CXX) -shared $(GNUMEX64)/mex.def -o "$@" -L$(GNUMEX64) -s "$<" linear_model_matlab.o64 linear.o64 tron.o64 -llibmx -llibmex -llibmat -lcholmod -lblas
-+#
-+# svmpredict_mex.mexw64 : svmpredict_mex.o64 svm.o64 svm_model_matlab.o64
-+# $(CROSS64)$(CXX) -shared $(GNUMEX64)/mex.def -o "$@" -L$(GNUMEX64) -s "$<" svm_model_matlab.o64 svm.o64 -llibmx -llibmex -llibmat -lcholmod
-+# svmtrain_mex.mexw64 : svmtrain_mex.o64 svm.o64 svm_model_matlab.o64
-+# $(CROSS64)$(CXX) -shared $(GNUMEX64)/mex.def -o "$@" -L$(GNUMEX64) -s "$<" svm_model_matlab.o64 svm.o64 -llibmx -llibmex -llibmat -lcholmod
-+#
-+# %.mexw64: %.o64
-+# $(CROSS64)$(CXX) -shared $(GNUMEX64)/mex.def -o "$@" -L$(GNUMEX64) -s "$<" -llibmx -llibmex -llibmat -lcholmod -lgomp -lpthread
-+#
+ clean:
+ -$(RM) *.o *.obj *.o64 core octave-core *.oct *~ *.mex*
Modified: trunk/dports/math/octave-tsa/Portfile
===================================================================
--- trunk/dports/math/octave-tsa/Portfile 2016-06-04 23:17:33 UTC (rev 149190)
+++ trunk/dports/math/octave-tsa/Portfile 2016-06-04 23:33:59 UTC (rev 149191)
@@ -7,7 +7,7 @@
octave.setup tsa 4.4.1
platforms darwin
license GPL-3+
-maintainers gmail.com:mschamschula openmaintainer
+maintainers mps openmaintainer
description Stochastic concepts and maximum entropy \
methods for time series analysis.
long_description ${description}
Modified: trunk/dports/math/octave-tsa/files/patch-src_Makefile.diff
===================================================================
--- trunk/dports/math/octave-tsa/files/patch-src_Makefile.diff 2016-06-04 23:17:33 UTC (rev 149190)
+++ trunk/dports/math/octave-tsa/files/patch-src_Makefile.diff 2016-06-04 23:33:59 UTC (rev 149191)
@@ -1,186 +1,20 @@
--- src/Makefile.orig 2016-02-26 09:09:55.000000000 -0600
-+++ src/Makefile 2016-02-29 11:33:07.000000000 -0600
-@@ -15,74 +15,74 @@
- # Matlab configuration
- # MATLABDIR = /usr/local/MATLAB/R2010b
- # comment the following line if you use MATLAB on 32-bit operating system
--MEX_OPTION += -largeArrayDims
--
--# Mingw crosscompiler: available at http://www.nongnu.org/mingw-cross-env/
--CROSS = $(HOME)/src/mxe/usr/bin/i686-w64-mingw32.static
--CROSS64 = $(HOME)/src/mxe/usr/bin/x86_64-w64-mingw32.static
--# include directory for Win32-Matlab include
--W32MAT_INC = -I$(HOME)/bin/win32/Matlab/R2010b/extern/include/
--W64MAT_INC = -I$(HOME)/bin/win64/Matlab/R2010b/extern/include/
--# path to GNUMEX libraries, available from here http://sourceforge.net/projects/gnumex/
--GNUMEX = $(HOME)/bin/win32/gnumex
--GNUMEX64 = $(HOME)/bin/win64/gnumex
--# building gnumex64 was difficult, these hints were quite useful:
--# http://sourceforge.net/mailarchive/forum.php?thread_name=AANLkTinZvxgC9ezp2P3UCX_a7TAUYuVsp2U40MQUV6qr%40mail.gmail.com&forum_name=gnumex-users
--# Instead of building "mex shortpath.c" and "mex uigetpath.c", I used empty m-functions within argout=argin;
--####################################################
--W32MAT_INC += -I$(subst /usr/bin/,/usr/,$(CROSS))/include/
--W64MAT_INC += -I$(subst /usr/bin/,/usr/,$(CROSS64))/include/
--LDLIBS_W32 = $(subst /usr/bin/,/usr/,$(CROSS))/lib/
--LDLIBS_W64 = $(subst /usr/bin/,/usr/,$(CROSS64))/lib/
--W32_LIBS = $(LDLIBS_W32)liblapack.a
--W64_LIBS = $(LDLIBS_W64)liblapack.a
--W32_LIBS += $(LDLIBS_W32)libblas.a
--W64_LIBS += $(LDLIBS_W64)libblas.a
--
--CC ?= gcc
--CXX ?= g++
-+# MEX_OPTION += -largeArrayDims
-+#
-+# # Mingw crosscompiler: available at http://www.nongnu.org/mingw-cross-env/
-+# CROSS = $(HOME)/src/mxe/usr/bin/i686-w64-mingw32.static
-+# CROSS64 = $(HOME)/src/mxe/usr/bin/x86_64-w64-mingw32.static
-+# # include directory for Win32-Matlab include
-+# W32MAT_INC = -I$(HOME)/bin/win32/Matlab/R2010b/extern/include/
-+# W64MAT_INC = -I$(HOME)/bin/win64/Matlab/R2010b/extern/include/
-+# # path to GNUMEX libraries, available from here http://sourceforge.net/projects/gnumex/
-+# GNUMEX = $(HOME)/bin/win32/gnumex
-+# GNUMEX64 = $(HOME)/bin/win64/gnumex
-+# # building gnumex64 was difficult, these hints were quite useful:
-+# # http://sourceforge.net/mailarchive/forum.php?thread_name=AANLkTinZvxgC9ezp2P3UCX_a7TAUYuVsp2U40MQUV6qr%40mail.gmail.com&forum_name=gnumex-users
-+# # Instead of building "mex shortpath.c" and "mex uigetpath.c", I used empty m-functions within argout=argin;
-+# ####################################################
-+# W32MAT_INC += -I$(subst /usr/bin/,/usr/,$(CROSS))/include/
-+# W64MAT_INC += -I$(subst /usr/bin/,/usr/,$(CROSS64))/include/
-+# LDLIBS_W32 = $(subst /usr/bin/,/usr/,$(CROSS))/lib/
-+# LDLIBS_W64 = $(subst /usr/bin/,/usr/,$(CROSS64))/lib/
-+# W32_LIBS = $(LDLIBS_W32)liblapack.a
-+# W64_LIBS = $(LDLIBS_W64)liblapack.a
-+# W32_LIBS += $(LDLIBS_W32)libblas.a
-+# W64_LIBS += $(LDLIBS_W64)libblas.a
-+#
-+# CC ?= gcc
-+# CXX ?= g++
++++ src/Makefile 2016-06-04 18:28:33.000000000 -0500
+@@ -42,7 +42,7 @@
+ CC ?= gcc
+ CXX ?= g++
CFLAGS = -Wall -Wextra -Wconversion -O2 -fPIC
-OCTMEX = mkoctfile$(OCTAVE_VERSION) --mex -lgomp
+OCTMEX = mkoctfile$(OCTAVE_VERSION) --mex
RM = rm
# Support Debian Hardening flags
- # https://wiki.debian.org/HardeningWalkthrough#Handling_dpkg-buildflags_in_your_upstream_build_system
--CFLAGS += $(CPPFLAGS)
--
--ifneq (Darwin,$(shell uname))
--CFLAGS += -fopenmp
--MEX_OPTION += -lgomp
--endif
--
--MEX_OPTION += CC\#$(CXX) CXX\#$(CXX) CFLAGS\#"$(CFLAGS)" CXXFLAGS\#"$(CFLAGS)"
--MATMEX = $(MATLABDIR)/bin/mex $(MEX_OPTION)
--
--PROGS = covm_mex.mex sumskipnan_mex.mex histo_mex.mex #
--
-+# CFLAGS += $(CPPFLAGS)
-+#
-+# ifneq (Darwin,$(shell uname))
-+# CFLAGS += -fopenmp
-+# MEX_OPTION += -lgomp
-+# endif
-+#
-+# MEX_OPTION += CC\#$(CXX) CXX\#$(CXX) CFLAGS\#"$(CFLAGS)" CXXFLAGS\#"$(CFLAGS)"
-+# MATMEX = $(MATLABDIR)/bin/mex $(MEX_OPTION)
-+#
-+# PROGS = covm_mex.mex sumskipnan_mex.mex histo_mex.mex #
-+#
- ### per default only the mex-files for octave are built
- mex4o octave: $(PROGS)
+@@ -82,7 +82,7 @@
-
- ### Matlab configuration - search for a matlab directory if not defined above
--ifeq (,$(MATLABDIR))
-- ifneq (,$(shell ls -1 /usr/local/ |grep MATLAB))
-- # use oldest, typically mex-files a compatible with newer Matlab versions
-- MATLABDIR=/usr/local/MATLAB/$(shell ls -1rt /usr/local/MATLAB/ |grep "^R*" |head -1)
-- endif
--endif
--
--### if MATLABDIR has been found or defined
--ifneq (,$(MATLABDIR))
-- ifneq (,$(shell ls -1 $(MATLABDIR)/bin/mexext))
-- MEX_EXT=$(shell $(MATLABDIR)/bin/mexext)
-- mex4m matlab: $(patsubst %.mex, %.$(MEX_EXT), $(PROGS))
-- endif
--endif
--
--
--mexw32 win32: $(patsubst %.mex, %.mexw32, $(PROGS))
--mexw64 win64: $(patsubst %.mex, %.mexw64, $(PROGS))
+ mexw32 win32: $(patsubst %.mex, %.mexw32, $(PROGS))
+ mexw64 win64: $(patsubst %.mex, %.mexw64, $(PROGS))
-all: octave win32 win64 mex4m
-+# ifeq (,$(MATLABDIR))
-+# ifneq (,$(shell ls -1 /usr/local/ |grep MATLAB))
-+# # use oldest, typically mex-files a compatible with newer Matlab versions
-+# MATLABDIR=/usr/local/MATLAB/$(shell ls -1rt /usr/local/MATLAB/ |grep "^R*" |head -1)
-+# endif
-+# endif
-+#
-+# ### if MATLABDIR has been found or defined
-+# ifneq (,$(MATLABDIR))
-+# ifneq (,$(shell ls -1 $(MATLABDIR)/bin/mexext))
-+# MEX_EXT=$(shell $(MATLABDIR)/bin/mexext)
-+# mex4m matlab: $(patsubst %.mex, %.$(MEX_EXT), $(PROGS))
-+# endif
-+# endif
-+#
-+#
-+# mexw32 win32: $(patsubst %.mex, %.mexw32, $(PROGS))
-+# mexw64 win64: $(patsubst %.mex, %.mexw64, $(PROGS))
-+all: octave
++all: mex4o
clean:
-$(RM) *.o *.obj *.o64 core octave-core *.oct *~ *.mex*
-@@ -93,7 +93,7 @@
- # Octave, MATLAB on Linux
- #########################################################
- %.oct: %.cc
-- mkoctfile$(OCTAVE_VERSION) "$<"
-+ mkoctfile "$<"
-
- %.mex: %.cpp
- $(OCTMEX) "$<" -llapack -lblas
-@@ -104,13 +104,13 @@
- #########################################################
- # MATLAB/WIN32
- #########################################################
--%.obj: %.cpp
-- $(CROSS)-$(CXX) -fopenmp -c -DMATLAB_MEX_FILE -x c++ -o "$@" $(W32MAT_INC) -O2 -DMX_COMPAT_32 "$<"
--%.obj: %.c
-- $(CROSS)-$(CXX) -fopenmp -c -DMATLAB_MEX_FILE -x c++ -o "$@" $(W32MAT_INC) -O2 -DMX_COMPAT_32 "$<"
--
--%.mexw32: %.obj
-- $(CROSS)-$(CXX) -shared $(GNUMEX)/mex.def -o "$@" -L$(GNUMEX) -s "$<" -llibmx -llibmex -llibmat -lcholmod -lgomp -lpthread -L$(LDLIBS_W32) -lblas -llapack
-+# %.obj: %.cpp
-+# $(CROSS)-$(CXX) -fopenmp -c -DMATLAB_MEX_FILE -x c++ -o "$@" $(W32MAT_INC) -O2 -DMX_COMPAT_32 "$<"
-+# %.obj: %.c
-+# $(CROSS)-$(CXX) -fopenmp -c -DMATLAB_MEX_FILE -x c++ -o "$@" $(W32MAT_INC) -O2 -DMX_COMPAT_32 "$<"
-+#
-+# %.mexw32: %.obj
-+# $(CROSS)-$(CXX) -shared $(GNUMEX)/mex.def -o "$@" -L$(GNUMEX) -s "$<" -llibmx -llibmex -llibmat -lcholmod -lgomp -lpthread -L$(LDLIBS_W32) -lblas -llapack
-
-
- #########################################################
-@@ -118,13 +118,13 @@
- #########################################################
-
- ## ToDO: fix OpenMP support: currently -fopenmp causes Matlab to crash
--%.o64: %.cpp
-- $(CROSS64)-$(CXX) -c -DMATLAB_MEX_FILE -x c++ -o "$@" $(W64MAT_INC) -O2 "$<"
--%.o64: %.c
-- $(CROSS64)-$(CXX) -c -DMATLAB_MEX_FILE -x c++ -o "$@" $(W64MAT_INC) -O2 "$<"
--
--%.mexw64: %.o64
-- $(CROSS64)-$(CXX) -shared $(GNUMEX64)/mex.def -o "$@" -L$(GNUMEX64) -s "$<" -llibmx -llibmex -llibmat -lcholmod -lgomp -lpthread -L$(LDLIBS_W64) -lblas -llapack
-+# %.o64: %.cpp
-+# $(CROSS64)-$(CXX) -c -DMATLAB_MEX_FILE -x c++ -o "$@" $(W64MAT_INC) -O2 "$<"
-+# %.o64: %.c
-+# $(CROSS64)-$(CXX) -c -DMATLAB_MEX_FILE -x c++ -o "$@" $(W64MAT_INC) -O2 "$<"
-+#
-+# %.mexw64: %.o64
-+# $(CROSS64)-$(CXX) -shared $(GNUMEX64)/mex.def -o "$@" -L$(GNUMEX64) -s "$<" -llibmx -llibmex -llibmat -lcholmod -lgomp -lpthread -L$(LDLIBS_W64) -lblas -llapack
-
-
-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160604/c7d86db8/attachment.html>
More information about the macports-changes
mailing list