mxe/src/cegui.mk

66 lines
2.3 KiB
Makefile
Raw Normal View History

2013-05-12 07:35:51 +01:00
# This file is part of MXE.
# See index.html for further information.
PKG := cegui
$(PKG)_IGNORE :=
$(PKG)_VERSION := 0.7.9
$(PKG)_CHECKSUM := 7c3b264def08b46de749c2acaba363e907479d924612436f3bd09da2e474bb8c
2013-05-12 07:35:51 +01:00
$(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
2015-09-23 08:41:16 +01:00
$(PKG)_DEPS := gcc expat freeglut freeimage freetype libxml2 pcre xerces
2013-05-12 07:35:51 +01:00
define $(PKG)_UPDATE
2013-05-25 13:03:21 +01:00
$(WGET) -q -O- 'https://bitbucket.org/cegui/cegui/downloads' | \
2013-05-25 13:31:31 +01:00
$(SED) -n 's,.*href=.*get/v\([0-9]*-[0-9]*-[0-9]*\)\.tar.*,\1,p' | \
2013-05-25 13:03:21 +01:00
$(SED) 's,-,.,g' | \
$(SORT) -V | \
tail -1
2013-05-12 07:35:51 +01:00
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 \
2013-05-12 16:02:53 +01:00
--disable-tinyxml \
2013-05-12 07:35:51 +01:00
--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` \
2013-05-12 07:35:51 +01:00
-o '$(PREFIX)/$(TARGET)/bin/test-cegui.exe'
endef
$(PKG)_BUILD_x86_64-w64-mingw32 =
$(PKG)_BUILD_SHARED =