summaryrefslogtreecommitdiffstats
path: root/src/cegui.mk
diff options
context:
space:
mode:
authorQuintus <quintus@quintilianus.eu>2013-05-12 06:35:51 (GMT)
committerTony Theodore <tonyt@logyst.com>2013-05-12 06:35:51 (GMT)
commit17fb2b7f6c160a01f86f115c04dbdb9f04a8931e (patch)
treed4018e92c2937dcba960d9adb8a1bd674c2ccd51 /src/cegui.mk
parent9e2b2fdba25b70b2e432a2a6690655117e362c1c (diff)
downloadmxe-17fb2b7f6c160a01f86f115c04dbdb9f04a8931e.zip
mxe-17fb2b7f6c160a01f86f115c04dbdb9f04a8931e.tar.gz
mxe-17fb2b7f6c160a01f86f115c04dbdb9f04a8931e.tar.bz2
new package cegui
Diffstat (limited to 'src/cegui.mk')
-rw-r--r--src/cegui.mk54
1 files changed, 54 insertions, 0 deletions
diff --git a/src/cegui.mk b/src/cegui.mk
new file mode 100644
index 0000000..ee2ad8c
--- /dev/null
+++ b/src/cegui.mk
@@ -0,0 +1,54 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG := cegui
+$(PKG)_IGNORE :=
+$(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
+ echo 'TODO: Updates for package cegui need to be written.' >&2; echo $(cegui_VERSION)
+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 \
+ --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 CEGUI-OPENGL glut freetype2 libpcre` -lCEGUIFreeImageImageCodec \
+ `'$(TARGET)-pkg-config' --libs --cflags freeimage` -lCEGUITinyXMLParser -lCEGUIFalagardWRBase \
+ -o '$(PREFIX)/$(TARGET)/bin/test-cegui.exe'
+endef