Mercurial > mxe-octave
annotate src/gl2ps.mk @ 3277:1418183e786b
Enable native mingw build of gl2ps
* src/gl2ps.mk: In native mingw, force output for MSYS makefiles and dont set AR, RANLIB.
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Sat, 02 Nov 2013 11:30:58 -0400 |
parents | 3d985d5d48ec |
children | fbf8f71bf1e6 |
rev | line source |
---|---|
3275 | 1 # This file is part of MXE. |
2 # See index.html for further information. | |
3 | |
4 PKG := gl2ps | |
5 $(PKG)_CHECKSUM := 792e11db0fe7a30a4dc4491af5098b047ec378b1 | |
6 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)-source | |
7 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tgz | |
8 $(PKG)_URL := http://geuz.org/$(PKG)/src/$($(PKG)_FILE) | |
9 $(PKG)_DEPS := | |
10 | |
3277
1418183e786b
Enable native mingw build of gl2ps
John Donoghue <john.donoghue@ieee.org>
parents:
3275
diff
changeset
|
11 |
1418183e786b
Enable native mingw build of gl2ps
John Donoghue <john.donoghue@ieee.org>
parents:
3275
diff
changeset
|
12 ifeq ($(MXE_NATIVE_MINGW_BUILD),yes) |
1418183e786b
Enable native mingw build of gl2ps
John Donoghue <john.donoghue@ieee.org>
parents:
3275
diff
changeset
|
13 $(PKG)_CMAKE_FLAGS := -G 'MSYS Makefiles' |
1418183e786b
Enable native mingw build of gl2ps
John Donoghue <john.donoghue@ieee.org>
parents:
3275
diff
changeset
|
14 else |
1418183e786b
Enable native mingw build of gl2ps
John Donoghue <john.donoghue@ieee.org>
parents:
3275
diff
changeset
|
15 $(PKG)_CMAKE_FLAGS := \ |
1418183e786b
Enable native mingw build of gl2ps
John Donoghue <john.donoghue@ieee.org>
parents:
3275
diff
changeset
|
16 -DCMAKE_AR='$(MXE_AR)' \ |
1418183e786b
Enable native mingw build of gl2ps
John Donoghue <john.donoghue@ieee.org>
parents:
3275
diff
changeset
|
17 -DCMAKE_RANLIB='$(MXE_RANLIB)' |
1418183e786b
Enable native mingw build of gl2ps
John Donoghue <john.donoghue@ieee.org>
parents:
3275
diff
changeset
|
18 endif |
1418183e786b
Enable native mingw build of gl2ps
John Donoghue <john.donoghue@ieee.org>
parents:
3275
diff
changeset
|
19 |
3275 | 20 define $(PKG)_UPDATE |
21 echo 'Warning: Updates are temporarily disabled for package octave.' >&2; | |
22 echo $(gl2ps_VERSION) | |
23 endef | |
24 | |
25 define $(PKG)_BUILD | |
26 cd '$(1)' && cmake \ | |
3277
1418183e786b
Enable native mingw build of gl2ps
John Donoghue <john.donoghue@ieee.org>
parents:
3275
diff
changeset
|
27 $($(PKG)_CMAKE_FLAGS) \ |
3275 | 28 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ |
29 . | |
30 $(MAKE) -C '$(1)' -j '$(JOBS)' VERBOSE=1 install | |
31 endef |