mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 03:00:19 +08:00
[pthreads] Fixed whitespaces in path issue (#31179)
* quotes * Updated version * move static patch filenames to vcpkg_from_sourceforge()
This commit is contained in:
parent
c0b1007fe7
commit
13a0b7ba8d
@ -17,8 +17,6 @@ else()
|
||||
list(APPEND PATCH_FILES use-mt.patch)
|
||||
endif()
|
||||
|
||||
list(APPEND PATCH_FILES fix-pthread_getname_np.patch fix-install.patch)
|
||||
|
||||
vcpkg_from_sourceforge(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO pthreads4w
|
||||
@ -27,6 +25,9 @@ vcpkg_from_sourceforge(
|
||||
PATCHES
|
||||
fix-arm-macro.patch
|
||||
fix-arm64-version_rc.patch # https://sourceforge.net/p/pthreads4w/code/merge-requests/6/
|
||||
fix-pthread_getname_np.patch
|
||||
fix-install.patch
|
||||
whitespace_in_path.patch
|
||||
${PATCH_FILES}
|
||||
)
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "pthreads",
|
||||
"version": "3.0.0",
|
||||
"port-version": 13,
|
||||
"port-version": 14,
|
||||
"description": "Meta-package that provides PThreads4W on Windows, or assumes presence of system pthreads on POSIX systems.",
|
||||
"homepage": "https://sourceforge.net/projects/pthreads4w/",
|
||||
"license": "Apache-2.0",
|
||||
|
27
ports/pthreads/whitespace_in_path.patch
Normal file
27
ports/pthreads/whitespace_in_path.patch
Normal file
@ -0,0 +1,27 @@
|
||||
--- a/Makefile Sat Apr 29 09:21:07 2023
|
||||
+++ b/Makefile Sat Apr 29 09:19:07 2023
|
||||
@@ -223,15 +223,15 @@
|
||||
|
||||
# Very basic install. It assumes "realclean" was done just prior to build target.
|
||||
install:
|
||||
- if not exist $(DLLDEST) mkdir $(DLLDEST)
|
||||
- if not exist $(LIBDEST) mkdir $(LIBDEST)
|
||||
- if not exist $(HDRDEST) mkdir $(HDRDEST)
|
||||
- if exist pthreadV*.dll copy pthreadV*.dll $(DLLDEST)
|
||||
- if exist pthreadV*.lib copy pthreadV*.lib $(LIBDEST)
|
||||
- copy _ptw32.h $(HDRDEST)
|
||||
- copy pthread.h $(HDRDEST)
|
||||
- copy sched.h $(HDRDEST)
|
||||
- copy semaphore.h $(HDRDEST)
|
||||
+ if not exist "$(DLLDEST)" mkdir "$(DLLDEST)"
|
||||
+ if not exist "$(LIBDEST)" mkdir "$(LIBDEST)"
|
||||
+ if not exist "$(HDRDEST)" mkdir "$(HDRDEST)"
|
||||
+ if exist pthreadV*.dll copy pthreadV*.dll "$(DLLDEST)"
|
||||
+ if exist pthreadV*.lib copy pthreadV*.lib "$(LIBDEST)"
|
||||
+ copy _ptw32.h "$(HDRDEST)"
|
||||
+ copy pthread.h "$(HDRDEST)"
|
||||
+ copy sched.h "$(HDRDEST)"
|
||||
+ copy semaphore.h "$(HDRDEST)"
|
||||
|
||||
$(DLLS): $(DLL_OBJS)
|
||||
$(CC) /LDd /Zi $(DLL_OBJS) /link /implib:$*.lib $(XLIBS) /out:$@
|
@ -6386,7 +6386,7 @@
|
||||
},
|
||||
"pthreads": {
|
||||
"baseline": "3.0.0",
|
||||
"port-version": 13
|
||||
"port-version": 14
|
||||
},
|
||||
"ptyqt": {
|
||||
"baseline": "0.6.5",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "2e0a6df2800d3677b941dc6504f083965b7886d9",
|
||||
"version": "3.0.0",
|
||||
"port-version": 14
|
||||
},
|
||||
{
|
||||
"git-tree": "f4037e12c8075b814cab20c65509b49bd7f59257",
|
||||
"version": "3.0.0",
|
||||
|
Loading…
Reference in New Issue
Block a user