cegui07: add freeimage and toluapp
This commit is contained in:
parent
d458ce15a4
commit
cfb5cbcdf1
1 changed files with 23 additions and 7 deletions
|
@ -1,13 +1,14 @@
|
|||
# Template file for 'cegui07'
|
||||
pkgname=cegui07
|
||||
version=0.7.9
|
||||
revision=1
|
||||
revision=2
|
||||
wrksrc=CEGUI-${version}
|
||||
build_style=gnu-configure
|
||||
configure_args="--disable-samples --with-gtk2"
|
||||
hostmakedepends="automake libtool graphviz doxygen dejavu-fonts-ttf gd glm perl pkg-config"
|
||||
makedepends="libxml2-devel boost-devel glu-devel glew-devel glfw-devel gtk+-devel
|
||||
devil-devel ois-devel silly-devel fribidi-devel lua51-devel minizip-devel
|
||||
configure_args="--disable-samples"
|
||||
hostmakedepends="automake libtool graphviz doxygen dejavu-fonts-ttf gd glm perl pkg-config python"
|
||||
makedepends="libxml2-devel boost-devel glu-devel glew-devel glfw-devel
|
||||
freetype-devel fribidi-devel devil-devel freeimage-devel ois-devel
|
||||
silly-devel lua51-devel toluapp-devel minizip-devel tinyxml-devel
|
||||
$(vopt_if irrlicht irrlicht-devel)
|
||||
$(vopt_if python 'python-devel boost-python')"
|
||||
depends="${pkgname}-data"
|
||||
|
@ -28,13 +29,28 @@ if [ -z "$CROSS_BUILD" ]; then
|
|||
build_options_default+=" python"
|
||||
fi
|
||||
|
||||
# Make configure find python and freetype2
|
||||
CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/python2.7"
|
||||
|
||||
pre_configure() {
|
||||
# Silence doxygen
|
||||
sed -i doc/doxygen/Makefile.am \
|
||||
-e 's;$(DOXYGEN) doxyfile;& >/dev/null 2>&1;'
|
||||
|
||||
# Modernize Makefile.am files
|
||||
find . -name Makefile.am -exec sed -i "{}" \
|
||||
-e "1i ACLOCAL_AMFLAGS = -I m4" \;
|
||||
# -e "s;INCLUDES;AM_CPPFLAGS;g" \;
|
||||
-e "1i ACLOCAL_AMFLAGS = -I m4" \
|
||||
-e "s;INCLUDES;AM_CXXFLAGS;g" \;
|
||||
|
||||
# Set AM_CPPFLAGS for the C source in tolua++
|
||||
sed -i cegui/src/ScriptingModules/LuaScriptModule/support/tolua++/Makefile.am \
|
||||
-e "s;AM_CXXFLAGS;AM_CFLAGS;"
|
||||
|
||||
# Modernize configure.ac (enable subdir-objects)
|
||||
sed -i configure.ac \
|
||||
-e "s;dist-zip tar-ustar;& subdir-objects;" \
|
||||
-e "/^AM_INIT_AUTOMAKE.*/a AC_CONFIG_MACRO_DIRS([m4])"
|
||||
|
||||
mkdir m4
|
||||
cp doc/COPYING doc/README .
|
||||
touch NEWS AUTHORS ChangeLog
|
||||
|
|
Loading…
Reference in a new issue