Skip to content

Commit

Permalink
Adding pthreads packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
cpiker committed Nov 6, 2023
1 parent fcf0cee commit 9085c8e
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 0 deletions.
13 changes: 13 additions & 0 deletions buildfiles/conda_pthread4w/0001_change_install_dest.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff -ruN pthreads4w-code-07053a521b0a9deb6db2a649cde1f828f2eb1f4f/Makefile pthreads4w-code-new/Makefile
--- pthreads4w-code-07053a521b0a9deb6db2a649cde1f828f2eb1f4f/Makefile 2018-08-08 05:47:40.000000000 -0500
+++ pthreads4w-code-new/Makefile 2019-04-26 14:14:15.719088066 -0500
@@ -8,7 +8,8 @@
PTW32_VER = 3$(EXTRAVERSION)
PTW32_VER_DEBUG= $(PTW32_VER)d

-DESTROOT = ..\PTHREADS-BUILT
+# DESTROOT = ..\PTHREADS-BUILT
+DESTROOT = $(PREFIX)

DLLDEST = $(DESTROOT)\bin
LIBDEST = $(DESTROOT)\lib
7 changes: 7 additions & 0 deletions buildfiles/conda_pthread4w/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
nmake /E clean VC
nmake /E clean VC-debug
nmake /E clean VC-static
nmake /E clean VC-static-debug
nmake install


49 changes: 49 additions & 0 deletions buildfiles/conda_pthread4w/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# To upload this file after building...
#
# anaconda login
# cd \programdata\miniconda3\conda-bld\win-64
# anaconda upload -u dasdevelopers pthreads4w-3.0.0-hfa6e2cd_0.tar.bz2
#
# To use this package
# conda install -c dasdevelopers pthreads4w



{% set name = "pthreads4w" %}
{% set version = "3.0.0" %}
{% set sha256 = "b86741aa1c4600905ed3cb642269225f9ccee17c864e8b2448f730c3680c1966" %}


package:
name: {{ name }}
version: {{ version }}

source:
fn: pthreads4w-{{ version }}.tar.gz
url: http://das2.org/das2py/files/pthreads4w-{{ version }}.tar.gz
sha256: {{ sha256 }}

build:
# This is the zeroth build
number: 0

test:
commands:
- if not exist %LIBRARY_INC%\pthread.h exit 1
- if not exist %LIBRARY_BIN%\pthreadVC3.dll exit 1
- if not exist %LIBRARY_LIB%\pthreadVC3.lib exit 1
- if not exist %LIBRARY_BIN%\pthreadVC3d.dll exit 1
- if not exist %LIBRARY_LIB%\pthreadVC3d.lib exit 1
- if not exist %LIBRARY_LIB%\libpthreadVC3.lib exit 1
- if not exist %LIBRARY_LIB%\libpthreadVC3d.lib exit 1

about:
home: https://sourceforge.net/projects/pthreads4w/
license: APACHE
license_file: LICENSE
summary: An implementation of the POSIX threads API for Windows

requirements:
build:
- {{ compiler('c') }}

0 comments on commit 9085c8e

Please sign in to comment.