Mercurial > mxe-octave
changeset 1023:7297c0adc12a
new package: xvidcore
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Mon, 31 May 2010 16:26:25 +0200 |
parents | 049c946af329 |
children | 9b3b54b87bf9 |
files | src/xvidcore.mk |
diffstat | 1 files changed, 31 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/xvidcore.mk Mon May 31 16:26:25 2010 +0200 @@ -0,0 +1,31 @@ +# This file is part of mingw-cross-env. +# See doc/index.html for further information. + +# xvidcore +PKG := xvidcore +$(PKG)_IGNORE := +$(PKG)_VERSION := 1.2.2 +$(PKG)_CHECKSUM := d6e73c725b2fe74695f9fd129966c98f81b27fea +$(PKG)_SUBDIR := xvidcore/build/generic +$(PKG)_FILE := xvidcore-$($(PKG)_VERSION).tar.gz +$(PKG)_WEBSITE := http://www.xvid.org/ +$(PKG)_URL := http://downloads.xvid.org/downloads/$($(PKG)_FILE) +$(PKG)_DEPS := gcc pthreads + +define $(PKG)_UPDATE + wget -q -O- 'http://www.xvid.org/' | \ + $(SED) -n 's,.*Xvid \([0-9][^ ]*\) .*,\1,p' | \ + head -1 +endef + +define $(PKG)_BUILD + cd '$(1)' && ./bootstrap.sh && ./configure \ + --host='$(TARGET)' \ + --prefix='$(PREFIX)/$(TARGET)' \ + --disable-assembly + $(MAKE) -C '$(1)' -j '$(JOBS)' BUILD_DIR='build' SHARED_LIB= + $(INSTALL) -d '$(PREFIX)/$(TARGET)/include' + $(INSTALL) -m644 '$(1)/../../src/xvid.h' '$(PREFIX)/$(TARGET)/include/' + $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib' + $(INSTALL) -m644 '$(1)/build/xvidcore.a' '$(PREFIX)/$(TARGET)/lib/' +endef