# HG changeset patch # User John Donoghue # Date 1436316226 14400 # Node ID cdbce8086eaaba60544e2f15030d5740338cea97 # Parent 5b8ff612595a1750b4748055aa3537b0f8906624 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 diff -r 5b8ff612595a -r cdbce8086eaa Makefile.in --- 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))) diff -r 5b8ff612595a -r cdbce8086eaa build_packages.m --- 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 diff -r 5b8ff612595a -r cdbce8086eaa dist-files.mk --- 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 \ diff -r 5b8ff612595a -r cdbce8086eaa index.html --- 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 @@ Octave Forge nurbs package + of-ocs + Octave Forge ocs package + + of-octcdf Octave Forge octcdf package diff -r 5b8ff612595a -r cdbce8086eaa src/of-ocs-1-cross-fixes.patch --- /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 *~ diff -r 5b8ff612595a -r cdbce8086eaa src/of-ocs.mk --- /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