Mercurial > mxe-octave
annotate src/fltk.mk @ 3006:dabfd7db980c
use cp for ln on mingw native builds
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 30 May 2013 13:28:23 -0400 |
parents | 733c487c69c6 |
children | 100e618349f7 |
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 := |
2845 | 6 $(PKG)_CHECKSUM := 717242e8aa118020cc05aa788015a2933895b99c |
1783
9fe6c0dce14b
use the 1.3.x snapshots of package fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
1714
diff
changeset
|
7 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) |
1892
0a2d3b249644
update packages fltk libntlm
Mark Brand <mabrand@mabrand.nl>
parents:
1885
diff
changeset
|
8 $(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
|
9 $(PKG)_URL := http://fltk.org/pub/fltk/$($(PKG)_VERSION)/$($(PKG)_FILE) |
2997 | 10 ifeq ($(MXE_SYSTEM),mingw) |
11 $(PKG)_DEPS := gcc zlib jpeg libpng pthreads uuid | |
12 else | |
3002
733c487c69c6
Update fltk and fontconfig from redhat 6.3 test native build issues
John Donoghue <john.donoghue@ieee.org>
parents:
2997
diff
changeset
|
13 $(PKG)_DEPS := gcc zlib jpeg libpng pthreads freetype |
2997 | 14 endif |
164
43f7cae42987
translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
15 |
43f7cae42987
translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
16 define $(PKG)_UPDATE |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2365
diff
changeset
|
17 $(WGET) -q -O- 'http://www.fltk.org/' | \ |
164
43f7cae42987
translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
18 $(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
|
19 grep -v '^1\.1\.' | \ |
164
43f7cae42987
translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
20 head -1 |
43f7cae42987
translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
21 endef |
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)_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
|
24 cd '$(1)' && autoconf |
2997 | 25 ## $(SED) -i 's,\$$uname,MINGW,g' '$(1)/configure' |
164
43f7cae42987
translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
26 cd '$(1)' && ./configure \ |
2997 | 27 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ |
28 DSOFLAGS='-L$(PREFIX)/$(TARGET)/lib' \ | |
164
43f7cae42987
translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
29 --host='$(TARGET)' \ |
2153
e4c83fa61a5b
replaced $(BUILD) with a more direct and less brittle construct
Volker Grabsch <vog@notjusthosting.com>
parents:
2148
diff
changeset
|
30 --build="`config.guess`" \ |
2855
47558e958113
Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents:
2845
diff
changeset
|
31 $(ENABLE_SHARED_OR_STATIC) \ |
164
43f7cae42987
translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
32 --prefix='$(PREFIX)/$(TARGET)' \ |
2997 | 33 --enable-threads |
34 ## LIBS='-lws2_32' | |
1784
824af1f3287a
improved comment for package fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
1783
diff
changeset
|
35 # 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
|
36 $(SED) -i 's,-fno-exceptions,,' '$(1)/makeinclude' |
2997 | 37 $(MAKE) -C '$(1)' -j '$(JOBS)' install DIRS=src LIBCOMMAND='$(MXE_AR) cr' |
3006
dabfd7db980c
use cp for ln on mingw native builds
John W. Eaton <jwe@octave.org>
parents:
3002
diff
changeset
|
38 $(LN_SF) '$(MXE_BINDIR)/fltk-config' '$(PREFIX)/bin/$(TARGET)-fltk-config' |
164
43f7cae42987
translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
39 endef |