Mercurial > mxe-octave
changeset 124:42fb5ddc1b07
translated package: pthreads
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Sat, 08 Nov 2008 16:46:34 +0100 |
parents | 9fedbab70063 |
children | 06648c8f8290 |
files | src/pthreads.mk |
diffstat | 1 files changed, 25 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pthreads.mk Sat Nov 08 16:46:34 2008 +0100 @@ -0,0 +1,25 @@ +# pthreads-w32 +# http://sourceware.org/pthreads-win32/ + +PKG := pthreads +$(PKG)_VERSION := 2-8-0 +$(PKG)_SUBDIR := pthreads-w32-$($(PKG)_VERSION)-release +$(PKG)_FILE := pthreads-w32-$($(PKG)_VERSION)-release.tar.gz +$(PKG)_URL := ftp://sourceware.org/pub/pthreads-win32/$($(PKG)_FILE) +$(PKG)_DEPS := gcc + +define $(PKG)_UPDATE + wget -q -O- 'ftp://sourceware.org/pub/pthreads-win32/Release_notes' | \ + $(SED) -n 's,^RELEASE \([0-9][^[:space:]]*\).*,\1,p' | \ + tr '.' '-' | \ + head -1 +endef + +define $(PKG)_BUILD + $(SED) '35i\#define PTW32_STATIC_LIB' -i '$(2)/pthread.h' + $(MAKE) -C '$(2)' -j '$(JOBS)' GC-static CROSS='$(TARGET)-' + install -d '$(PREFIX)/$(TARGET)/lib' + install -m664 '$(2)/libpthreadGC2.a' '$(PREFIX)/$(TARGET)/lib/libpthread.a' + install -d '$(PREFIX)/$(TARGET)/include' + install -m664 '$(2)/pthread.h' '$(2)/sched.h' '$(2)/semaphore.h' '$(PREFIX)/$(TARGET)/include/' +endef