annotate src/pthreads.mk @ 3705:d30ced3f489e

libpng: update to 1.6.13
author John W. Eaton <jwe@octave.org>
date Tue, 02 Sep 2014 11:45:16 -0400
parents 13be64f9f16d
children c7c1065c12e0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2333
f653602a0500 Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents: 1390
diff changeset
1 # This file is part of MXE.
2353
99516e73b368 Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents: 2349
diff changeset
2 # See index.html for further information.
938
795dbc19e055 detangle package pthreads from package gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
3
795dbc19e055 detangle package pthreads from package gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 PKG := pthreads
795dbc19e055 detangle package pthreads from package gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5 $(PKG)_IGNORE :=
3480
13be64f9f16d move version info from index.html to src/*.mk files
John W. Eaton <jwe@octave.org>
parents: 3048
diff changeset
6 $(PKG)_VERSION := 2-9-1
2559
480cba57f1bf update package pthreads
Mark Brand <mabrand@mabrand.nl>
parents: 2525
diff changeset
7 $(PKG)_CHECKSUM := 24d40e89c2e66a765733e8c98d6f94500343da86
938
795dbc19e055 detangle package pthreads from package gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
8 $(PKG)_SUBDIR := pthreads-w32-$($(PKG)_VERSION)-release
795dbc19e055 detangle package pthreads from package gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
9 $(PKG)_FILE := pthreads-w32-$($(PKG)_VERSION)-release.tar.gz
795dbc19e055 detangle package pthreads from package gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
10 $(PKG)_URL := ftp://sourceware.org/pub/pthreads-win32/$($(PKG)_FILE)
3048
5ef49fb3299d treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents: 3031
diff changeset
11 $(PKG)_DEPS :=
938
795dbc19e055 detangle package pthreads from package gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12
795dbc19e055 detangle package pthreads from package gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13 define $(PKG)_UPDATE
2803
bd0fe0e0dac1 package pthreads: fix update macro
Mark Brand <mabrand@mabrand.nl>
parents: 2559
diff changeset
14 $(WGET) -q -O- 'ftp://sourceware.org/pub/pthreads-win32/dll-latest/include/pthread.h' | \
bd0fe0e0dac1 package pthreads: fix update macro
Mark Brand <mabrand@mabrand.nl>
parents: 2559
diff changeset
15 $(SED) -n 's/^#define PTW32_VERSION \([^,]*\),\([^,]*\),\([^,]*\),.*/\1-\2-\3/p;'
938
795dbc19e055 detangle package pthreads from package gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 endef
795dbc19e055 detangle package pthreads from package gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17
3028
d024ce7bdaf0 Update pthread for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3014
diff changeset
18 ifeq ($(MXE_NATIVE_MINGW_BUILD),yes)
d024ce7bdaf0 Update pthread for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3014
diff changeset
19 define $(PKG)_BUILD
d024ce7bdaf0 Update pthread for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3014
diff changeset
20 $(MAKE) -C '$(1)' -j 1 GC-static
d024ce7bdaf0 Update pthread for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3014
diff changeset
21 $(INSTALL) -d '$(HOST_LIBDIR)'
d024ce7bdaf0 Update pthread for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3014
diff changeset
22 $(INSTALL) -m644 '$(1)/libpthreadGC2.a' '$(HOST_LIBDIR)/libpthread.a'
d024ce7bdaf0 Update pthread for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3014
diff changeset
23
d024ce7bdaf0 Update pthread for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3014
diff changeset
24 if [ $(BUILD_SHARED) = yes ]; then \
d024ce7bdaf0 Update pthread for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3014
diff changeset
25 $(MAKE_SHARED_FROM_STATIC) --ar '$(MXE_AR)' --ld '$(MXE_CC)' '$(HOST_LIBDIR)/libpthread.a' --install '$(INSTALL)' --libdir '$(HOST_LIBDIR)' --bindir '$(HOST_BINDIR)'; \
d024ce7bdaf0 Update pthread for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3014
diff changeset
26 fi
d024ce7bdaf0 Update pthread for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3014
diff changeset
27
d024ce7bdaf0 Update pthread for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3014
diff changeset
28 $(INSTALL) -d '$(HOST_INCDIR)'
d024ce7bdaf0 Update pthread for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3014
diff changeset
29 $(INSTALL) -m644 '$(1)/pthread.h' '$(HOST_INCDIR)'
d024ce7bdaf0 Update pthread for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3014
diff changeset
30 $(INSTALL) -m644 '$(1)/sched.h' '$(HOST_INCDIR)'
d024ce7bdaf0 Update pthread for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3014
diff changeset
31 $(INSTALL) -m644 '$(1)/semaphore.h' '$(HOST_INCDIR)'
d024ce7bdaf0 Update pthread for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3014
diff changeset
32 endef
d024ce7bdaf0 Update pthread for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3014
diff changeset
33
d024ce7bdaf0 Update pthread for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3014
diff changeset
34 else
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2886
diff changeset
35 ifeq ($(MXE_SYSTEM),mingw)
938
795dbc19e055 detangle package pthreads from package gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
36 define $(PKG)_BUILD
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3028
diff changeset
37 $(MAKE) -C '$(1)' -j 1 GC-static CROSS='$(MXE_TOOL_PREFIX)'
3014
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 2997
diff changeset
38 $(INSTALL) -d '$(HOST_LIBDIR)'
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 2997
diff changeset
39 $(INSTALL) -m644 '$(1)/libpthreadGC2.a' '$(HOST_LIBDIR)/libpthread.a'
2886
b11464811f7f build shared library for pthreads
John W. Eaton <jwe@octave.org>
parents: 2803
diff changeset
40
b11464811f7f build shared library for pthreads
John W. Eaton <jwe@octave.org>
parents: 2803
diff changeset
41 if [ $(BUILD_SHARED) = yes ]; then \
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3028
diff changeset
42 $(MAKE_SHARED_FROM_STATIC) --ar '$(MXE_AR)' --ld '$(MXE_CC)' '$(HOST_LIBDIR)/libpthread.a' --install '$(INSTALL)' --libdir '$(HOST_LIBDIR)' --bindir '$(HOST_BINDIR)'; \
2886
b11464811f7f build shared library for pthreads
John W. Eaton <jwe@octave.org>
parents: 2803
diff changeset
43 fi
b11464811f7f build shared library for pthreads
John W. Eaton <jwe@octave.org>
parents: 2803
diff changeset
44
3014
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 2997
diff changeset
45 $(INSTALL) -d '$(HOST_INCDIR)'
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 2997
diff changeset
46 $(INSTALL) -m644 '$(1)/pthread.h' '$(HOST_INCDIR)'
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 2997
diff changeset
47 $(INSTALL) -m644 '$(1)/sched.h' '$(HOST_INCDIR)'
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 2997
diff changeset
48 $(INSTALL) -m644 '$(1)/semaphore.h' '$(HOST_INCDIR)'
938
795dbc19e055 detangle package pthreads from package gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
49 endef
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2886
diff changeset
50 else
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2886
diff changeset
51 define $(PKG)_BUILD
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2886
diff changeset
52 endef
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2886
diff changeset
53 endif
3028
d024ce7bdaf0 Update pthread for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3014
diff changeset
54 endif