blob: b27ece01c8edbb511a37762b8f570a5a71f06b9f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# This file is part of MXE.
# See index.html for further information.
PKG := cegui
$(PKG)_IGNORE :=
$(PKG)_VERSION := 0.7.9
$(PKG)_CHECKSUM := f0a8616bcb37843ad2f83c88745b9313906cb8e9
$(PKG)_SUBDIR := CEGUI-$($(PKG)_VERSION)
$(PKG)_FILE := CEGUI-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/crayzedsgui/CEGUI%20Mk-2/$($(PKG)_VERSION)/$($(PKG)_FILE)?download
$(PKG)_DEPS := gcc pcre freeglut freeimage freetype libxml2 expat xerces
define $(PKG)_UPDATE
$(WGET) -q -O- 'https://bitbucket.org/cegui/cegui/downloads' | \
$(SED) -n 's,.*href=.*get/v\([0-9]*-[0-9]*-[0-9]*\)\.tar.*,\1,p' | \
$(SED) 's,-,.,g' | \
$(SORT) -V | \
tail -1
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
--enable-freetype \
--enable-pcre \
--enable-xerces-c \
--enable-libxml \
--enable-expat \
--disable-corona \
--disable-devil \
--enable-freeimage \
--disable-silly \
--enable-tga \
--disable-tinyxml \
--enable-stb \
--enable-opengl-renderer \
--disable-ogre-renderer \
--disable-irrlicht-renderer \
--disable-directfb-renderer \
--enable-null-renderer \
--disable-samples \
--disable-lua-module \
--disable-python-module \
PKG_CONFIG='$(TARGET)-pkg-config' \
CFLAGS="`$(TARGET)-pkg-config --cflags glut freeimage`" \
CXXFLAGS="`$(TARGET)-pkg-config --cflags glut freeimage`" \
LDFLAGS="`$(TARGET)-pkg-config --libs glut freeimage`"
$(MAKE) -C '$(1)' -j '$(JOBS)'
$(SED) -i 's/Cflags:\(.*\)/Cflags: \1 -DCEGUI_STATIC/' '$(1)/cegui/CEGUI.pc'
$(MAKE) -C '$(1)' -j '$(JOBS)' install
'$(TARGET)-g++' \
-W -Wall -ansi -pedantic \
'$(2).cpp' \
`'$(TARGET)-pkg-config' --cflags --libs CEGUI-OPENGL glut freetype2 libpcre` \
-lCEGUIFreeImageImageCodec -lCEGUIXercesParser -lCEGUIFalagardWRBase \
`'$(TARGET)-pkg-config' --libs --cflags freeimage xerces-c` \
-o '$(PREFIX)/$(TARGET)/bin/test-cegui.exe'
endef
$(PKG)_BUILD_x86_64-w64-mingw32 =
$(PKG)_BUILD_SHARED =
|