void-packages/srcpkgs/cegui07/template

79 lines
2.3 KiB
Bash
Raw Normal View History

2015-10-30 16:30:44 +00:00
# Template file for 'cegui07'
pkgname=cegui07
version=0.7.9
revision=1
wrksrc=CEGUI-${version}
build_style=gnu-configure
configure_args="--disable-samples ${vopt_with gtk2 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
devil-devel ois-devel silly-devel fribidi-devel lua51-devel minizip-devel
$(vopt_if irrlicht irrlicht-devel)
$(vopt_if python 'python-devel boost-python')
$(vopt_if gtk2 gtk+-devel)"
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="gtk2 irrlicht python"
desc_option_gtk2="Enable support for GTK2"
desc_option_irrlicht="Enable support for Irrlicht"
build_options_default="gtk2 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 \;
}
}