mxe/src/fltk.mk

37 lines
1.3 KiB
Makefile
Raw Normal View History

# This file is part of MXE. See LICENSE.md for licensing information.
2008-11-09 01:25:14 +00:00
PKG := fltk
$(PKG)_WEBSITE := http://www.fltk.org/
$(PKG)_DESCR := FLTK
$(PKG)_IGNORE :=
2014-12-01 11:50:31 +00:00
$(PKG)_VERSION := 1.3.3
$(PKG)_CHECKSUM := f8398d98d7221d40e77bc7b19e761adaf2f1ef8bb0c30eceb7beb4f2273d0d97
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
2011-06-20 19:27:01 +01:00
$(PKG)_FILE := $($(PKG)_SUBDIR)-source.tar.gz
2013-05-04 19:17:44 +01:00
$(PKG)_URL := http://fltk.org/pub/fltk/$($(PKG)_VERSION)/$($(PKG)_FILE)
2015-09-23 08:41:16 +01:00
$(PKG)_DEPS := gcc jpeg libpng pthreads zlib
2008-11-09 01:25:14 +00:00
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://www.fltk.org/' | \
2008-11-09 01:25:14 +00:00
$(SED) -n 's,.*>v\([0-9][^<]*\)<.*,\1,p' | \
grep -v '^1\.1\.' | \
2008-11-09 01:25:14 +00:00
head -1
endef
define $(PKG)_BUILD
$(SED) -i 's,\$$uname,MINGW,g' '$(1)/configure'
2008-11-09 01:25:14 +00:00
cd '$(1)' && ./configure \
$(MXE_CONFIGURE_OPTS) \
2008-11-09 01:25:14 +00:00
--enable-threads \
LIBS='-lws2_32'
2011-04-24 21:22:50 +01:00
# enable exceptions, because disabling them doesn't make any sense on PCs
$(SED) -i 's,-fno-exceptions,,' '$(1)/makeinclude'
2009-02-03 20:48:46 +00:00
$(MAKE) -C '$(1)' -j '$(JOBS)' install DIRS=src LIBCOMMAND='$(TARGET)-ar cr'
ln -sf '$(PREFIX)/$(TARGET)/bin/fltk-config' '$(PREFIX)/bin/$(TARGET)-fltk-config'
2012-03-27 12:29:57 +01:00
2011-05-24 13:38:13 +01:00
'$(TARGET)-g++' \
-W -Wall -Werror -pedantic -ansi \
'$(TEST_FILE)' -o '$(PREFIX)/$(TARGET)/bin/test-fltk.exe' \
`$(TARGET)-fltk-config --cxxflags --ld$(if $(BUILD_STATIC),static)flags`
2008-11-09 01:25:14 +00:00
endef