annotate src/plotutils.mk @ 7207:9ed6500e56d3 default tip @

maint: Merge release to default.
author Markus Mützel <markus.muetzel@gmx.de>
date Fri, 17 May 2024 20:16:41 +0200
parents 58d4bbcb30bc
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
58d4bbcb30bc plotutils: add rule to compile for gnulinux
John Donoghue
parents: 3812
diff changeset
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
58d4bbcb30bc plotutils: add rule to compile for gnulinux
John Donoghue
parents: 3812
diff changeset
22 ifeq ($(MXE_WINDOWS_BUILD),yes)
58d4bbcb30bc plotutils: add rule to compile for gnulinux
John Donoghue
parents: 3812
diff changeset
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
82bd7cd7d06d plotutils: create dlls, use with pstoedit
John Donoghue
parents: 3480
diff changeset
27 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
82bd7cd7d06d plotutils: create dlls, use with pstoedit
John Donoghue
parents: 3480
diff changeset
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
82bd7cd7d06d plotutils: create dlls, use with pstoedit
John Donoghue
parents: 3480
diff changeset
33 CFLAGS='-DNO_SYSTEM_GAMMA' LIBS='-lpng -lz'
82bd7cd7d06d plotutils: create dlls, use with pstoedit
John Donoghue
parents: 3480
diff changeset
34
82bd7cd7d06d plotutils: create dlls, use with pstoedit
John Donoghue
parents: 3480
diff changeset
35 $(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= man_MANS= INFO_DEPS=
82bd7cd7d06d plotutils: create dlls, use with pstoedit
John Donoghue
parents: 3480
diff changeset
36
82bd7cd7d06d plotutils: create dlls, use with pstoedit
John Donoghue
parents: 3480
diff changeset
37 if [ "$(BUILD_SHARED)" = yes ]; then \
82bd7cd7d06d plotutils: create dlls, use with pstoedit
John Donoghue
parents: 3480
diff changeset
38 $(MAKE) -C '$(1)' -j 1 bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= man_MANS= INFO_DEPS= lib_LTLIBRARIES= install; \
82bd7cd7d06d plotutils: create dlls, use with pstoedit
John Donoghue
parents: 3480
diff changeset
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; \
82bd7cd7d06d plotutils: create dlls, use with pstoedit
John Donoghue
parents: 3480
diff changeset
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; \
82bd7cd7d06d plotutils: create dlls, use with pstoedit
John Donoghue
parents: 3480
diff changeset
41 $(MAKE_SHARED_FROM_STATIC) --ar '$(MXE_AR)' --ld '$(MXE_CXX)' $(1)/libxmi/.libs/libxmi.a --install '$(INSTALL)' --libdir '$(HOST_LIBDIR)' --bindir '$(HOST_BINDIR)'; \
82bd7cd7d06d plotutils: create dlls, use with pstoedit
John Donoghue
parents: 3480
diff changeset
42 else \
82bd7cd7d06d plotutils: create dlls, use with pstoedit
John Donoghue
parents: 3480
diff changeset
43 $(MAKE) -C '$(1)' -j 1 bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= man_MANS= INFO_DEPS= install; \
82bd7cd7d06d plotutils: create dlls, use with pstoedit
John Donoghue
parents: 3480
diff changeset
44 fi
3826
58d4bbcb30bc plotutils: add rule to compile for gnulinux
John Donoghue
parents: 3812
diff changeset
45 endef
58d4bbcb30bc plotutils: add rule to compile for gnulinux
John Donoghue
parents: 3812
diff changeset
46 else
58d4bbcb30bc plotutils: add rule to compile for gnulinux
John Donoghue
parents: 3812
diff changeset
47 define $(PKG)_BUILD
58d4bbcb30bc plotutils: add rule to compile for gnulinux
John Donoghue
parents: 3812
diff changeset
48 cd '$(1)' && ./configure \
58d4bbcb30bc plotutils: add rule to compile for gnulinux
John Donoghue
parents: 3812
diff changeset
49 --prefix='$(HOST_PREFIX)' \
58d4bbcb30bc plotutils: add rule to compile for gnulinux
John Donoghue
parents: 3812
diff changeset
50 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
58d4bbcb30bc plotutils: add rule to compile for gnulinux
John Donoghue
parents: 3812
diff changeset
51 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
58d4bbcb30bc plotutils: add rule to compile for gnulinux
John Donoghue
parents: 3812
diff changeset
52 $(ENABLE_SHARED_OR_STATIC) \
58d4bbcb30bc plotutils: add rule to compile for gnulinux
John Donoghue
parents: 3812
diff changeset
53 --enable-libplotter \
58d4bbcb30bc plotutils: add rule to compile for gnulinux
John Donoghue
parents: 3812
diff changeset
54 --enable-libxmi \
58d4bbcb30bc plotutils: add rule to compile for gnulinux
John Donoghue
parents: 3812
diff changeset
55 --with-png \
58d4bbcb30bc plotutils: add rule to compile for gnulinux
John Donoghue
parents: 3812
diff changeset
56 --without-x \
58d4bbcb30bc plotutils: add rule to compile for gnulinux
John Donoghue
parents: 3812
diff changeset
57 CFLAGS='-DNO_SYSTEM_GAMMA' LIBS='-lpng -lz'
58d4bbcb30bc plotutils: add rule to compile for gnulinux
John Donoghue
parents: 3812
diff changeset
58
58d4bbcb30bc plotutils: add rule to compile for gnulinux
John Donoghue
parents: 3812
diff changeset
59 $(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= man_MANS= INFO_DEPS=
58d4bbcb30bc plotutils: add rule to compile for gnulinux
John Donoghue
parents: 3812
diff changeset
60 $(MAKE) -C '$(1)' -j 1 bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= man_MANS= INFO_DEPS= install
58d4bbcb30bc plotutils: add rule to compile for gnulinux
John Donoghue
parents: 3812
diff changeset
61 endef
58d4bbcb30bc plotutils: add rule to compile for gnulinux
John Donoghue
parents: 3812
diff changeset
62 endif