annotate src/fltk.mk @ 3847:61da12fcda03

fltk.mk: strip -Wl,-gc-secions and -fvisibility=hidden from compiler flags
author John W. Eaton <jwe@octave.org>
date Sat, 07 Mar 2015 13:51:29 -0500
parents 02990526ae69
children eeeff365b6f9
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: 2329
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.
414
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 306
diff changeset
3
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
4 PKG := fltk
448
e9afec55fd6b improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents: 444
diff changeset
5 $(PKG)_IGNORE :=
3796
e95c46863402 fltk: update to 1.3.3
John Donoghue
parents: 3743
diff changeset
6 $(PKG)_VERSION := 1.3.3
e95c46863402 fltk: update to 1.3.3
John Donoghue
parents: 3743
diff changeset
7 $(PKG)_CHECKSUM := 873aac49b277149e054b9740378e2ca87b0bd435
1783
9fe6c0dce14b use the 1.3.x snapshots of package fltk
Volker Grabsch <vog@notjusthosting.com>
parents: 1714
diff changeset
8 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
1892
0a2d3b249644 update packages fltk libntlm
Mark Brand <mabrand@mabrand.nl>
parents: 1885
diff changeset
9 $(PKG)_FILE := $($(PKG)_SUBDIR)-source.tar.gz
2989
59fedb8ce3da Update fttk download URL to http://fltk.org/pub/fltk
John Donoghue <john.onoghue@ieee.org>
parents: 2855
diff changeset
10 $(PKG)_URL := http://fltk.org/pub/fltk/$($(PKG)_VERSION)/$($(PKG)_FILE)
3743
4f58c4b4dee0 build libX11 and dependencies
John W. Eaton <jwe@octave.org>
parents: 3499
diff changeset
11 $(PKG)_DEPS := zlib jpeg libpng
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2993
diff changeset
12 ifeq ($(MXE_SYSTEM),mingw)
3743
4f58c4b4dee0 build libX11 and dependencies
John W. Eaton <jwe@octave.org>
parents: 3499
diff changeset
13 $(PKG)_DEPS += pthreads uuid
4f58c4b4dee0 build libX11 and dependencies
John W. Eaton <jwe@octave.org>
parents: 3499
diff changeset
14 else ifeq ($(MXE_SYSTEM),msvc)
4f58c4b4dee0 build libX11 and dependencies
John W. Eaton <jwe@octave.org>
parents: 3499
diff changeset
15 $(PKG)_DEPS += freetype
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2993
diff changeset
16 else
3827
02990526ae69 allow building of X11 libs to be disabled
John W. Eaton <jwe@octave.org>
parents: 3796
diff changeset
17 $(PKG)_DEPS += pthreads freetype
02990526ae69 allow building of X11 libs to be disabled
John W. Eaton <jwe@octave.org>
parents: 3796
diff changeset
18 ifeq ($(USE_SYSTEM_X11_LIBS),no)
02990526ae69 allow building of X11 libs to be disabled
John W. Eaton <jwe@octave.org>
parents: 3796
diff changeset
19 $(PKG)_DEPS += x11 xext xrender xdmcp
02990526ae69 allow building of X11 libs to be disabled
John W. Eaton <jwe@octave.org>
parents: 3796
diff changeset
20 endif
3098
4c72697bcbc4 [MSVC] enable jpeg compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
21 endif
164
43f7cae42987 translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22
43f7cae42987 translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
23 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2365
diff changeset
24 $(WGET) -q -O- 'http://www.fltk.org/' | \
164
43f7cae42987 translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 $(SED) -n 's,.*>v\([0-9][^<]*\)<.*,\1,p' | \
1783
9fe6c0dce14b use the 1.3.x snapshots of package fltk
Volker Grabsch <vog@notjusthosting.com>
parents: 1714
diff changeset
26 grep -v '^1\.1\.' | \
164
43f7cae42987 translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
27 head -1
43f7cae42987 translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 endef
43f7cae42987 translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
29
43f7cae42987 translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
30 define $(PKG)_BUILD
3143
a2afd94e919f [MSVC] fix fltk-config script for octave compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3099
diff changeset
31 if [ $(MXE_SYSTEM) = msvc ]; then \
a2afd94e919f [MSVC] fix fltk-config script for octave compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3099
diff changeset
32 for f in '$(1)/configure.in' '$(1)/src/Makefile'; do \
a2afd94e919f [MSVC] fix fltk-config script for octave compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3099
diff changeset
33 $(SED) -i -e 's/@@LIBRARY_PREFIX@@/$(LIBRARY_PREFIX)/g' \
a2afd94e919f [MSVC] fix fltk-config script for octave compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3099
diff changeset
34 -e 's/@@LIBRARY_SUFFIX@@/$(LIBRARY_SUFFIX)/g' $$f; \
a2afd94e919f [MSVC] fix fltk-config script for octave compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3099
diff changeset
35 done; \
a2afd94e919f [MSVC] fix fltk-config script for octave compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3099
diff changeset
36 fi
1714
8aba3acd6389 don't remove the "-mno-cygwin" flag, but provide clean bugfixes instead for packages fltk and xvidcore
Mark Brand <mabrand@mabrand.nl>
parents: 1697
diff changeset
37 cd '$(1)' && autoconf
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2993
diff changeset
38 ## $(SED) -i 's,\$$uname,MINGW,g' '$(1)/configure'
164
43f7cae42987 translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
39 cd '$(1)' && ./configure \
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2993
diff changeset
40 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
3014
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3013
diff changeset
41 DSOFLAGS='-L$(HOST_LIBDIR)' \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
42 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
2855
47558e958113 Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents: 2845
diff changeset
43 $(ENABLE_SHARED_OR_STATIC) \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 3006
diff changeset
44 --prefix='$(HOST_PREFIX)' \
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2993
diff changeset
45 --enable-threads
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2993
diff changeset
46 ## LIBS='-lws2_32'
1784
824af1f3287a improved comment for package fltk
Volker Grabsch <vog@notjusthosting.com>
parents: 1783
diff changeset
47 # enable exceptions, because disabling them doesn't make any sense on PCs
3847
61da12fcda03 fltk.mk: strip -Wl,-gc-secions and -fvisibility=hidden from compiler flags
John W. Eaton <jwe@octave.org>
parents: 3827
diff changeset
48 $(SED) -i 's/-fno-exceptions//; s/-Wl,-gc-sections//; s/-fvisibility=hidden//' '$(1)/makeinclude'
3099
034f830a5823 [MSVC] enable FLTK compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3098
diff changeset
49 $(MAKE) -C '$(1)' -j '$(JOBS)' install \
034f830a5823 [MSVC] enable FLTK compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3098
diff changeset
50 DIRS=src \
3293
cf6f40cededb Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3216
diff changeset
51 LIBCOMMAND='$(MXE_AR) cr' \
cf6f40cededb Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3216
diff changeset
52 DESTDIR='$(3)'
3216
11f8ec654cd4 Avoid copying or linking files that are the same when doing native build
John W. Eaton <jwe@octave.org>
parents: 3143
diff changeset
53 if [ $(MXE_NATIVE_BUILD) = no ]; then \
3305
79c0dc273dad fltk: in cross build, create $(3)$(BUILD_TOOLS_PREFIX)/bin
John Donoghue <john.donoghue@ieee.org>
parents: 3293
diff changeset
54 $(INSTALL) -d '$(3)$(BUILD_TOOLS_PREFIX)/bin'; \
3293
cf6f40cededb Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3216
diff changeset
55 $(INSTALL) -m755 '$(3)$(HOST_BINDIR)/fltk-config' '$(3)$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)fltk-config'; \
3216
11f8ec654cd4 Avoid copying or linking files that are the same when doing native build
John W. Eaton <jwe@octave.org>
parents: 3143
diff changeset
56 fi
164
43f7cae42987 translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
57 endef