# Template file for 'cegui07' pkgname=cegui07 version=0.7.9 revision=1 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 $(vopt_if irrlicht irrlicht-devel) $(vopt_if python 'python-devel boost-python')" depends="${pkgname}-data" make_build_args="all html" short_desc="Crazy Eddie's Graphical User Interface (0.7.x)" maintainer="Jürgen Buchmüller " 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" desc_option_irrlicht="Enable support for Irrlicht" build_options_default="irrlicht" if [ -z "$CROSS_BUILD" ]; then # XXX: boost-python is not available when cross building build_options_default+=" python" fi pre_configure() { find . -name Makefile.am -exec sed -i "{}" \ -e "1i ACLOCAL_AMFLAGS = -I m4" \; # -e "s;INCLUDES;AM_CPPFLAGS;g" \; 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 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 \; } }