Mercurial > mxe-octave
annotate src/plotutils.mk @ 3812:82bd7cd7d06d
plotutils: create dlls, use with pstoedit
* src/plotutils.mk: build dlls from static libs
* src/pstoedit.mk: add plotutils as a dependancy of pstoedit
author | John Donoghue |
---|---|
date | Fri, 27 Feb 2015 08:19:06 -0500 |
parents | 13be64f9f16d |
children | 58d4bbcb30bc |
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 |
a298ac430b8e
new package: plotutils (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
14 define $(PKG)_UPDATE |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2365
diff
changeset
|
15 $(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
|
16 grep '<a href="plotutils-' | \ |
1354
5646072a0081
improved version recognition of packages: boost gmp plotutils vmime
Volker Grabsch <vog@notjusthosting.com>
parents:
938
diff
changeset
|
17 $(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
|
18 head -1 |
a298ac430b8e
new package: plotutils (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
19 endef |
a298ac430b8e
new package: plotutils (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
20 |
a298ac430b8e
new package: plotutils (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
21 define $(PKG)_BUILD |
a298ac430b8e
new package: plotutils (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
22 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
|
23 --prefix='$(HOST_PREFIX)' \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
24 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
3812 | 25 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ |
26 --disable-shared --enable-static \ | |
532
a298ac430b8e
new package: plotutils (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
27 --enable-libplotter \ |
a298ac430b8e
new package: plotutils (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
28 --enable-libxmi \ |
a298ac430b8e
new package: plotutils (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
29 --with-png \ |
a298ac430b8e
new package: plotutils (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
30 --without-x \ |
3812 | 31 CFLAGS='-DNO_SYSTEM_GAMMA' LIBS='-lpng -lz' |
32 | |
33 $(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= man_MANS= INFO_DEPS= | |
34 | |
35 if [ "$(BUILD_SHARED)" = yes ]; then \ | |
36 $(MAKE) -C '$(1)' -j 1 bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= man_MANS= INFO_DEPS= lib_LTLIBRARIES= install; \ | |
37 $(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; \ | |
38 $(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; \ | |
39 $(MAKE_SHARED_FROM_STATIC) --ar '$(MXE_AR)' --ld '$(MXE_CXX)' $(1)/libxmi/.libs/libxmi.a --install '$(INSTALL)' --libdir '$(HOST_LIBDIR)' --bindir '$(HOST_BINDIR)'; \ | |
40 else \ | |
41 $(MAKE) -C '$(1)' -j 1 bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= man_MANS= INFO_DEPS= install; \ | |
42 fi | |
532
a298ac430b8e
new package: plotutils (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
43 endef |