summaryrefslogtreecommitdiffstats
path: root/contrib/pthreadw32/module.defs
diff options
context:
space:
mode:
authorBradley Sepos <[email protected]>2016-06-21 22:07:11 -0400
committerBradley Sepos <[email protected]>2016-06-21 22:18:47 -0400
commit2fa833e52ba7aded4f41ea855e7ce86e45635bf4 (patch)
tree2abdb996078360d83527e387957c68a0da2e46d3 /contrib/pthreadw32/module.defs
parent36c415e26e9fd28239655373e594b244fde637ea (diff)
contrib: Update to pthreads-win32 2.9.1.
Diffstat (limited to 'contrib/pthreadw32/module.defs')
-rw-r--r--contrib/pthreadw32/module.defs20
1 files changed, 13 insertions, 7 deletions
diff --git a/contrib/pthreadw32/module.defs b/contrib/pthreadw32/module.defs
index 663f8dbec..0e4a06a1d 100644
--- a/contrib/pthreadw32/module.defs
+++ b/contrib/pthreadw32/module.defs
@@ -1,21 +1,27 @@
$(eval $(call import.MODULE.defs,PTHREADW32,pthreadw32))
$(eval $(call import.CONTRIB.defs,PTHREADW32))
-# TODO: Unknown upstream url
-PTHREADW32.FETCH.url = http://download.handbrake.fr/handbrake/contrib/pthreads-w32-cvs20100909.tar.bz2
-PTHREADW32.FETCH.md5 = d1dea735b53176567e9841ca77388633
+PTHREADW32.FETCH.url = http://download.handbrake.fr/handbrake/contrib/pthreads-w32-2-9-1-release.tar.gz
+PTHREADW32.FETCH.url += ftp://sourceware.org/pub/pthreads-win32/pthreads-w32-2-9-1-release.tar.gz
+PTHREADW32.FETCH.md5 = 36ba827d6aa0fa9f9ae740a35626e2e3
+PTHREADW32.CONFIGURE.bootstrap = make realclean;
PTHREADW32.CONFIGURE = $(TOUCH.exe) $@
-PTHREADW32.BUILD.extra = target=$(BUILD.cross.prefix) clean GC-static
-PTHREADW32.BUILD.ntargets = clean GC-static
+PTHREADW32.BUILD.extra = CROSS=$(BUILD.cross.prefix) realclean GC-static
+PTHREADW32.BUILD.ntargets = realclean GC-static
define PTHREADW32.INSTALL
- $(CP.exe) $(PTHREADW32.EXTRACT.dir/)libpthreadGC2.a $(CONTRIB.build/)lib/
$(CP.exe) $(PTHREADW32.EXTRACT.dir/)pthread.h $(CONTRIB.build/)include/
- $(CP.exe) $(PTHREADW32.EXTRACT.dir/)pthreads_win32_config.h $(CONTRIB.build/)include/
+ $(SED.exe) -i.sedbak -e 's/ __declspec (dllexport)//g' -e 's/ __declspec (dllimport)//g' $(CONTRIB.build/)include/pthread.h
+ $(RM.exe) -f $(CONTRIB.build/)include/pthread.h.sedbak
$(CP.exe) $(PTHREADW32.EXTRACT.dir/)sched.h $(CONTRIB.build/)include/
+ $(SED.exe) -i.sedbak -e 's/ __declspec (dllexport)//g' -e 's/ __declspec (dllimport)//g' $(CONTRIB.build/)include/sched.h
+ $(RM.exe) -f $(CONTRIB.build/)include/sched.h.sedbak
$(CP.exe) $(PTHREADW32.EXTRACT.dir/)semaphore.h $(CONTRIB.build/)include/
+ $(SED.exe) -i.sedbak -e 's/ __declspec (dllexport)//g' -e 's/ __declspec (dllimport)//g' $(CONTRIB.build/)include/semaphore.h
+ $(RM.exe) -f $(CONTRIB.build/)include/semaphore.h.sedbak
+ $(CP.exe) $(PTHREADW32.EXTRACT.dir/)libpthreadGC2.a $(CONTRIB.build/)lib/
$(LN.exe) -sf ./libpthreadGC2.a $(CONTRIB.build/)lib/libpthread.a
$(TOUCH.exe) $@
endef