From 1acb8f5e005ef02d5c402061c27488132766dcdf Mon Sep 17 00:00:00 2001 From: Volker Grabsch Date: Sat, 8 Nov 2008 16:46:34 +0100 Subject: translated package: pthreads --- src/pthreads.mk | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/pthreads.mk 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 -- cgit v0.12