Mercurial > mxe-octave
annotate src/gl2ps.mk @ 3725:2acaa9943159
qscintilla: update 2.8.4
* src/qscintilla.mk: update to version and checksum for 2.8.4
author | John Donoghue |
---|---|
date | Mon, 20 Oct 2014 11:01:00 -0400 |
parents | 13be64f9f16d |
children | 4f58c4b4dee0 |
rev | line source |
---|---|
3275 | 1 # This file is part of MXE. |
2 # See index.html for further information. | |
3 | |
4 PKG := gl2ps | |
3480
13be64f9f16d
move version info from index.html to src/*.mk files
John W. Eaton <jwe@octave.org>
parents:
3324
diff
changeset
|
5 $(PKG)_VERSION := 1.3.8 |
3275 | 6 $(PKG)_CHECKSUM := 792e11db0fe7a30a4dc4491af5098b047ec378b1 |
7 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)-source | |
8 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tgz | |
9 $(PKG)_URL := http://geuz.org/$(PKG)/src/$($(PKG)_FILE) | |
10 $(PKG)_DEPS := | |
11 | |
3277
1418183e786b
Enable native mingw build of gl2ps
John Donoghue <john.donoghue@ieee.org>
parents:
3275
diff
changeset
|
12 |
1418183e786b
Enable native mingw build of gl2ps
John Donoghue <john.donoghue@ieee.org>
parents:
3275
diff
changeset
|
13 ifeq ($(MXE_NATIVE_MINGW_BUILD),yes) |
3295
14d0e2102581
[MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3278
diff
changeset
|
14 ifeq ($(MXE_SYSTEM),msvc) |
14d0e2102581
[MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3278
diff
changeset
|
15 $(PKG)_CMAKE_FLAGS := -G 'NMake Makefiles' |
14d0e2102581
[MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3278
diff
changeset
|
16 else |
14d0e2102581
[MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3278
diff
changeset
|
17 $(PKG)_CMAKE_FLAGS := -G 'MSYS 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 else |
1418183e786b
Enable native mingw build of gl2ps
John Donoghue <john.donoghue@ieee.org>
parents:
3275
diff
changeset
|
20 $(PKG)_CMAKE_FLAGS := \ |
1418183e786b
Enable native mingw build of gl2ps
John Donoghue <john.donoghue@ieee.org>
parents:
3275
diff
changeset
|
21 -DCMAKE_AR='$(MXE_AR)' \ |
1418183e786b
Enable native mingw build of gl2ps
John Donoghue <john.donoghue@ieee.org>
parents:
3275
diff
changeset
|
22 -DCMAKE_RANLIB='$(MXE_RANLIB)' |
1418183e786b
Enable native mingw build of gl2ps
John Donoghue <john.donoghue@ieee.org>
parents:
3275
diff
changeset
|
23 endif |
1418183e786b
Enable native mingw build of gl2ps
John Donoghue <john.donoghue@ieee.org>
parents:
3275
diff
changeset
|
24 |
3275 | 25 define $(PKG)_UPDATE |
26 echo 'Warning: Updates are temporarily disabled for package octave.' >&2; | |
27 echo $(gl2ps_VERSION) | |
28 endef | |
29 | |
3295
14d0e2102581
[MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3278
diff
changeset
|
30 ifeq ($(MXE_SYSTEM),msvc) |
14d0e2102581
[MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3278
diff
changeset
|
31 define $(PKG)_BUILD |
14d0e2102581
[MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3278
diff
changeset
|
32 cd '$(1)' && cmake \ |
14d0e2102581
[MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3278
diff
changeset
|
33 $($(PKG)_CMAKE_FLAGS) \ |
14d0e2102581
[MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3278
diff
changeset
|
34 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ |
14d0e2102581
[MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3278
diff
changeset
|
35 -DPNG_NAMES=png16 \ |
14d0e2102581
[MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3278
diff
changeset
|
36 . |
14d0e2102581
[MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3278
diff
changeset
|
37 cd '$(1)' && env -u MAKE -u MAKEFLAGS nmake |
14d0e2102581
[MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3278
diff
changeset
|
38 cd '$(1)' && env -u MAKE -u MAKEFLAGS nmake DESTDIR='$(3)' install |
14d0e2102581
[MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3278
diff
changeset
|
39 endef |
14d0e2102581
[MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3278
diff
changeset
|
40 else |
3275 | 41 define $(PKG)_BUILD |
42 cd '$(1)' && cmake \ | |
3277
1418183e786b
Enable native mingw build of gl2ps
John Donoghue <john.donoghue@ieee.org>
parents:
3275
diff
changeset
|
43 $($(PKG)_CMAKE_FLAGS) \ |
3275 | 44 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ |
45 . | |
3278
fbf8f71bf1e6
gl2ps: install nativemingw files and bin/dll.
John Donoghue <john.donoghue@ieee.org>
parents:
3277
diff
changeset
|
46 $(MAKE) -C '$(1)' -j '$(JOBS)' VERBOSE=1 |
fbf8f71bf1e6
gl2ps: install nativemingw files and bin/dll.
John Donoghue <john.donoghue@ieee.org>
parents:
3277
diff
changeset
|
47 |
fbf8f71bf1e6
gl2ps: install nativemingw files and bin/dll.
John Donoghue <john.donoghue@ieee.org>
parents:
3277
diff
changeset
|
48 # native mingw build doesnt want to install the files, even |
fbf8f71bf1e6
gl2ps: install nativemingw files and bin/dll.
John Donoghue <john.donoghue@ieee.org>
parents:
3277
diff
changeset
|
49 # though it logs that it did |
fbf8f71bf1e6
gl2ps: install nativemingw files and bin/dll.
John Donoghue <john.donoghue@ieee.org>
parents:
3277
diff
changeset
|
50 if [ x$(MXE_NATIVE_MINGW_BUILD) = xyes ]; then \ |
3308
11b0cdb6fba7
Fix gl2ps native build
John Donoghue <john.donoghue@ieee.org>
parents:
3307
diff
changeset
|
51 $(INSTALL) -d '$(3)$(HOST_LIBDIR)'; \ |
3295
14d0e2102581
[MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3278
diff
changeset
|
52 $(INSTALL) -m644 '$(1)/libgl2ps.a' '$(3)$(HOST_LIBDIR)'; \ |
14d0e2102581
[MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3278
diff
changeset
|
53 $(INSTALL) -m644 '$(1)/libgl2ps.dll.a' '$(3)$(HOST_LIBDIR)'; \ |
3308
11b0cdb6fba7
Fix gl2ps native build
John Donoghue <john.donoghue@ieee.org>
parents:
3307
diff
changeset
|
54 $(INSTALL) -d '$(3)$(HOST_BINDIR)'; \ |
3295
14d0e2102581
[MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3278
diff
changeset
|
55 $(INSTALL) -m644 '$(1)/libgl2ps.dll' '$(3)$(HOST_BINDIR)'; \ |
3308
11b0cdb6fba7
Fix gl2ps native build
John Donoghue <john.donoghue@ieee.org>
parents:
3307
diff
changeset
|
56 $(INSTALL) -d '$(3)$(HOST_INCDIR)'; \ |
3295
14d0e2102581
[MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3278
diff
changeset
|
57 $(INSTALL) -m644 '$(1)/gl2ps.h' '$(3)$(HOST_INCDIR)'; \ |
3278
fbf8f71bf1e6
gl2ps: install nativemingw files and bin/dll.
John Donoghue <john.donoghue@ieee.org>
parents:
3277
diff
changeset
|
58 else \ |
3295
14d0e2102581
[MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3278
diff
changeset
|
59 $(MAKE) -C '$(1)' -j 1 VERBOSE=1 DESTDIR='$(3)' install; \ |
3278
fbf8f71bf1e6
gl2ps: install nativemingw files and bin/dll.
John Donoghue <john.donoghue@ieee.org>
parents:
3277
diff
changeset
|
60 if [ $(MXE_SYSTEM) = mingw ]; then \ |
fbf8f71bf1e6
gl2ps: install nativemingw files and bin/dll.
John Donoghue <john.donoghue@ieee.org>
parents:
3277
diff
changeset
|
61 echo "Install dll"; \ |
3307
6388d5d08c7c
gl2ps: Create HOST_BINDIR before dll install
John Donoghue <john.donoghue@ieee.org>
parents:
3295
diff
changeset
|
62 $(INSTALL) -d '$(3)$(HOST_BINDIR)'; \ |
3324
79b4fa46e4dd
Fix building of gl2ps so it doesn't spray files everywhere.
Rik <rik@octave.org>
parents:
3308
diff
changeset
|
63 $(INSTALL) '$(3)$(HOST_LIBDIR)/libgl2ps.dll' '$(3)$(HOST_BINDIR)/'; \ |
79b4fa46e4dd
Fix building of gl2ps so it doesn't spray files everywhere.
Rik <rik@octave.org>
parents:
3308
diff
changeset
|
64 rm -f '$(3)$(HOST_LIBDIR)/libgl2ps.dll'; \ |
3278
fbf8f71bf1e6
gl2ps: install nativemingw files and bin/dll.
John Donoghue <john.donoghue@ieee.org>
parents:
3277
diff
changeset
|
65 fi; \ |
fbf8f71bf1e6
gl2ps: install nativemingw files and bin/dll.
John Donoghue <john.donoghue@ieee.org>
parents:
3277
diff
changeset
|
66 fi |
3275 | 67 endef |
3295
14d0e2102581
[MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3278
diff
changeset
|
68 endif |