void-packages/srcpkgs/gtkmm2/template

36 lines
975 B
Bash

# Template file for 'gtkmm2'
pkgname=gtkmm2
version=2.24.5
revision=3
wrksrc="gtkmm-${version}"
build_style=gnu-configure
configure_args="--disable-static --disable-documentation"
hostmakedepends="mm-common libtool pkg-config"
makedepends="gtk+-devel libsigc++-devel atkmm-devel pangomm-devel libXcursor-devel"
short_desc="C++ bindings for The GTK+ toolkit (v2)"
homepage="http://www.gtkmm.org/"
license="LGPL-2.1"
maintainer="Juan RP <xtraeme@voidlinux.org>"
distfiles="${GNOME_SITE}/gtkmm/${version%.*}/gtkmm-${version}.tar.xz"
checksum=0680a53b7bf90b4e4bf444d1d89e6df41c777e0bacc96e9c09fc4dd2f5fe6b72
CXXFLAGS="-std=c++11"
pre_configure() {
NOCONFIGURE=1 ./autogen.sh
}
pre_install() {
sed -i -e 's/^doc_subdirs/#doc_subdirs/' Makefile
}
gtkmm2-devel_package() {
depends="${makedepends} gtkmm2-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/g*"
vmove "usr/lib/*.so"
}
}