Mercurial > mxe-octave
annotate src/gl2ps.mk @ 4555:c2d59e7a4ad3
libtool, fontconfig update
* src/build-libtool.mk, src/libtool.mk: update version, checksum
* src/fontconfig.mk: update version, checksum
* src/hdf5.mk: call aclocal and libttolize in build
* src/gl2ps.mk: call aclocal and libttolize in build
author | John D |
---|---|
date | Tue, 28 Nov 2017 15:43:53 -0500 |
parents | 903796b2fcb6 |
children | 384ce61b7d4b |
rev | line source |
---|---|
3275 | 1 # This file is part of MXE. |
2 # See index.html for further information. | |
3 | |
4 PKG := gl2ps | |
4419 | 5 $(PKG)_VERSION := 1.4.0 |
6 $(PKG)_CHECKSUM := a39a93d75050b9ee98bde4fc47bf6d9162bfc5cd | |
3275 | 7 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)-source |
8 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tgz | |
9 $(PKG)_URL := http://geuz.org/$(PKG)/src/$($(PKG)_FILE) | |
3971 | 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 | 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 | 21 define $(PKG)_UPDATE |
22 echo 'Warning: Updates are temporarily disabled for package octave.' >&2; | |
23 echo $(gl2ps_VERSION) | |
24 endef | |
25 | |
3295
14d0e2102581
[MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3278
diff
changeset
|
26 ifeq ($(MXE_SYSTEM),msvc) |
3834
291c610413cd
use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
3830
diff
changeset
|
27 define $(PKG)_BUILD |
3295
14d0e2102581
[MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3278
diff
changeset
|
28 cd '$(1)' && cmake \ |
14d0e2102581
[MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3278
diff
changeset
|
29 $($(PKG)_CMAKE_FLAGS) \ |
14d0e2102581
[MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3278
diff
changeset
|
30 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ |
14d0e2102581
[MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3278
diff
changeset
|
31 -DPNG_NAMES=png16 \ |
14d0e2102581
[MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3278
diff
changeset
|
32 . |
14d0e2102581
[MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3278
diff
changeset
|
33 cd '$(1)' && env -u MAKE -u MAKEFLAGS nmake |
14d0e2102581
[MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3278
diff
changeset
|
34 cd '$(1)' && env -u MAKE -u MAKEFLAGS nmake DESTDIR='$(3)' install |
3834
291c610413cd
use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
3830
diff
changeset
|
35 endef |
3971 | 36 else ifeq ($(MXE_NATIVE_MINGW_BUILD),yes) |
37 define $(PKG)_BUILD | |
38 mkdir '$(1)/.build' | |
39 cd '$(1)' && autoreconf --force | |
40 cd '$(1)/.build' && ../configure \ | |
41 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ | |
42 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ | |
43 $(ENABLE_SHARED_OR_STATIC) \ | |
44 --prefix='$(HOST_PREFIX)' \ | |
45 LIBS=-lopengl32 \ | |
46 && $(CONFIGURE_POST_HOOK) | |
47 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' LDFLAGS='-no-undefined -L$(HOST_LIBDIR)' | |
48 $(MAKE) -C '$(1)/.build' -j 1 install DESTDIR='$(3)' | |
49 endef | |
3295
14d0e2102581
[MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3278
diff
changeset
|
50 else |
3834
291c610413cd
use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
3830
diff
changeset
|
51 ifeq ($(MXE_SYSTEM),mingw) |
291c610413cd
use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
3830
diff
changeset
|
52 define $(PKG)_BUILD |
291c610413cd
use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
3830
diff
changeset
|
53 cd '$(1)' && cmake \ |
291c610413cd
use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
3830
diff
changeset
|
54 $($(PKG)_CMAKE_FLAGS) \ |
291c610413cd
use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
3830
diff
changeset
|
55 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ |
291c610413cd
use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
3830
diff
changeset
|
56 . |
291c610413cd
use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
3830
diff
changeset
|
57 $(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
|
58 |
3834
291c610413cd
use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
3830
diff
changeset
|
59 # native mingw build doesnt want to install the files, even |
291c610413cd
use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
3830
diff
changeset
|
60 # though it logs that it did |
291c610413cd
use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
3830
diff
changeset
|
61 if [ x$(MXE_NATIVE_MINGW_BUILD) = xyes ]; then \ |
291c610413cd
use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
3830
diff
changeset
|
62 $(INSTALL) -d '$(3)$(HOST_LIBDIR)'; \ |
291c610413cd
use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
3830
diff
changeset
|
63 $(INSTALL) -m644 '$(1)/libgl2ps.a' '$(3)$(HOST_LIBDIR)'; \ |
291c610413cd
use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
3830
diff
changeset
|
64 $(INSTALL) -m644 '$(1)/libgl2ps.dll.a' '$(3)$(HOST_LIBDIR)'; \ |
291c610413cd
use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
3830
diff
changeset
|
65 $(INSTALL) -d '$(3)$(HOST_BINDIR)'; \ |
291c610413cd
use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
3830
diff
changeset
|
66 $(INSTALL) -m644 '$(1)/libgl2ps.dll' '$(3)$(HOST_BINDIR)'; \ |
291c610413cd
use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
3830
diff
changeset
|
67 $(INSTALL) -d '$(3)$(HOST_INCDIR)'; \ |
291c610413cd
use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
3830
diff
changeset
|
68 $(INSTALL) -m644 '$(1)/gl2ps.h' '$(3)$(HOST_INCDIR)'; \ |
291c610413cd
use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
3830
diff
changeset
|
69 else \ |
291c610413cd
use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
3830
diff
changeset
|
70 $(MAKE) -C '$(1)' -j 1 VERBOSE=1 DESTDIR='$(3)' install; \ |
291c610413cd
use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
3830
diff
changeset
|
71 if [ $(MXE_SYSTEM) = mingw ]; then \ |
291c610413cd
use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
3830
diff
changeset
|
72 echo "Install dll"; \ |
291c610413cd
use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
3830
diff
changeset
|
73 $(INSTALL) -d '$(3)$(HOST_BINDIR)'; \ |
291c610413cd
use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
3830
diff
changeset
|
74 $(INSTALL) '$(3)$(HOST_LIBDIR)/libgl2ps.dll' '$(3)$(HOST_BINDIR)/'; \ |
291c610413cd
use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
3830
diff
changeset
|
75 rm -f '$(3)$(HOST_LIBDIR)/libgl2ps.dll'; \ |
291c610413cd
use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
3830
diff
changeset
|
76 fi; \ |
291c610413cd
use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
3830
diff
changeset
|
77 fi |
291c610413cd
use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
3830
diff
changeset
|
78 endef |
291c610413cd
use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
3830
diff
changeset
|
79 else |
291c610413cd
use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
3830
diff
changeset
|
80 define $(PKG)_BUILD |
291c610413cd
use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
3830
diff
changeset
|
81 mkdir '$(1)/.build' |
4555 | 82 cd '$(1)' && aclocal && libtoolize && autoreconf --force |
3834
291c610413cd
use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
3830
diff
changeset
|
83 cd '$(1)/.build' && $($(PKG)_CONFIGURE_ENV) '$(1)/configure' \ |
291c610413cd
use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
3830
diff
changeset
|
84 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ |
291c610413cd
use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
3830
diff
changeset
|
85 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
4009
38fb4dfff1fa
* gl2ps.mk: Correct --prefix for native non-Windows builds.
John W. Eaton <jwe@octave.org>
parents:
3971
diff
changeset
|
86 --prefix='$(HOST_PREFIX)' \ |
3834
291c610413cd
use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
3830
diff
changeset
|
87 && $(CONFIGURE_POST_HOOK) |
291c610413cd
use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
3830
diff
changeset
|
88 |
291c610413cd
use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
3830
diff
changeset
|
89 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' |
291c610413cd
use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
3830
diff
changeset
|
90 $(MAKE) -C '$(1)/.build' -j 1 install DESTDIR='$(3)' |
291c610413cd
use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
3830
diff
changeset
|
91 endef |
291c610413cd
use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
3830
diff
changeset
|
92 endif |
3295
14d0e2102581
[MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3278
diff
changeset
|
93 endif |
3834
291c610413cd
use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
3830
diff
changeset
|
94 |
291c610413cd
use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
3830
diff
changeset
|
95 |