annotate src/fltk.mk @ 2329:466e77a78672

Fix annoying whitespaces at EOL
author Volker Grabsch <vog@notjusthosting.com>
date Tue, 27 Mar 2012 13:29:57 +0200
parents e4c83fa61a5b
children f653602a0500
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
641
dab071eac9c0 simplified file markers
Volker Grabsch <vog@notjusthosting.com>
parents: 629
diff changeset
1 # This file is part of mingw-cross-env.
714
29f1ba4559ae point consequently to "doc/index.html" instead of "doc/index.html or doc/README"
Volker Grabsch <vog@notjusthosting.com>
parents: 641
diff changeset
2 # See doc/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
164
43f7cae42987 translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 # FLTK
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
5 PKG := fltk
448
e9afec55fd6b improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents: 444
diff changeset
6 $(PKG)_IGNORE :=
1892
0a2d3b249644 update packages fltk libntlm
Mark Brand <mabrand@mabrand.nl>
parents: 1885
diff changeset
7 $(PKG)_VERSION := 1.3.0
0a2d3b249644 update packages fltk libntlm
Mark Brand <mabrand@mabrand.nl>
parents: 1885
diff changeset
8 $(PKG)_CHECKSUM := 720f2804be6132ebae9909d4e74dedcc00b39d25
1783
9fe6c0dce14b use the 1.3.x snapshots of package fltk
Volker Grabsch <vog@notjusthosting.com>
parents: 1714
diff changeset
9 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
1892
0a2d3b249644 update packages fltk libntlm
Mark Brand <mabrand@mabrand.nl>
parents: 1885
diff changeset
10 $(PKG)_FILE := $($(PKG)_SUBDIR)-source.tar.gz
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
11 $(PKG)_WEBSITE := http://www.fltk.org/
1892
0a2d3b249644 update packages fltk libntlm
Mark Brand <mabrand@mabrand.nl>
parents: 1885
diff changeset
12 $(PKG)_URL := http://ftp.easysw.com/pub/fltk/$($(PKG)_VERSION)/$($(PKG)_FILE)
938
795dbc19e055 detangle package pthreads from package gcc
Volker Grabsch <vog@notjusthosting.com>
parents: 759
diff changeset
13 $(PKG)_DEPS := gcc zlib jpeg libpng pthreads
164
43f7cae42987 translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14
43f7cae42987 translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 define $(PKG)_UPDATE
43f7cae42987 translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 wget -q -O- 'http://www.fltk.org/' | \
43f7cae42987 translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 $(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
18 grep -v '^1\.1\.' | \
164
43f7cae42987 translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 head -1
43f7cae42987 translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 endef
43f7cae42987 translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21
43f7cae42987 translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22 define $(PKG)_BUILD
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
23 cd '$(1)' && autoconf
759
bf4bcb3370fa changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 714
diff changeset
24 $(SED) -i 's,\$$uname,MINGW,g' '$(1)/configure'
164
43f7cae42987 translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 cd '$(1)' && ./configure \
43f7cae42987 translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
26 --host='$(TARGET)' \
2153
e4c83fa61a5b replaced $(BUILD) with a more direct and less brittle construct
Volker Grabsch <vog@notjusthosting.com>
parents: 2148
diff changeset
27 --build="`config.guess`" \
164
43f7cae42987 translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 --disable-shared \
43f7cae42987 translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
29 --prefix='$(PREFIX)/$(TARGET)' \
43f7cae42987 translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
30 --enable-threads \
43f7cae42987 translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
31 LIBS='-lws2_32'
1784
824af1f3287a improved comment for package fltk
Volker Grabsch <vog@notjusthosting.com>
parents: 1783
diff changeset
32 # enable exceptions, because disabling them doesn't make any sense on PCs
759
bf4bcb3370fa changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 714
diff changeset
33 $(SED) -i 's,-fno-exceptions,,' '$(1)/makeinclude'
220
32eef23cb982 portability fixes for MacOS X
Volker Grabsch <vog@notjusthosting.com>
parents: 177
diff changeset
34 $(MAKE) -C '$(1)' -j '$(JOBS)' install DIRS=src LIBCOMMAND='$(TARGET)-ar cr'
1946
c6831f324cc3 improved coding style regarding creation of symlinks
Volker Grabsch <vog@notjusthosting.com>
parents: 1892
diff changeset
35 ln -sf '$(PREFIX)/$(TARGET)/bin/fltk-config' '$(PREFIX)/bin/$(TARGET)-fltk-config'
2329
466e77a78672 Fix annoying whitespaces at EOL
Volker Grabsch <vog@notjusthosting.com>
parents: 2153
diff changeset
36
1843
d9c83dad307a package fltk: add test program
Tony Theodore <tonyt@logyst.com>
parents: 1818
diff changeset
37 '$(TARGET)-g++' \
d9c83dad307a package fltk: add test program
Tony Theodore <tonyt@logyst.com>
parents: 1818
diff changeset
38 -W -Wall -Werror -pedantic -ansi \
d9c83dad307a package fltk: add test program
Tony Theodore <tonyt@logyst.com>
parents: 1818
diff changeset
39 '$(2).cpp' -o '$(PREFIX)/$(TARGET)/bin/test-fltk.exe' \
d9c83dad307a package fltk: add test program
Tony Theodore <tonyt@logyst.com>
parents: 1818
diff changeset
40 `$(TARGET)-fltk-config --cxxflags --ldstaticflags`
164
43f7cae42987 translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
41 endef