diff --git a/buildfiles/conda_pthread4w/0001_change_install_dest.patch b/buildfiles/conda_pthread4w/0001_change_install_dest.patch new file mode 100644 index 0000000..cb6e2d3 --- /dev/null +++ b/buildfiles/conda_pthread4w/0001_change_install_dest.patch @@ -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 diff --git a/buildfiles/conda_pthread4w/bld.bat b/buildfiles/conda_pthread4w/bld.bat new file mode 100644 index 0000000..ed7f5c2 --- /dev/null +++ b/buildfiles/conda_pthread4w/bld.bat @@ -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 + + diff --git a/buildfiles/conda_pthread4w/meta.yaml b/buildfiles/conda_pthread4w/meta.yaml new file mode 100644 index 0000000..6c812cf --- /dev/null +++ b/buildfiles/conda_pthread4w/meta.yaml @@ -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') }} +