Mercurial > mxe-octave
annotate src/fltk.mk @ 265:5bf9071e67b6
put all package's project websites into Make variables $($(PKG)_WEBSITE)
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Sun, 01 Mar 2009 16:35:21 +0100 |
parents | 32eef23cb982 |
children | 85ffa9259036 |
rev | line source |
---|---|
164
43f7cae42987
translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
1 # FLTK |
43f7cae42987
translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
2 |
43f7cae42987
translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
3 PKG := fltk |
177
e3f4909ed0d5
update packages binutils, curl, fltk, fontconfig, freetype, gdal, geos, libgcrypt, libpng, libxml2, libxslt, pdcurses
Volker Grabsch <vog@notjusthosting.com>
parents:
164
diff
changeset
|
4 $(PKG)_VERSION := 1.1.9 |
164
43f7cae42987
translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
5 $(PKG)_SUBDIR := fltk-$($(PKG)_VERSION) |
43f7cae42987
translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
6 $(PKG)_FILE := fltk-$($(PKG)_VERSION)-source.tar.bz2 |
265
5bf9071e67b6
put all package's project websites into Make variables $($(PKG)_WEBSITE)
Volker Grabsch <vog@notjusthosting.com>
parents:
220
diff
changeset
|
7 $(PKG)_WEBSITE := http://www.fltk.org/ |
164
43f7cae42987
translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
8 $(PKG)_URL := http://ftp.easysw.com/pub/fltk/$($(PKG)_VERSION)/$($(PKG)_FILE) |
43f7cae42987
translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
9 $(PKG)_DEPS := gcc pthreads zlib jpeg libpng |
43f7cae42987
translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
10 |
43f7cae42987
translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
11 define $(PKG)_UPDATE |
43f7cae42987
translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
12 wget -q -O- 'http://www.fltk.org/' | \ |
43f7cae42987
translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
13 $(SED) -n 's,.*>v\([0-9][^<]*\)<.*,\1,p' | \ |
43f7cae42987
translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
14 head -1 |
43f7cae42987
translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
15 endef |
43f7cae42987
translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
16 |
43f7cae42987
translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
17 define $(PKG)_BUILD |
43f7cae42987
translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
18 $(SED) 's,\$$uname,MINGW,g' -i '$(1)/configure' |
43f7cae42987
translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
19 # wine confuses the cross-compiling detection, so set it explicitly |
43f7cae42987
translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
20 $(SED) 's,cross_compiling=no,cross_compiling=yes,' -i '$(1)/configure' |
43f7cae42987
translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
21 cd '$(1)' && ./configure \ |
43f7cae42987
translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
22 --host='$(TARGET)' \ |
43f7cae42987
translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
23 --disable-shared \ |
43f7cae42987
translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
24 --prefix='$(PREFIX)/$(TARGET)' \ |
43f7cae42987
translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
25 --enable-threads \ |
43f7cae42987
translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
26 LIBS='-lws2_32' |
43f7cae42987
translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
27 $(SED) 's,-fno-exceptions,,' -i '$(1)/makeinclude' |
220
32eef23cb982
portability fixes for MacOS X
Volker Grabsch <vog@notjusthosting.com>
parents:
177
diff
changeset
|
28 $(MAKE) -C '$(1)' -j '$(JOBS)' install DIRS=src LIBCOMMAND='$(TARGET)-ar cr' |
164
43f7cae42987
translated package: fltk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
29 endef |