annotate src/gl2ps.mk @ 5893:53a6c7df43f8

Mesa 3D: Update to version 21.1.8. * src/mesa.mk: Update version and checksum. * src/mesa-2-uninitialized.patch: Remove file. * dist-files.mk: Remove file from list.
author Markus Mützel <markus.muetzel@gmx.de>
date Thu, 16 Sep 2021 22:37:45 +0200
parents b19fb3ed330c
children ad50ef752299
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3275
3d985d5d48ec gl2ps: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1 # This file is part of MXE.
3d985d5d48ec gl2ps: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2 # See index.html for further information.
3d985d5d48ec gl2ps: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3
3d985d5d48ec gl2ps: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4 PKG := gl2ps
5382
70d9ddbf2aa7 gl2ps: update to v1.4.2
John Donoghue <john.donoghue@ieee.org>
parents: 5141
diff changeset
5 $(PKG)_VERSION := 1.4.2
70d9ddbf2aa7 gl2ps: update to v1.4.2
John Donoghue <john.donoghue@ieee.org>
parents: 5141
diff changeset
6 $(PKG)_CHECKSUM := ee1eb8972e9d07bbe325552e4ec15d6828e8197c
70d9ddbf2aa7 gl2ps: update to v1.4.2
John Donoghue <john.donoghue@ieee.org>
parents: 5141
diff changeset
7 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
3275
3d985d5d48ec gl2ps: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tgz
3d985d5d48ec gl2ps: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9 $(PKG)_URL := http://geuz.org/$(PKG)/src/$($(PKG)_FILE)
3971
e1e6cb9b8b44 gl2ps: add dependancies, rule for msys2
John Donoghue
parents: 3848
diff changeset
10 $(PKG)_DEPS := libpng zlib
4496
903796b2fcb6 fltk, gl2ps, xcursor, x11, qtbase: Fix dependencies.
John W. Eaton <jwe@octave.org>
parents: 4419
diff changeset
11 ifeq ($(USE_SYSTEM_OPENGL),no)
903796b2fcb6 fltk, gl2ps, xcursor, x11, qtbase: Fix dependencies.
John W. Eaton <jwe@octave.org>
parents: 4419
diff changeset
12 $(PKG)_DEPS += mesa glu
903796b2fcb6 fltk, gl2ps, xcursor, x11, qtbase: Fix dependencies.
John W. Eaton <jwe@octave.org>
parents: 4419
diff changeset
13 endif
3275
3d985d5d48ec gl2ps: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14
3277
1418183e786b Enable native mingw build of gl2ps
John Donoghue <john.donoghue@ieee.org>
parents: 3275
diff changeset
15 ifeq ($(MXE_NATIVE_MINGW_BUILD),yes)
3295
14d0e2102581 [MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3278
diff changeset
16 ifeq ($(MXE_SYSTEM),msvc)
14d0e2102581 [MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3278
diff changeset
17 $(PKG)_CMAKE_FLAGS := -G 'NMake Makefiles'
14d0e2102581 [MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3278
diff changeset
18 endif
3277
1418183e786b Enable native mingw build of gl2ps
John Donoghue <john.donoghue@ieee.org>
parents: 3275
diff changeset
19 endif
1418183e786b Enable native mingw build of gl2ps
John Donoghue <john.donoghue@ieee.org>
parents: 3275
diff changeset
20
3275
3d985d5d48ec gl2ps: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21 define $(PKG)_UPDATE
5141
2616f5722afe * src/gl2ps.mk: update update rule
John Donoghue
parents: 4819
diff changeset
22 $(WGET) -q -O- 'https://gitlab.onelab.info/gl2ps/gl2ps/-/tags' | \
2616f5722afe * src/gl2ps.mk: update update rule
John Donoghue
parents: 4819
diff changeset
23 $(SED) -n 's/.*>gl2ps_\([0-9]\)_\([0-9]\)_\([0-9]\)<.*/\1\.\2\.\3/p' | \
2616f5722afe * src/gl2ps.mk: update update rule
John Donoghue
parents: 4819
diff changeset
24 $(SORT) -V | tail -1
3275
3d985d5d48ec gl2ps: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
25 endef
3d985d5d48ec gl2ps: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
26
3295
14d0e2102581 [MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3278
diff changeset
27 ifeq ($(MXE_SYSTEM),msvc)
5541
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
28 define $(PKG)_BUILD
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
29 cd '$(1)' && cmake \
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
30 $($(PKG)_CMAKE_FLAGS) \
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
31 $(CMAKE_CCACHE_FLAGS) \
5571
b19fb3ed330c use cmake command line to set build shared/static options (bug #59373)
John W. Eaton <jwe@octave.org>
parents: 5541
diff changeset
32 $(CMAKE_BUILD_SHARED_OR_STATIC) \
5541
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
33 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
34 -DPNG_NAMES=png16 \
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
35 .
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
36 cd '$(1)' && env -u MAKE -u MAKEFLAGS nmake
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
37 cd '$(1)' && env -u MAKE -u MAKEFLAGS nmake DESTDIR='$(3)' install
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
38 endef
3971
e1e6cb9b8b44 gl2ps: add dependancies, rule for msys2
John Donoghue
parents: 3848
diff changeset
39 else ifeq ($(MXE_NATIVE_MINGW_BUILD),yes)
5541
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
40 define $(PKG)_BUILD
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
41 mkdir '$(1)/.build'
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
42 cd '$(1)' && autoreconf --force
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
43 cd '$(1)/.build' && ../configure \
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
44 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
45 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
46 $(ENABLE_SHARED_OR_STATIC) \
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
47 --prefix='$(HOST_PREFIX)' \
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
48 LIBS=-lopengl32 \
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
49 && $(CONFIGURE_POST_HOOK)
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
50 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' LDFLAGS='-no-undefined -L$(HOST_LIBDIR)'
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
51 $(MAKE) -C '$(1)/.build' -j 1 install DESTDIR='$(3)'
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
52 endef
3295
14d0e2102581 [MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3278
diff changeset
53 else
5541
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
54 ifeq ($(MXE_SYSTEM),mingw)
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
55 define $(PKG)_BUILD
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
56 cd '$(1)' && cmake \
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
57 $($(PKG)_CMAKE_FLAGS) \
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
58 $(CMAKE_CCACHE_FLAGS) \
5571
b19fb3ed330c use cmake command line to set build shared/static options (bug #59373)
John W. Eaton <jwe@octave.org>
parents: 5541
diff changeset
59 $(CMAKE_BUILD_SHARED_OR_STATIC) \
5541
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
60 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
61 .
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
62 $(MAKE) -C '$(1)' -j '$(JOBS)' VERBOSE=1
3278
fbf8f71bf1e6 gl2ps: install nativemingw files and bin/dll.
John Donoghue <john.donoghue@ieee.org>
parents: 3277
diff changeset
63
5541
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
64 # native mingw build doesnt want to install the files, even
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
65 # though it logs that it did
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
66 if [ x$(MXE_NATIVE_MINGW_BUILD) = xyes ]; then \
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
67 $(INSTALL) -d '$(3)$(HOST_LIBDIR)'; \
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
68 $(INSTALL) -m644 '$(1)/libgl2ps.a' '$(3)$(HOST_LIBDIR)'; \
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
69 $(INSTALL) -m644 '$(1)/libgl2ps.dll.a' '$(3)$(HOST_LIBDIR)'; \
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
70 $(INSTALL) -d '$(3)$(HOST_BINDIR)'; \
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
71 $(INSTALL) -m644 '$(1)/libgl2ps.dll' '$(3)$(HOST_BINDIR)'; \
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
72 $(INSTALL) -d '$(3)$(HOST_INCDIR)'; \
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
73 $(INSTALL) -m644 '$(1)/gl2ps.h' '$(3)$(HOST_INCDIR)'; \
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
74 else \
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
75 $(MAKE) -C '$(1)' -j 1 VERBOSE=1 DESTDIR='$(3)' install; \
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
76 if [ $(MXE_SYSTEM) = mingw ]; then \
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
77 echo "Install dll"; \
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
78 $(INSTALL) -d '$(3)$(HOST_BINDIR)'; \
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
79 $(INSTALL) '$(3)$(HOST_LIBDIR)/libgl2ps.dll' '$(3)$(HOST_BINDIR)/'; \
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
80 rm -f '$(3)$(HOST_LIBDIR)/libgl2ps.dll'; \
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
81 fi; \
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
82 fi
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
83 endef
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
84 else
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
85 define $(PKG)_BUILD
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
86 mkdir '$(1)/.build'
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
87 cd '$(1)' && aclocal && libtoolize && autoreconf --force
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
88 cd '$(1)/.build' && $($(PKG)_CONFIGURE_ENV) '$(1)/configure' \
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
89 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
90 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
91 --prefix='$(HOST_PREFIX)' \
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
92 && $(CONFIGURE_POST_HOOK)
3834
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents: 3830
diff changeset
93
5541
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
94 $(MAKE) -C '$(1)/.build' -j '$(JOBS)'
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
95 $(MAKE) -C '$(1)/.build' -j 1 install DESTDIR='$(3)'
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
96 endef
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5382
diff changeset
97 endif
3295
14d0e2102581 [MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3278
diff changeset
98 endif
3834
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents: 3830
diff changeset
99
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents: 3830
diff changeset
100