annotate src/gl2ps.mk @ 4050:8d7b7eb20e90

upgrade gl2ps to version 1.3.9 *gl2ps.mk: update version and checksum
author Avinoam
date Tue, 20 Oct 2015 20:04:01 +0300
parents 38fb4dfff1fa
children fd68c5ebc5c0
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
4050
8d7b7eb20e90 upgrade gl2ps to version 1.3.9
Avinoam
parents: 4009
diff changeset
5 $(PKG)_VERSION := 1.3.9
8d7b7eb20e90 upgrade gl2ps to version 1.3.9
Avinoam
parents: 4009
diff changeset
6 $(PKG)_CHECKSUM := 3a827b0f5f6199011153f76c5617d445e8369baa
3275
3d985d5d48ec gl2ps: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)-source
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
3275
3d985d5d48ec gl2ps: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11
3277
1418183e786b Enable native mingw build of gl2ps
John Donoghue <john.donoghue@ieee.org>
parents: 3275
diff changeset
12 ifeq ($(MXE_NATIVE_MINGW_BUILD),yes)
3295
14d0e2102581 [MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3278
diff changeset
13 ifeq ($(MXE_SYSTEM),msvc)
14d0e2102581 [MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3278
diff changeset
14 $(PKG)_CMAKE_FLAGS := -G 'NMake Makefiles'
14d0e2102581 [MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3278
diff changeset
15 endif
3277
1418183e786b Enable native mingw build of gl2ps
John Donoghue <john.donoghue@ieee.org>
parents: 3275
diff changeset
16 endif
1418183e786b Enable native mingw build of gl2ps
John Donoghue <john.donoghue@ieee.org>
parents: 3275
diff changeset
17
3275
3d985d5d48ec gl2ps: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18 define $(PKG)_UPDATE
3d985d5d48ec gl2ps: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19 echo 'Warning: Updates are temporarily disabled for package octave.' >&2;
3d985d5d48ec gl2ps: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20 echo $(gl2ps_VERSION)
3d985d5d48ec gl2ps: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21 endef
3d985d5d48ec gl2ps: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22
3295
14d0e2102581 [MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3278
diff changeset
23 ifeq ($(MXE_SYSTEM),msvc)
3834
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents: 3830
diff changeset
24 define $(PKG)_BUILD
3295
14d0e2102581 [MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3278
diff changeset
25 cd '$(1)' && cmake \
14d0e2102581 [MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3278
diff changeset
26 $($(PKG)_CMAKE_FLAGS) \
14d0e2102581 [MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3278
diff changeset
27 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \
14d0e2102581 [MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3278
diff changeset
28 -DPNG_NAMES=png16 \
14d0e2102581 [MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3278
diff changeset
29 .
14d0e2102581 [MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3278
diff changeset
30 cd '$(1)' && env -u MAKE -u MAKEFLAGS nmake
14d0e2102581 [MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3278
diff changeset
31 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
32 endef
3971
e1e6cb9b8b44 gl2ps: add dependancies, rule for msys2
John Donoghue
parents: 3848
diff changeset
33 else ifeq ($(MXE_NATIVE_MINGW_BUILD),yes)
e1e6cb9b8b44 gl2ps: add dependancies, rule for msys2
John Donoghue
parents: 3848
diff changeset
34 define $(PKG)_BUILD
e1e6cb9b8b44 gl2ps: add dependancies, rule for msys2
John Donoghue
parents: 3848
diff changeset
35 mkdir '$(1)/.build'
e1e6cb9b8b44 gl2ps: add dependancies, rule for msys2
John Donoghue
parents: 3848
diff changeset
36 cd '$(1)' && autoreconf --force
e1e6cb9b8b44 gl2ps: add dependancies, rule for msys2
John Donoghue
parents: 3848
diff changeset
37 cd '$(1)/.build' && ../configure \
e1e6cb9b8b44 gl2ps: add dependancies, rule for msys2
John Donoghue
parents: 3848
diff changeset
38 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
e1e6cb9b8b44 gl2ps: add dependancies, rule for msys2
John Donoghue
parents: 3848
diff changeset
39 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
e1e6cb9b8b44 gl2ps: add dependancies, rule for msys2
John Donoghue
parents: 3848
diff changeset
40 $(ENABLE_SHARED_OR_STATIC) \
e1e6cb9b8b44 gl2ps: add dependancies, rule for msys2
John Donoghue
parents: 3848
diff changeset
41 --prefix='$(HOST_PREFIX)' \
e1e6cb9b8b44 gl2ps: add dependancies, rule for msys2
John Donoghue
parents: 3848
diff changeset
42 LIBS=-lopengl32 \
e1e6cb9b8b44 gl2ps: add dependancies, rule for msys2
John Donoghue
parents: 3848
diff changeset
43 && $(CONFIGURE_POST_HOOK)
e1e6cb9b8b44 gl2ps: add dependancies, rule for msys2
John Donoghue
parents: 3848
diff changeset
44 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' LDFLAGS='-no-undefined -L$(HOST_LIBDIR)'
e1e6cb9b8b44 gl2ps: add dependancies, rule for msys2
John Donoghue
parents: 3848
diff changeset
45 $(MAKE) -C '$(1)/.build' -j 1 install DESTDIR='$(3)'
e1e6cb9b8b44 gl2ps: add dependancies, rule for msys2
John Donoghue
parents: 3848
diff changeset
46 endef
3295
14d0e2102581 [MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3278
diff changeset
47 else
3834
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents: 3830
diff changeset
48 ifeq ($(MXE_SYSTEM),mingw)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents: 3830
diff changeset
49 define $(PKG)_BUILD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents: 3830
diff changeset
50 cd '$(1)' && cmake \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents: 3830
diff changeset
51 $($(PKG)_CMAKE_FLAGS) \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents: 3830
diff changeset
52 -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
53 .
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents: 3830
diff changeset
54 $(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
55
3834
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents: 3830
diff changeset
56 # 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
57 # 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
58 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
59 $(INSTALL) -d '$(3)$(HOST_LIBDIR)'; \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents: 3830
diff changeset
60 $(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
61 $(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
62 $(INSTALL) -d '$(3)$(HOST_BINDIR)'; \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents: 3830
diff changeset
63 $(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
64 $(INSTALL) -d '$(3)$(HOST_INCDIR)'; \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents: 3830
diff changeset
65 $(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
66 else \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents: 3830
diff changeset
67 $(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
68 if [ $(MXE_SYSTEM) = mingw ]; then \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents: 3830
diff changeset
69 echo "Install dll"; \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents: 3830
diff changeset
70 $(INSTALL) -d '$(3)$(HOST_BINDIR)'; \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents: 3830
diff changeset
71 $(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
72 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
73 fi; \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents: 3830
diff changeset
74 fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents: 3830
diff changeset
75 endef
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents: 3830
diff changeset
76 else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents: 3830
diff changeset
77 define $(PKG)_BUILD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents: 3830
diff changeset
78 mkdir '$(1)/.build'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents: 3830
diff changeset
79 cd '$(1)' && autoreconf --force
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents: 3830
diff changeset
80 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
81 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents: 3830
diff changeset
82 $(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
83 --prefix='$(HOST_PREFIX)' \
3834
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents: 3830
diff changeset
84 && $(CONFIGURE_POST_HOOK)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents: 3830
diff changeset
85
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents: 3830
diff changeset
86 $(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
87 $(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
88 endef
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents: 3830
diff changeset
89 endif
3295
14d0e2102581 [MSVC] Enable gl2ps compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3278
diff changeset
90 endif
3834
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents: 3830
diff changeset
91
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents: 3830
diff changeset
92