Mercurial > mxe-octave
diff src/of-video.mk @ 4073:03ed5810b068
of-video: add video package
* src/of-video.mk: new file
* src/of-video-1-fixes.patch: new file
* Makefile.in: add of-video to forge packages
* index.html: add of-video package
author | John Donoghue |
---|---|
date | Wed, 06 Jan 2016 15:59:32 -0500 |
parents | |
children | ab391f476b81 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/of-video.mk Wed Jan 06 15:59:32 2016 -0500 @@ -0,0 +1,29 @@ +# This file is part of MXE. +# See index.html for further information. + +PKG := of-video +$(PKG)_IGNORE := +$(PKG)_VERSION := 1.2.1 +$(PKG)_CHECKSUM := dbefd278e272fcd9a79d2edc4b00df37735b103a +$(PKG)_REMOTE_SUBDIR := +$(PKG)_SUBDIR := video-$($(PKG)_VERSION) +$(PKG)_FILE := $($(PKG)_SUBDIR).tar.gz +$(PKG)_URL := '$(OCTAVE_FORGE_BASE_URL)/$($(PKG)_FILE)/download' +$(PKG)_DEPS := ffmpeg + + +ifeq ($(MXE_SYSTEM),mingw) +$(PKG)_OPTIONS := ac_cv_func_realloc_0_nonnull=yes ac_cv_func_malloc_0_nonnull=yes +else +$(PKG)_OPTIONS := +endif + +define $(PKG)_UPDATE + $(WGET) -q -O- 'http://$(SOURCEFORGE_MIRROR)/projects/octave/files/Octave%20Forge%20Packages/Individual%20Package%20Releases/' | \ + $(SED) -n 's,.*title="video-\([0-9][^"]*\).tar.gz".*,\1,p' | \ + head -1 +endef + +define $(PKG)_BUILD + $(call OCTAVE_FORGE_PKG_BUILD,$(1),$(2),$(3),$($(PKG)_OPTIONS)) +endef