Mercurial > mxe-octave
annotate src/plotutils.mk @ 3865:4e204ea06bc8
qt.mk: only depend on fontconfig if $(USE_SYSTEM_FONTCONFIG) is set to "no"
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 26 Mar 2015 09:05:37 -0400 |
parents | 58d4bbcb30bc |
children |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
1354
diff
changeset
|
1 # This file is part of MXE. |
2353
99516e73b368
Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents:
2349
diff
changeset
|
2 # See index.html for further information. |
532
a298ac430b8e
new package: plotutils (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
3 |
a298ac430b8e
new package: plotutils (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
4 PKG := plotutils |
a298ac430b8e
new package: plotutils (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
5 $(PKG)_IGNORE := |
3480
13be64f9f16d
move version info from index.html to src/*.mk files
John W. Eaton <jwe@octave.org>
parents:
3048
diff
changeset
|
6 $(PKG)_VERSION := 2.6 |
532
a298ac430b8e
new package: plotutils (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
7 $(PKG)_CHECKSUM := 7921301d9dfe8991e3df2829bd733df6b2a70838 |
a298ac430b8e
new package: plotutils (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
8 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) |
a298ac430b8e
new package: plotutils (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
9 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz |
a298ac430b8e
new package: plotutils (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
10 $(PKG)_URL := http://ftpmirror.gnu.org/$(PKG)/$($(PKG)_FILE) |
a298ac430b8e
new package: plotutils (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
11 $(PKG)_URL_2 := http://ftp.gnu.org/gnu/$(PKG)/$($(PKG)_FILE) |
3048
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3013
diff
changeset
|
12 $(PKG)_DEPS := libpng pthreads |
532
a298ac430b8e
new package: plotutils (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
13 |
3826 | 14 |
532
a298ac430b8e
new package: plotutils (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
15 define $(PKG)_UPDATE |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2365
diff
changeset
|
16 $(WGET) -q -O- 'http://ftp.gnu.org/gnu/plotutils/?C=M;O=D' | \ |
532
a298ac430b8e
new package: plotutils (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
17 grep '<a href="plotutils-' | \ |
1354
5646072a0081
improved version recognition of packages: boost gmp plotutils vmime
Volker Grabsch <vog@notjusthosting.com>
parents:
938
diff
changeset
|
18 $(SED) -n 's,.*plotutils-\([0-9][^<]*\)\.tar.*,\1,p' | \ |
532
a298ac430b8e
new package: plotutils (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
19 head -1 |
a298ac430b8e
new package: plotutils (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
20 endef |
a298ac430b8e
new package: plotutils (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
21 |
3826 | 22 ifeq ($(MXE_WINDOWS_BUILD),yes) |
23 define $(PKG)_BUILD | |
532
a298ac430b8e
new package: plotutils (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
24 cd '$(1)' && ./configure \ |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
25 --prefix='$(HOST_PREFIX)' \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
26 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
3812 | 27 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ |
28 --disable-shared --enable-static \ | |
532
a298ac430b8e
new package: plotutils (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
29 --enable-libplotter \ |
a298ac430b8e
new package: plotutils (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
30 --enable-libxmi \ |
a298ac430b8e
new package: plotutils (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
31 --with-png \ |
a298ac430b8e
new package: plotutils (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
32 --without-x \ |
3812 | 33 CFLAGS='-DNO_SYSTEM_GAMMA' LIBS='-lpng -lz' |
34 | |
35 $(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= man_MANS= INFO_DEPS= | |
36 | |
37 if [ "$(BUILD_SHARED)" = yes ]; then \ | |
38 $(MAKE) -C '$(1)' -j 1 bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= man_MANS= INFO_DEPS= lib_LTLIBRARIES= install; \ | |
39 $(MAKE_SHARED_FROM_STATIC) --ar '$(MXE_AR)' --ld '$(MXE_CXX)' $(1)/libplot/.libs/libplot.a --install '$(INSTALL)' --libdir '$(HOST_LIBDIR)' --bindir '$(HOST_BINDIR)' -lpng -lz; \ | |
40 $(MAKE_SHARED_FROM_STATIC) --ar '$(MXE_AR)' --ld '$(MXE_CXX)' $(1)/libplotter/.libs/libplotter.a --install '$(INSTALL)' --libdir '$(HOST_LIBDIR)' --bindir '$(HOST_BINDIR)' -lpng -lz; \ | |
41 $(MAKE_SHARED_FROM_STATIC) --ar '$(MXE_AR)' --ld '$(MXE_CXX)' $(1)/libxmi/.libs/libxmi.a --install '$(INSTALL)' --libdir '$(HOST_LIBDIR)' --bindir '$(HOST_BINDIR)'; \ | |
42 else \ | |
43 $(MAKE) -C '$(1)' -j 1 bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= man_MANS= INFO_DEPS= install; \ | |
44 fi | |
3826 | 45 endef |
46 else | |
47 define $(PKG)_BUILD | |
48 cd '$(1)' && ./configure \ | |
49 --prefix='$(HOST_PREFIX)' \ | |
50 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ | |
51 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ | |
52 $(ENABLE_SHARED_OR_STATIC) \ | |
53 --enable-libplotter \ | |
54 --enable-libxmi \ | |
55 --with-png \ | |
56 --without-x \ | |
57 CFLAGS='-DNO_SYSTEM_GAMMA' LIBS='-lpng -lz' | |
58 | |
59 $(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= man_MANS= INFO_DEPS= | |
60 $(MAKE) -C '$(1)' -j 1 bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= man_MANS= INFO_DEPS= install | |
61 endef | |
62 endif |