summaryrefslogtreecommitdiffstats
path: root/src/fltk.mk
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2008-11-09 01:25:14 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2008-11-09 01:25:14 (GMT)
commit87afd2f9e20e9ef173801895d99f905a87913287 (patch)
tree6c16224e952c0e32f9e647a06034ee435596123f /src/fltk.mk
parent447da9060cbeac8779da24a772ea83eb2457ae67 (diff)
downloadmxe-87afd2f9e20e9ef173801895d99f905a87913287.zip
mxe-87afd2f9e20e9ef173801895d99f905a87913287.tar.gz
mxe-87afd2f9e20e9ef173801895d99f905a87913287.tar.bz2
translated package: fltk
Diffstat (limited to 'src/fltk.mk')
-rw-r--r--src/fltk.mk29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/fltk.mk b/src/fltk.mk
new file mode 100644
index 0000000..7bc92f1
--- /dev/null
+++ b/src/fltk.mk
@@ -0,0 +1,29 @@
+# FLTK
+# http://www.fltk.org/
+
+PKG := fltk
+$(PKG)_VERSION := 1.1.7
+$(PKG)_SUBDIR := fltk-$($(PKG)_VERSION)
+$(PKG)_FILE := fltk-$($(PKG)_VERSION)-source.tar.bz2
+$(PKG)_URL := http://ftp.easysw.com/pub/fltk/$($(PKG)_VERSION)/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc pthreads zlib jpeg libpng
+
+define $(PKG)_UPDATE
+ wget -q -O- 'http://www.fltk.org/' | \
+ $(SED) -n 's,.*>v\([0-9][^<]*\)<.*,\1,p' | \
+ head -1
+endef
+
+define $(PKG)_BUILD
+ $(SED) 's,\$$uname,MINGW,g' -i '$(1)/configure'
+ # wine confuses the cross-compiling detection, so set it explicitly
+ $(SED) 's,cross_compiling=no,cross_compiling=yes,' -i '$(1)/configure'
+ cd '$(1)' && ./configure \
+ --host='$(TARGET)' \
+ --disable-shared \
+ --prefix='$(PREFIX)/$(TARGET)' \
+ --enable-threads \
+ LIBS='-lws2_32'
+ $(SED) 's,-fno-exceptions,,' -i '$(1)/makeinclude'
+ $(MAKE) -C '$(1)' -j '$(JOBS)' install DIRS=src
+endef