void-packages/srcpkgs/cegui07/template

93 lines
2.7 KiB
Bash
Raw Normal View History

2015-10-30 16:30:44 +00:00
# Template file for 'cegui07'
pkgname=cegui07
version=0.7.9
2015-11-05 05:04:50 +00:00
revision=2
2015-10-30 16:30:44 +00:00
wrksrc=CEGUI-${version}
build_style=gnu-configure
2015-11-05 05:04:50 +00:00
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
2015-10-30 16:30:44 +00:00
$(vopt_if irrlicht irrlicht-devel)
$(vopt_if python 'python-devel boost-python')"
2015-10-30 16:30:44 +00:00
depends="${pkgname}-data"
make_build_args="all html"
short_desc="Crazy Eddie's Graphical User Interface (0.7.x)"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="MIT"
homepage="http://cegui.org.uk/"
distfiles="${SOURCEFORGE_SITE}/crayzedsgui/CEGUI%20Mk-2/${version}/CEGUI-${version}.tar.gz"
checksum=7c3b264def08b46de749c2acaba363e907479d924612436f3bd09da2e474bb8c
build_options="irrlicht python"
2015-10-30 16:30:44 +00:00
desc_option_irrlicht="Enable support for Irrlicht"
build_options_default="irrlicht"
2015-10-30 16:30:44 +00:00
if [ -z "$CROSS_BUILD" ]; then
# XXX: boost-python is not available when cross building
build_options_default+=" python"
fi
2015-11-05 05:04:50 +00:00
# Make configure find python and freetype2
CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/python2.7"
2015-10-30 16:30:44 +00:00
pre_configure() {
2015-11-05 05:04:50 +00:00
# Silence doxygen
sed -i doc/doxygen/Makefile.am \
-e 's;$(DOXYGEN) doxyfile;& >/dev/null 2>&1;'
# Modernize Makefile.am files
2015-10-30 16:30:44 +00:00
find . -name Makefile.am -exec sed -i "{}" \
2015-11-05 05:04:50 +00:00
-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)
2015-10-30 16:30:44 +00:00
sed -i configure.ac \
-e "s;dist-zip tar-ustar;& subdir-objects;" \
-e "/^AM_INIT_AUTOMAKE.*/a AC_CONFIG_MACRO_DIRS([m4])"
2015-11-05 05:04:50 +00:00
2015-10-30 16:30:44 +00:00
mkdir m4
cp doc/COPYING doc/README .
touch NEWS AUTHORS ChangeLog
autoreconf -if
}
post_install() {
vlicense COPYING
vdoc doc/README
vdoc doc/GLEW-LICENSE
vdoc doc/PCRE-LICENSE
vdoc doc/TinyXML-License
vdoc doc/stringencoders-license
}
cegui07-data_package() {
short_desc+=" - data files"
noarch=yes
pkg_install() {
vmove usr/share/CEGUI
}
}
cegui07-doc_package() {
short_desc+=" - documentation"
noarch=yes
pkg_install() {
vmkdir usr/share/doc/${sourcepkg}
vcopy ${wrksrc}/doc/doxygen/html usr/share/doc/${sourcepkg}
}
}
cegui07-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
# Move only the symlink *.so files
find ${DESTDIR}/usr/lib/ -type l -exec mv "{}" ${PKGDESTDIR}/usr/lib \;
}
}