diff options
author | Volker Grabsch <vog@notjusthosting.com> | 2008-11-08 15:46:34 (GMT) |
---|---|---|
committer | Volker Grabsch <vog@notjusthosting.com> | 2008-11-08 15:46:34 (GMT) |
commit | 1acb8f5e005ef02d5c402061c27488132766dcdf (patch) | |
tree | 8696c5e4b203208547cd268384c195d98de5c009 /src | |
parent | e6ea73ceac6fd8a522947c8fd14f6d5bc545d109 (diff) | |
download | mxe-1acb8f5e005ef02d5c402061c27488132766dcdf.zip mxe-1acb8f5e005ef02d5c402061c27488132766dcdf.tar.gz mxe-1acb8f5e005ef02d5c402061c27488132766dcdf.tar.bz2 |
translated package: pthreads
Diffstat (limited to 'src')
-rw-r--r-- | src/pthreads.mk | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/pthreads.mk b/src/pthreads.mk new file mode 100644 index 0000000..ac3cf28 --- /dev/null +++ b/src/pthreads.mk @@ -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 |