changeset 3989:cdbce8086eaa

of-ocs: new package * Makefile.in: add ocs to OCTAVE_FORGE_PACKAGES * build_packages.m: add ocs-0.1.4.tar.gz to install * dist-files.mk: add refs to of-ocs-1-cross-fixes.patch, of-ocs.mk * src/of-ocs-1-cross-fixes.patch: new file * src/of-ocs.mk: new file * index.html: add of-ocs
author John Donoghue <john.donoghue@ieee.org>
date Tue, 07 Jul 2015 20:43:46 -0400
parents 5b8ff612595a
children e93608f4f07b
files Makefile.in build_packages.m dist-files.mk index.html src/of-ocs-1-cross-fixes.patch src/of-ocs.mk
diffstat 6 files changed, 45 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile.in	Tue Jul 07 20:16:48 2015 -0400
+++ b/Makefile.in	Tue Jul 07 20:43:46 2015 -0400
@@ -429,7 +429,7 @@
 endif
 
 OCTAVE_FORGE_BASE_URL := 'http://sourceforge.net/projects/octave/files/Octave Forge Packages/Individual Package Releases'
-OCTAVE_FORGE_PACKAGES := $(addprefix of-,miscellaneous struct optim specfun general signal communications image io statistics control geometry windows linear-algebra sockets zenity data-smoothing fuzzy-logic-toolkit quaternion fits fl-core tsa dicom netcdf ltfat database instrument-control generate_html nurbs strings octcdf financial stk splines dataframe lssa queueing ga odepkg interval nan)
+OCTAVE_FORGE_PACKAGES := $(addprefix of-,miscellaneous struct optim specfun general signal communications image io statistics control geometry windows linear-algebra sockets zenity data-smoothing fuzzy-logic-toolkit quaternion fits fl-core tsa dicom netcdf ltfat database instrument-control generate_html nurbs strings octcdf financial stk splines dataframe lssa queueing ga odepkg interval nan ocs)
 # get ALL deps for all of- packages, regardless of whethe building the actual forge package in the installer
 OCTAVE_FORGE_DEPS:= $(sort $(foreach p,$(wildcard $(TOP_DIR)/src/of-*.mk),$(shell $(SED) -n 's/.*_DEPS.*:=\(.*\)/\1/p' $p)))
 
--- a/build_packages.m	Tue Jul 07 20:16:48 2015 -0400
+++ b/build_packages.m	Tue Jul 07 20:43:46 2015 -0400
@@ -61,4 +61,5 @@
 try_install ga-0.10.0.tar.gz
 try_install interval-1.0.0.tar.gz
 try_install nan-2.8.1.tar.gz
+try_install ocs-0.1.4.tar.gz
 
--- a/dist-files.mk	Tue Jul 07 20:16:48 2015 -0400
+++ b/dist-files.mk	Tue Jul 07 20:43:46 2015 -0400
@@ -483,6 +483,8 @@
   of-netcdf.mk \
   of-nurbs-1-fixes.patch \
   of-nurbs.mk \
+  of-ocs-1-cross-fixes.patch \
+  of-ocs.mk \
   of-octcdf-1-cross-fixes.patch \
   of-octcdf.mk \
   of-odepkg.mk \
--- a/index.html	Tue Jul 07 20:16:48 2015 -0400
+++ b/index.html	Tue Jul 07 20:43:46 2015 -0400
@@ -1950,6 +1950,10 @@
         <td class="website"><a href="http://octave.sf.net/">Octave Forge nurbs package</a></td>
     </tr>
     <tr>
+        <td class="package">of-ocs</td>
+        <td class="website"><a href="http://octave.sf.net/">Octave Forge ocs package</a></td>
+    </tr>
+    <tr>
         <td class="package">of-octcdf</td>
         <td class="website"><a href="http://octave.sf.net/">Octave Forge octcdf package</a></td>
     </tr>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/of-ocs-1-cross-fixes.patch	Tue Jul 07 20:43:46 2015 -0400
@@ -0,0 +1,15 @@
+diff -ur ocs.old/src/Makefile ocs/src/Makefile
+--- ocs.old/src/Makefile	2015-07-07 20:23:51.000000000 -0400
++++ ocs/src/Makefile	2015-07-07 20:24:25.000000000 -0400
+@@ -1,9 +1,10 @@
+ OCTFILES:=Mshichmanhodgesmosfet.oct
++MKOCTFILE ?= mkoctfile
+ 
+ all: $(OCTFILES)
+ 
+ %.oct:  %.cc
+-	mkoctfile $<
++	$(MKOCTFILE) $<
+ 
+ clean:
+ 	-rm -f *.o core octave-core *.oct *~
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/of-ocs.mk	Tue Jul 07 20:43:46 2015 -0400
@@ -0,0 +1,22 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG             := of-ocs
+$(PKG)_IGNORE   :=
+$(PKG)_VERSION  := 0.1.4
+$(PKG)_CHECKSUM := f3aa636a0f63f2c69cc9e0f88fa50c423e0cf548
+$(PKG)_REMOTE_SUBDIR := 
+$(PKG)_SUBDIR   := ocs
+$(PKG)_FILE     := ocs-$($(PKG)_VERSION).tar.gz
+$(PKG)_URL      := '$(OCTAVE_FORGE_BASE_URL)/$($(PKG)_FILE)/download'
+$(PKG)_DEPS     := 
+
+define $(PKG)_UPDATE
+    $(WGET) -q -O- 'http://$(SOURCEFORGE_MIRROR)/projects/octave/files/Octave%20Forge%20Packages/Individual%20Package%20Releases/' | \
+    $(SED) -n 's,.*title="ocs-\([0-9][^"]*\).tar.gz".*,\1,p' | \
+    head -1
+endef
+
+define $(PKG)_BUILD
+    $(OCTAVE_FORGE_PKG_BUILD)
+endef